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

#include <geometry.h>

Public Member Functions

 Size ()=default
 
 Size (double width, double height)
 
 Size (const Size &size)=default
 
Sizeoperator= (const Size &other)=default
 
double width () const
 
double height () const
 
bool operator== (const Size &other) const =default
 

Detailed Description

Definition at line 35 of file geometry.h.

Constructor & Destructor Documentation

◆ Size() [1/3]

flutter::Size::Size ( )
default

◆ Size() [2/3]

flutter::Size::Size ( double  width,
double  height 
)
inline

Definition at line 38 of file geometry.h.

39 : width_(std::fmax(0.0, width)), height_(std::fmax(0.0, height)) {}
double height() const
Definition geometry.h:45
double width() const
Definition geometry.h:44

◆ Size() [3/3]

flutter::Size::Size ( const Size size)
default

Member Function Documentation

◆ height()

◆ operator=()

Size & flutter::Size::operator= ( const Size other)
default

◆ operator==()

bool flutter::Size::operator== ( const Size other) const
default

◆ width()


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