Flutter Engine
The Flutter Engine
Instance Methods | List of all members
WindowDelegate Class Reference
Inheritance diagram for WindowDelegate:

Instance Methods

(WindowDelegate *) - initWithWindow:
 
(void) - windowDidResize: [implementation]
 
(BOOL- windowShouldClose: [implementation]
 

Detailed Description

Definition at line 15 of file Window_mac.mm.

Method Documentation

◆ initWithWindow:

- (WindowDelegate *) initWithWindow: (sk_app::Window_mac*)  initWindow
Initial value:

Definition at line 177 of file Window_mac.mm.

193 :(sk_app::Window_mac *)initWindow {
194 fWindow = initWindow;
195
196 return self;
197}

◆ windowDidResize:

- (void) windowDidResize: (NSNotification *)  notification
implementation

Definition at line 177 of file Window_mac.mm.

199 :(NSNotification *)notification {
200 NSView* view = fWindow->window().contentView;
202 fWindow->onResize(view.bounds.size.width * scale, view.bounds.size.height * scale);
203 fWindow->inval();
204}
static CGFloat GetBackingScaleFactor(NSView *view)
const Scalar scale

◆ windowShouldClose:

- (BOOL) windowShouldClose: (NSWindow*)  sender
implementation

Definition at line 177 of file Window_mac.mm.

206 :(NSWindow*)sender {
207 fWindow->closeWindow();
208
209 return FALSE;
210}
return FALSE

The documentation for this class was generated from the following file: