diff options
| author | Manolo Gouy <Manolo> | 2011-01-20 13:22:30 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-20 13:22:30 +0000 |
| commit | a306fe46d39e5c54f90f288846da7b9a0e762cb5 (patch) | |
| tree | 5173a649518e6048e3dbe40f5d3d512f02670a83 /FL/x.H | |
| parent | 30c1eed80b89dcf9ec17d2adbad2b867df57adf8 (diff) | |
Redefined fl_xid() as an inline function when used inside the FLTK library.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8295 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/x.H')
| -rw-r--r-- | FL/x.H | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -163,10 +163,15 @@ public: extern FL_EXPORT char fl_override_redirect; // hack into Fl_X::make_xid() extern FL_EXPORT int fl_background_pixel; // hack into Fl_X::make_xid() +inline Window fl_xid(const Fl_Window* w) { return Fl_X::i(w)->xid; } + +#else + +extern Window fl_xid_(const Fl_Window* w); +#define fl_xid(w) fl_xid_(w) + #endif // FL_LIBRARY || FL_INTERNALS -// convert xid <-> Fl_Window: -Window fl_xid(const Fl_Window*w); FL_EXPORT Fl_Window* fl_find(Window xid); |
