Flutter Engine
 
Loading...
Searching...
No Matches
flutter::BoxConstraints Class Reference

#include <geometry.h>

Public Member Functions

 BoxConstraints ()=default
 
 BoxConstraints (const std::optional< Size > &smallest, const std::optional< Size > &biggest)
 
 BoxConstraints (const BoxConstraints &other)=default
 
Size biggest () const
 
Size smallest () const
 
bool IsSatisfiedBy (Size size)
 

Detailed Description

Definition at line 83 of file geometry.h.

Constructor & Destructor Documentation

◆ BoxConstraints() [1/3]

flutter::BoxConstraints::BoxConstraints ( )
default

◆ BoxConstraints() [2/3]

flutter::BoxConstraints::BoxConstraints ( const std::optional< Size > &  smallest,
const std::optional< Size > &  biggest 
)
inline

Definition at line 86 of file geometry.h.

88 : smallest_(smallest.value_or(Size(0, 0))),
89 biggest_(
90 biggest.value_or(Size(std::numeric_limits<double>::infinity(),
91 std::numeric_limits<double>::infinity()))) {}
Size smallest() const
Definition geometry.h:94
Size biggest() const
Definition geometry.h:93
TSize< Scalar > Size
Definition size.h:159

◆ BoxConstraints() [3/3]

flutter::BoxConstraints::BoxConstraints ( const BoxConstraints other)
default

Member Function Documentation

◆ biggest()

Size flutter::BoxConstraints::biggest ( ) const
inline

◆ IsSatisfiedBy()

bool flutter::BoxConstraints::IsSatisfiedBy ( Size  size)
inline

Definition at line 96 of file geometry.h.

96 {
97 return smallest().width() <= size.width() &&
98 size.width() <= biggest().width() &&
99 smallest().height() <= size.height() &&
100 size.height() <= biggest().height();
101 }
double height() const
Definition geometry.h:45
double width() const
Definition geometry.h:44
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

References biggest(), flutter::Size::height(), flutter::size, smallest(), and flutter::Size::width().

◆ smallest()

Size flutter::BoxConstraints::smallest ( ) const
inline

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