From 96c410dceb2adff87f067e44310b269f51fa7e90 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 17 Jan 2011 23:52:32 +0000 Subject: 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 --- src/Fl_win32.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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 -- cgit v1.2.3