Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
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
 

Detailed Description

Definition at line 33 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 36 of file geometry.h.

37 : width_(std::fmax(0.0, width)), height_(std::fmax(0.0, height)) {}
double height() const
Definition: geometry.h:43
double width() const
Definition: geometry.h:42

◆ Size() [3/3]

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

Member Function Documentation

◆ height()

double flutter::Size::height ( ) const
inline

Definition at line 43 of file geometry.h.

43{ return height_; }

◆ operator=()

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

◆ operator==()

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

Definition at line 45 of file geometry.h.

45 {
46 return width_ == other.width_ && height_ == other.height_;
47 }

◆ width()

double flutter::Size::width ( ) const
inline

Definition at line 42 of file geometry.h.

42{ return width_; }

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