#include <size.h>
Public Member Functions | |
| constexpr | Size () |
| constexpr | Size (int width, int height) |
| void | operator+= (const Size &size) |
| void | operator-= (const Size &size) |
| constexpr int | width () const |
| constexpr int | height () const |
| void | set_width (int width) |
| void | set_height (int height) |
| int | GetArea () const |
| base::CheckedNumeric< int > | GetCheckedArea () const |
| void | SetSize (int width, int height) |
| void | Enlarge (int grow_width, int grow_height) |
| void | SetToMin (const Size &other) |
| void | SetToMax (const Size &other) |
| bool | IsEmpty () const |
| std::string | ToString () const |
|
inlineconstexpr |
|
inlineconstexpr |
| void gfx::Size::Enlarge | ( | int | grow_width, |
| int | grow_height | ||
| ) |
Definition at line 65 of file size.cc.
Referenced by gfx::TEST(), and gfx::TEST().
| base::CheckedNumeric< int > gfx::Size::GetCheckedArea | ( | ) | const |
|
inlineconstexpr |
Definition at line 50 of file size.h.
Referenced by gfx::Rect::ClampToCenteredSize(), gfx::operator==(), SetToMax(), and SetToMin().
|
inline |
| void gfx::Size::operator-= | ( | const Size & | size | ) |
|
inline |
|
inline |
|
inline |
| void gfx::Size::SetToMax | ( | const Size & | other | ) |
| void gfx::Size::SetToMin | ( | const Size & | other | ) |
| std::string gfx::Size::ToString | ( | ) | const |
Definition at line 80 of file size.cc.
References height, base::StringPrintf(), and width.
Referenced by gfx::TEST().
|
inlineconstexpr |
Definition at line 49 of file size.h.
Referenced by gfx::Rect::ClampToCenteredSize(), gfx::operator==(), SetToMax(), SetToMin(), and gfx::TEST().