#include <size_f.h>
Definition at line 18 of file size_f.h.
◆ SizeF() [1/3]
constexpr gfx::SizeF::SizeF |
( |
| ) |
|
|
inlineconstexpr |
Definition at line 20 of file size_f.h.
20: width_(0.f), height_(0.f) {}
◆ SizeF() [2/3]
constexpr gfx::SizeF::SizeF |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
inlineconstexpr |
Definition at line 21 of file size_f.h.
constexpr float height() const
constexpr float width() const
◆ SizeF() [3/3]
constexpr gfx::SizeF::SizeF |
( |
const Size & |
size | ) |
|
|
inlineexplicitconstexpr |
Definition at line 24 of file size_f.h.
26 static_cast<float>(
size.height())) {}
constexpr size_t size(const T(&array)[N]) noexcept
◆ Enlarge()
void gfx::SizeF::Enlarge |
( |
float |
grow_width, |
|
|
float |
grow_height |
|
) |
| |
Definition at line 15 of file size_f.cc.
15 {
17}
void SetSize(float width, float height)
◆ GetArea()
float gfx::SizeF::GetArea |
( |
| ) |
const |
◆ height()
constexpr float gfx::SizeF::height |
( |
| ) |
const |
|
inlineconstexpr |
◆ IsEmpty()
bool gfx::SizeF::IsEmpty |
( |
| ) |
const |
|
inline |
◆ Scale() [1/2]
void gfx::SizeF::Scale |
( |
float |
scale | ) |
|
|
inline |
◆ Scale() [2/2]
void gfx::SizeF::Scale |
( |
float |
x_scale, |
|
|
float |
y_scale |
|
) |
| |
|
inline |
◆ set_height()
void gfx::SizeF::set_height |
( |
float |
height | ) |
|
|
inline |
◆ set_width()
void gfx::SizeF::set_width |
( |
float |
width | ) |
|
|
inline |
◆ SetSize()
void gfx::SizeF::SetSize |
( |
float |
width, |
|
|
float |
height |
|
) |
| |
|
inline |
Definition at line 36 of file size_f.h.
36 {
39 }
void set_width(float width)
void set_height(float height)
◆ SetToMax()
void gfx::SizeF::SetToMax |
( |
const SizeF & |
other | ) |
|
◆ SetToMin()
void gfx::SizeF::SetToMin |
( |
const SizeF & |
other | ) |
|
◆ ToString()
std::string gfx::SizeF::ToString |
( |
| ) |
const |
Definition at line 29 of file size_f.cc.
29 {
31}
std::string StringPrintf(const std::string &format, Args... args)
◆ width()
constexpr float gfx::SizeF::width |
( |
| ) |
const |
|
inlineconstexpr |
The documentation for this class was generated from the following files:
- third_party/accessibility/gfx/geometry/size_f.h
- third_party/accessibility/gfx/geometry/size_f.cc