#include <insets_f.h>
Definition at line 15 of file insets_f.h.
◆ InsetsF() [1/4]
constexpr gfx::InsetsF::InsetsF |
( |
| ) |
|
|
inlineconstexpr |
Definition at line 17 of file insets_f.h.
17: top_(0.f), left_(0.f), bottom_(0.f), right_(0.f) {}
◆ InsetsF() [2/4]
constexpr gfx::InsetsF::InsetsF |
( |
float |
all | ) |
|
|
inlineexplicitconstexpr |
Definition at line 18 of file insets_f.h.
SIT bool all(const Vec< 1, T > &x)
◆ InsetsF() [3/4]
constexpr gfx::InsetsF::InsetsF |
( |
float |
vertical, |
|
|
float |
horizontal |
|
) |
| |
|
inlineconstexpr |
Definition at line 20 of file insets_f.h.
21 : top_(vertical),
22 left_(horizontal),
23 bottom_(vertical),
24 right_(horizontal) {}
◆ InsetsF() [4/4]
constexpr gfx::InsetsF::InsetsF |
( |
float |
top, |
|
|
float |
left, |
|
|
float |
bottom, |
|
|
float |
right |
|
) |
| |
|
inlineconstexpr |
Definition at line 25 of file insets_f.h.
constexpr float left() const
constexpr float bottom() const
constexpr float top() const
constexpr float right() const
◆ bottom()
constexpr float gfx::InsetsF::bottom |
( |
| ) |
const |
|
inlineconstexpr |
◆ height()
constexpr float gfx::InsetsF::height |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 39 of file insets_f.h.
39{ return top_ + bottom_; }
◆ IsEmpty()
bool gfx::InsetsF::IsEmpty |
( |
| ) |
const |
|
inline |
Definition at line 42 of file insets_f.h.
constexpr float height() const
constexpr float width() const
◆ left()
constexpr float gfx::InsetsF::left |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator!=()
bool gfx::InsetsF::operator!= |
( |
const InsetsF & |
insets | ) |
const |
|
inline |
Definition at line 56 of file insets_f.h.
56{ return !(*this == insets); }
◆ operator+=()
void gfx::InsetsF::operator+= |
( |
const InsetsF & |
insets | ) |
|
|
inline |
Definition at line 58 of file insets_f.h.
58 {
59 top_ += insets.top_;
60 left_ += insets.left_;
61 bottom_ += insets.bottom_;
62 right_ += insets.right_;
63 }
◆ operator-()
InsetsF gfx::InsetsF::operator- |
( |
| ) |
const |
|
inline |
Definition at line 72 of file insets_f.h.
72 {
73 return InsetsF(-top_, -left_, -bottom_, -right_);
74 }
◆ operator-=()
void gfx::InsetsF::operator-= |
( |
const InsetsF & |
insets | ) |
|
|
inline |
Definition at line 65 of file insets_f.h.
65 {
66 top_ -= insets.top_;
67 left_ -= insets.left_;
68 bottom_ -= insets.bottom_;
69 right_ -= insets.right_;
70 }
◆ operator==()
bool gfx::InsetsF::operator== |
( |
const InsetsF & |
insets | ) |
const |
|
inline |
Definition at line 51 of file insets_f.h.
51 {
52 return top_ == insets.top_ && left_ == insets.left_ &&
53 bottom_ == insets.bottom_ && right_ == insets.right_;
54 }
◆ right()
constexpr float gfx::InsetsF::right |
( |
| ) |
const |
|
inlineconstexpr |
◆ Scale()
InsetsF gfx::InsetsF::Scale |
( |
float |
scale | ) |
const |
|
inline |
◆ Set()
void gfx::InsetsF::Set |
( |
float |
top, |
|
|
float |
left, |
|
|
float |
bottom, |
|
|
float |
right |
|
) |
| |
|
inline |
◆ top()
constexpr float gfx::InsetsF::top |
( |
| ) |
const |
|
inlineconstexpr |
◆ ToString()
std::string gfx::InsetsF::ToString |
( |
| ) |
const |
Definition at line 11 of file insets_f.cc.
11 {
12
14}
std::string StringPrintf(const std::string &format, Args... args)
◆ width()
constexpr float gfx::InsetsF::width |
( |
| ) |
const |
|
inlineconstexpr |
Definition at line 35 of file insets_f.h.
35{ return left_ + right_; }
The documentation for this class was generated from the following files: