Definition at line 38 of file FlutterWindowController.mm.
◆ flutterSetConstraints:
Definition at line 30 of file FlutterWindowController.mm.
51 NSSize size = [
self frameRectForContentRect:self.frame].size;
52 NSSize originalSize = size;
53 [
self setContentMinSize:NSMakeSize(constraints.min_width, constraints.min_height)];
54 size.width = std::max(size.width, constraints.
min_width);
55 size.height = std::max(size.height, constraints.
min_height);
57 [
self setContentMaxSize:NSMakeSize(constraints.max_width, constraints.max_height)];
58 size.width = std::min(size.width, constraints.
max_width);
59 size.height = std::min(size.height, constraints.
max_height);
61 [
self setContentMaxSize:NSMakeSize(CGFLOAT_MAX, CGFLOAT_MAX)];
63 if (!NSEqualSizes(originalSize, size)) {
64 [
self setContentSize:size];
◆ flutterSetContentSize:
The documentation for this category was generated from the following file: