Flutter Engine
 
Loading...
Searching...
No Matches
NSWindow(FlutterWindowSizing) Category Reference

Instance Methods

(void) - flutterSetContentSize:
 
(void) - flutterSetConstraints:
 

Detailed Description

Definition at line 34 of file FlutterWindowController.mm.

Method Documentation

◆ flutterSetConstraints:

- (void) flutterSetConstraints: (FlutterWindowConstraints constraints

Definition at line 26 of file FlutterWindowController.mm.

46 :(FlutterWindowConstraints)constraints {
47 NSSize size = [self frameRectForContentRect:self.frame].size;
48 NSSize originalSize = size;
49 [self setContentMinSize:NSMakeSize(constraints.min_width, constraints.min_height)];
50 size.width = std::max(size.width, constraints.min_width);
51 size.height = std::max(size.height, constraints.min_height);
52 if (constraints.max_width > 0 && constraints.max_height > 0) {
53 [self setContentMaxSize:NSMakeSize(constraints.max_width, constraints.max_height)];
54 size.width = std::min(size.width, constraints.max_width);
55 size.height = std::min(size.height, constraints.max_height);
56 } else {
57 [self setContentMaxSize:NSMakeSize(CGFLOAT_MAX, CGFLOAT_MAX)];
58 }
59 if (!NSEqualSizes(originalSize, size)) {
60 [self setContentSize:size];
61 }
62}
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size

◆ flutterSetContentSize:

- (void) flutterSetContentSize: (FlutterWindowSize contentSize

Definition at line 26 of file FlutterWindowController.mm.

42 :(FlutterWindowSize)contentSize {
43 [self setContentSize:NSMakeSize(contentSize.width, contentSize.height)];
44}

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