diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2004-08-27 20:02:45 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2004-08-27 20:02:45 +0000 |
| commit | bc704ad62fb5883469922b1d42142d71f3555fd8 (patch) | |
| tree | 48acf653995f40fe0c64b310b481937d2d809c94 /FL | |
| parent | 93798e2f8380067061b3ea2dc047e0a704bd128d (diff) | |
Quartz:
- made multiple contexts for windows, popups and menus work
- still missing: double buffer handling
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3793 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/mac.H | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,5 @@ // -// "$Id: mac.H,v 1.1.2.12 2004/08/26 00:18:41 matthiaswm Exp $" +// "$Id: mac.H,v 1.1.2.13 2004/08/27 20:02:43 matthiaswm Exp $" // // Mac header file for the Fast Light Tool Kit (FLTK). // @@ -65,7 +65,6 @@ class Fl_X public: Window xid; // Mac WindowPtr GWorldPtr other_xid; // pointer for offscreen bitmaps (doublebuffer) - CGContextRef gc; // Quartz: graphics context (NULL when using QD) Fl_Window *w; // FLTK window for Fl_Region region; Fl_Region subRegion; // region for this specific subwindow @@ -78,6 +77,11 @@ public: static int fake_X_wm(const Fl_Window*,int&,int&,int&,int&,int&); static void make(Fl_Window*); void flush(); + // Quartz additions: + CGContextRef gc; // graphics context (NULL when using QD) + static void q_fill_context(); // fill a Quartz context with current FLTK state + static void q_clear_clipping(); // remove all clipping from a Quartz context + static void q_release_context(Fl_X *x=0); // free all resources associated with fl_gc }; inline Window fl_xid(const Fl_Window*w) @@ -120,6 +124,6 @@ extern void fl_open_callback(void (*cb)(const char *)); extern FL_EXPORT int fl_parse_color(const char* p, uchar& r, uchar& g, uchar& b); // -// End of "$Id: mac.H,v 1.1.2.12 2004/08/26 00:18:41 matthiaswm Exp $". +// End of "$Id: mac.H,v 1.1.2.13 2004/08/27 20:02:43 matthiaswm Exp $". // |
