| Flutter macOS Embedder |

Instance Methods | List of all members
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 }
FlutterWindowSizing
Definition: FlutterWindowController.h:27
FlutterWindowSizing::has_constraints
bool has_constraints
Definition: FlutterWindowController.h:31
FlutterWindowSizing::max_height
double max_height
Definition: FlutterWindowController.h:35
FlutterWindowSizing::max_width
double max_width
Definition: FlutterWindowController.h:34
FlutterWindowSizing::has_size
bool has_size
Definition: FlutterWindowController.h:28

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

- shell/platform/darwin/macos/framework/Source/FlutterWindowController.mm