summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2011-01-17 23:52:32 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2011-01-17 23:52:32 +0000
commit96c410dceb2adff87f067e44310b269f51fa7e90 (patch)
tree6271cc3ae105fdbe433b3f6176d4534abdf9661a /src
parentb841d90d3cdd2b27f9eeb80430a06cf73d4dd2b4 (diff)
Hiding the Fl_X class under WIN32 (STR #2522).
Applied Manolo's patch, modified to use FL_INTERNALS for explicit request in user code to expose class Fl_X. Also changed X11 and Mac OS to use FL_INTERNALS. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index f061020fa..0c276636d 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1933,6 +1933,11 @@ Fl_Region XRectangleRegion(int x, int y, int w, int h) {
return CreatePolygonRgn(pt, 4, ALTERNATE);
}
+Window fl_xid(const Fl_Window *w) {
+ Fl_X *temp = Fl_X::i(w);
+ return temp ? temp->xid : 0;
+}
+
#ifdef USE_PRINT_BUTTON
// to test the Fl_Printer class creating a "Print front window" button in a separate window
// contains also preparePrintFront call above