diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-12-21 13:02:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-12-21 13:02:01 (GMT) |
commit | fbc72eac8c4bf3a9b9b81257b08dc6a5640b7dbf (patch) | |
tree | b1cbf445745737ee57b0403a87a3fcd4272502ca /generic/tk3d.c | |
parent | aec52e5a9a78885e9fc2a8210e8e06bd2fad401e (diff) | |
download | tk-fbc72eac8c4bf3a9b9b81257b08dc6a5640b7dbf.zip tk-fbc72eac8c4bf3a9b9b81257b08dc6a5640b7dbf.tar.gz tk-fbc72eac8c4bf3a9b9b81257b08dc6a5640b7dbf.tar.bz2 |
TIP #606 implementation. TODO: documentation
Diffstat (limited to 'generic/tk3d.c')
-rw-r--r-- | generic/tk3d.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/generic/tk3d.c b/generic/tk3d.c index e988d3e..16871a7 100644 --- a/generic/tk3d.c +++ b/generic/tk3d.c @@ -1387,6 +1387,40 @@ TkDebugBorder( } return resultPtr; } + +/* + *-------------------------------------------------------------- + * + * Tk_Get3BorderColors -- + * + * Given a Tk_3DBorder determine its 3 colors. + * + * Results: + * None. + * + * Side effects: + * None. + * + *-------------------------------------------------------------- + */ + +void +Tk_Get3BorderColors( + Tk_3DBorder * borderPtr, + XColor * bgColorPtr, + XColor * darkColorPtr, + XColor * lightColorPtr) +{ + if (bgColorPtr) { + *bgColorPtr = *((TkBorder *)borderPtr)->bgColorPtr; + } + if (darkColorPtr) { + *darkColorPtr = *((TkBorder *) borderPtr)->darkColorPtr; + } + if (lightColorPtr) { + *lightColorPtr = *((TkBorder *) borderPtr)->lightColorPtr; + } +} /* * Local Variables: |