summaryrefslogtreecommitdiff
path: root/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-28 15:31:02 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-28 15:31:02 +0200
commit172063b2addc54a5bd376d4595673eac8b5d490e (patch)
tree3712866dc6e94da8790197ab2f9e4bf295dd72d7 /src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
parent9ac73175be30f23ca2aaa23071909f19229e5982 (diff)
macOS: yet simpler implementation of window resize and rescale.
Diffstat (limited to 'src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H')
-rw-r--r--src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
index 1dca7f133..2e76fbe8f 100644
--- a/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
+++ b/src/drivers/Cocoa/Fl_Cocoa_Window_Driver.H
@@ -82,7 +82,8 @@ private:
void shape_bitmap_(Fl_Image* b);
void shape_alpha_(Fl_Image* img, int offset);
CGRect* subRect_; // makes sure subwindow remains inside its parent window
- // stores 2 binary flags: whether window is mapped to retina display; whether resolution just changed
+ // stores 3 binary flags: whether window is mapped to retina display; whether resolution just changed;
+ // whether window's view received the [FLView view_did_resize] message
unsigned window_flags_;
public:
Fl_Cocoa_Window_Driver(Fl_Window*);
@@ -97,6 +98,8 @@ public:
void mapped_to_retina(bool); // sets whether window is mapped to retina display
bool changed_resolution(); // did window just moved to display with another resolution?
void changed_resolution(bool);// sets whether window just moved to display with another resolution
+ bool view_resized(); // did window's view receive [FLView view_did_resize] message?
+ void view_resized(bool b); // sets whether window's view received [FLView view_did_resize] message
CGRect* subRect() { return subRect_; } // getter
void subRect(CGRect *r) { subRect_ = r; } // setter
static void destroy(FLWindow*);