Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 172 of file Window_mac.mm.

188 :(sk_app::Window_mac *)initWindow {
189 fWindow = initWindow;
190
191 return self;
192}

◆ windowDidResize:

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

Definition at line 172 of file Window_mac.mm.

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

◆ windowShouldClose:

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

Definition at line 172 of file Window_mac.mm.

201 :(NSWindow*)sender {
202 fWindow->closeWindow();
203
204 return FALSE;
205}
return FALSE

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