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