Flutter macOS Embedder
NSWindow(FlutterWindowSizing) Category Reference

Instance Methods

(void) - flutterSetContentSize:
 

Detailed Description

Definition at line 34 of file FlutterWindowController.mm.

Method Documentation

◆ flutterSetContentSize:

- (void) flutterSetContentSize: (FlutterWindowSizing contentSize

Definition at line 26 of file FlutterWindowController.mm.

41  :(FlutterWindowSizing)contentSize {
42  if (contentSize.has_size) {
43  [self setContentSize:NSMakeSize(contentSize.width, contentSize.height)];
44  }
45  if (contentSize.has_constraints) {
46  [self setContentMinSize:NSMakeSize(contentSize.min_width, contentSize.min_height)];
47  if (contentSize.max_width > 0 && contentSize.max_height > 0) {
48  [self setContentMaxSize:NSMakeSize(contentSize.max_width, contentSize.max_height)];
49  } else {
50  [self setContentMaxSize:NSMakeSize(CGFLOAT_MAX, CGFLOAT_MAX)];
51  }
52  }
53 }

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