diff options
| author | Manolo Gouy <Manolo> | 2014-12-18 06:40:50 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-12-18 06:40:50 +0000 |
| commit | 1f5b8d3aade9eb6c3e8ec1a1565ef3587ad2b9bf (patch) | |
| tree | bce94d2c1ebb854bb6239a8fcc228f37a6c37aa9 | |
| parent | 15d497ebdf00537678226679503303a4f7c77800 (diff) | |
The new subRect_ member is better private (FLTK_ABI_VERSION >= 10304 only).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10487 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | FL/mac.H | 31 |
1 files changed, 16 insertions, 15 deletions
@@ -125,25 +125,14 @@ public: Fl_Offscreen other_xid; // pointer for offscreen bitmaps (overlay window) Fl_Window *w; // FLTK window for Fl_Region region; -#if FLTK_ABI_VERSION >= 10304 - CGRect* subRect_; // make sure subwindow remains inside its parent window - CGRect* subRect() { return subRect_; } // getter - void subRect(CGRect *r) { subRect_ = r; } // setter -#else - Fl_Region subRegion; // for ABI compatibility, recycled to replace subRect_ - CGRect* subRect() { return (CGRect*)subRegion; } // getter - void subRect(CGRect *r) { subRegion = (Fl_Region)r; } // setter +#if FLTK_ABI_VERSION < 10304 + Fl_Region subRegion; // for ABI compatibility, recycled to replace subRect_ #endif Fl_X *next; // chain of mapped windows #if FLTK_ABI_VERSION < 10304 Fl_X *xidChildren; // useless with true subwindows, recycled to replace mapped_to_retina_ Fl_X *xidNext; // useless with true subwindows #endif -#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 - bool mapped_to_retina(); // is window mapped to retina display? - void mapped_to_retina(bool); // sets whether window is mapped to retina display -#endif - static void set_high_resolution(bool); int wait_for_expose; NSCursor *cursor; static Fl_X* first; @@ -151,6 +140,18 @@ public: static int fake_X_wm(const Fl_Window*,int&,int&,int&,int&,int&); static void make(Fl_Window*); void flush(); + static void set_high_resolution(bool); +#if FLTK_ABI_VERSION >= 10304 + CGRect* subRect() { return subRect_; } // getter + void subRect(CGRect *r) { subRect_ = r; } // setter +#else + CGRect* subRect() { return (CGRect*)subRegion; } // getter + void subRect(CGRect *r) { subRegion = (Fl_Region)r; } // setter +#endif +#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7 + bool mapped_to_retina(); // is window mapped to retina display? + void mapped_to_retina(bool); // sets whether window is mapped to retina display +#endif // Quartz additions: CGContextRef gc; // graphics context (NULL when using QD) static void q_fill_context(); // fill a Quartz context with current FLTK state @@ -182,8 +183,8 @@ public: static Fl_Fontdesc* calc_fl_fonts(void); // computes the fl_fonts global variable private: #if FLTK_ABI_VERSION >= 10304 - // stores whether window is mapped to retina display - unsigned mapped_to_retina_; + CGRect* subRect_; // makes sure subwindow remains inside its parent window + unsigned mapped_to_retina_; // stores whether window is mapped to retina display #else bool subwindow; // for ABI compatibility, useless with true subwindows #endif |
