|
|
@ -125,25 +125,14 @@ public: |
|
|
|
Fl_Offscreen other_xid; // pointer for offscreen bitmaps (overlay window)
|
|
|
|
Fl_Offscreen other_xid; // pointer for offscreen bitmaps (overlay window)
|
|
|
|
Fl_Window *w; // FLTK window for
|
|
|
|
Fl_Window *w; // FLTK window for
|
|
|
|
Fl_Region region; |
|
|
|
Fl_Region region; |
|
|
|
#if FLTK_ABI_VERSION >= 10304 |
|
|
|
#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_
|
|
|
|
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
|
|
|
|
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
Fl_X *next; // chain of mapped windows
|
|
|
|
Fl_X *next; // chain of mapped windows
|
|
|
|
#if FLTK_ABI_VERSION < 10304 |
|
|
|
#if FLTK_ABI_VERSION < 10304 |
|
|
|
Fl_X *xidChildren; // useless with true subwindows, recycled to replace mapped_to_retina_
|
|
|
|
Fl_X *xidChildren; // useless with true subwindows, recycled to replace mapped_to_retina_
|
|
|
|
Fl_X *xidNext; // useless with true subwindows
|
|
|
|
Fl_X *xidNext; // useless with true subwindows
|
|
|
|
#endif |
|
|
|
#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; |
|
|
|
int wait_for_expose; |
|
|
|
NSCursor *cursor; |
|
|
|
NSCursor *cursor; |
|
|
|
static Fl_X* first; |
|
|
|
static Fl_X* first; |
|
|
@ -151,6 +140,18 @@ public: |
|
|
|
static int fake_X_wm(const Fl_Window*,int&,int&,int&,int&,int&); |
|
|
|
static int fake_X_wm(const Fl_Window*,int&,int&,int&,int&,int&); |
|
|
|
static void make(Fl_Window*); |
|
|
|
static void make(Fl_Window*); |
|
|
|
void flush(); |
|
|
|
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:
|
|
|
|
// Quartz additions:
|
|
|
|
CGContextRef gc; // graphics context (NULL when using QD)
|
|
|
|
CGContextRef gc; // graphics context (NULL when using QD)
|
|
|
|
static void q_fill_context(); // fill a Quartz context with current FLTK state
|
|
|
|
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
|
|
|
|
static Fl_Fontdesc* calc_fl_fonts(void); // computes the fl_fonts global variable
|
|
|
|
private: |
|
|
|
private: |
|
|
|
#if FLTK_ABI_VERSION >= 10304 |
|
|
|
#if FLTK_ABI_VERSION >= 10304 |
|
|
|
// stores whether window is mapped to retina display
|
|
|
|
CGRect* subRect_; // makes sure subwindow remains inside its parent window
|
|
|
|
unsigned mapped_to_retina_; |
|
|
|
unsigned mapped_to_retina_; // stores whether window is mapped to retina display
|
|
|
|
#else |
|
|
|
#else |
|
|
|
bool subwindow; // for ABI compatibility, useless with true subwindows
|
|
|
|
bool subwindow; // for ABI compatibility, useless with true subwindows
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|