| Flutter Linux Embedder |

Public Member Functions | List of all members
flutter::Rect Class Reference

`#include <geometry.h>`

## Public Member Functions
| Rect ()=default
| Rect (const Point &origin, const Size &size)
| Rect (const Rect &rect)=default
Rect & | operator= (const Rect &other)=default
double | left () const
double | top () const
double | right () const
double | bottom () const
double | width () const
double | height () const
Point | origin () const
Size | size () const
bool | operator== (const Rect &other) const

## Detailed Description

Definition at line 59 of file geometry.h.

## Constructor & Destructor Documentation

## ◆ Rect() [1/3]

flutter::Rect::Rect | ( |  | ) |
| default

## ◆ Rect() [2/3]

flutter::Rect::Rect | ( | const Point & | origin,
|  | const Size & | size
| ) |  |
| inline

Definition at line 62 of file geometry.h.

62 : origin_(origin), size_(size) {}
flutter::Rect::size
Size size() const
Definition: geometry.h:73
flutter::Rect::origin
Point origin() const
Definition: geometry.h:72

## ◆ Rect() [3/3]

flutter::Rect::Rect | ( | const Rect & | rect | ) |
| default

## Member Function Documentation

## ◆ bottom()

double flutter::Rect::bottom | ( |  | ) | const
| inline

Definition at line 69 of file geometry.h.

69 { return origin_.y() + size_.height(); }
flutter::Point::y
double y() const
Definition: geometry.h:23
flutter::Size::height
double height() const
Definition: geometry.h:45

References flutter::Size::height(), and flutter::Point::y().

Referenced by flutter::TEST().

## ◆ height()

double flutter::Rect::height | ( |  | ) | const
| inline

Definition at line 71 of file geometry.h.

71 { return size_.height(); }

References flutter::Size::height().

Referenced by flutter::TEST().

## ◆ left()

double flutter::Rect::left | ( |  | ) | const
| inline

Definition at line 66 of file geometry.h.

66 { return origin_.x(); }
flutter::Point::x
double x() const
Definition: geometry.h:22

References flutter::Point::x().

Referenced by flutter::TEST().

## ◆ operator=()

Rect& flutter::Rect::operator= | ( | const Rect & | other | ) |
| default

## ◆ operator==()

bool flutter::Rect::operator== | ( | const Rect & | other | ) | const
| inline

Definition at line 75 of file geometry.h.

75 {
76 return origin_ == other.origin_ && size_ == other.size_;
77 }

## ◆ origin()

Point flutter::Rect::origin | ( |  | ) | const
| inline

Definition at line 72 of file geometry.h.

72 { return origin_; }

Referenced by flutter::TEST().

## ◆ right()

double flutter::Rect::right | ( |  | ) | const
| inline

Definition at line 68 of file geometry.h.

68 { return origin_.x() + size_.width(); }
flutter::Size::width
double width() const
Definition: geometry.h:44

References flutter::Size::width(), and flutter::Point::x().

Referenced by flutter::TEST().

## ◆ size()

Size flutter::Rect::size | ( |  | ) | const
| inline

Definition at line 73 of file geometry.h.

73 { return size_; }

Referenced by flutter::TEST().

## ◆ top()

double flutter::Rect::top | ( |  | ) | const
| inline

Definition at line 67 of file geometry.h.

67 { return origin_.y(); }

References flutter::Point::y().

Referenced by flutter::TEST().

## ◆ width()

double flutter::Rect::width | ( |  | ) | const
| inline

Definition at line 70 of file geometry.h.

70 { return size_.width(); }

References flutter::Size::width().

Referenced by flutter::TEST().

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

- shell/platform/common/geometry.h