summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2015-02-09 18:21:34 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2015-02-09 18:21:34 +0000
commit3318fe3da4167e0c1ced8e0103605ca99fe97a75 (patch)
treef3c0bac543f91618e68de0ed47e9c57e820d4222 /src
parent965be94165f1b8e4b92d7d34a8f8bcc5cd146c3b (diff)
Comments: doxygen docs and comments to emphasize platform dependencies.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10566 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_get_system_colors.cxx24
1 files changed, 15 insertions, 9 deletions
diff --git a/src/Fl_get_system_colors.cxx b/src/Fl_get_system_colors.cxx
index 49c7ff899..76c613a29 100644
--- a/src/Fl_get_system_colors.cxx
+++ b/src/Fl_get_system_colors.cxx
@@ -130,19 +130,23 @@ int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b) {
} else return 0;
}
#endif // WIN32 || __APPLE__
+
+
/** \fn Fl::get_system_colors()
Read the user preference colors from the system and use them to call
- Fl::foreground(), Fl::background(), and
- Fl::background2(). This is done by
- Fl_Window::show(argc,argv) before applying the -fg and -bg
- switches.
+ Fl::foreground(), Fl::background(), and Fl::background2().
+
+ This is done by Fl_Window::show(argc,argv) before applying
+ the -fg and -bg switches.
- <P>On X this reads some common values from the Xdefaults database.
+ On X this reads some common values from the Xdefaults database.
KDE users can set these values by running the "krdb" program, and
newer versions of KDE set this automatically if you check the "apply
style to other X programs" switch in their control panel.
*/
-#if defined(WIN32)
+
+#if defined(WIN32) // --- WIN32 ---
+
static void
getsyscolor(int what, const char* arg, void (*func)(uchar,uchar,uchar))
{
@@ -165,7 +169,8 @@ void Fl::get_system_colors() {
getsyscolor(COLOR_HIGHLIGHT, 0, set_selection_color);
}
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) // --- APPLE ---
+
// MacOS X currently supports two color schemes - Blue and Graphite.
// Since we aren't emulating the Aqua interface (even if Apple would
// let us), we use some defaults that are similar to both. The
@@ -194,7 +199,8 @@ void Fl::get_system_colors()
set_selection_color(0x00, 0x00, 0x80);
#endif
}
-#else
+
+#else // --- X11 ---
// Read colors that KDE writes to the xrdb database.
@@ -231,7 +237,7 @@ void Fl::get_system_colors()
getsyscolor("Text", "selectBackground", 0, "#000080", set_selection_color);
}
-#endif
+#endif // --- WIN32 | APPLE | X11 ---
//// Simple implementation of 2.0 Fl::scheme() interface...