#include <range.h>
Definition at line 33 of file range.h.
◆ Range() [1/3]
constexpr gfx::Range::Range |
( |
| ) |
|
|
inlineconstexpr |
◆ Range() [2/3]
constexpr gfx::Range::Range |
( |
uint32_t |
start, |
|
|
uint32_t |
end |
|
) |
| |
|
inlineconstexpr |
Definition at line 39 of file range.h.
constexpr uint32_t end() const
constexpr uint32_t start() const
◆ Range() [3/3]
constexpr gfx::Range::Range |
( |
uint32_t |
position | ) |
|
|
inlineexplicitconstexpr |
Definition at line 42 of file range.h.
42:
Range(position, position) {}
◆ Contains()
constexpr bool gfx::Range::Contains |
( |
const Range & |
range | ) |
const |
|
inlineconstexpr |
Definition at line 84 of file range.h.
84 {
85 return range.IsBoundedBy(*this) &&
86
88 }
constexpr uint32_t GetMax() const
constexpr bool is_empty() const
◆ end()
constexpr uint32_t gfx::Range::end |
( |
| ) |
const |
|
inlineconstexpr |
◆ EqualsIgnoringDirection()
constexpr bool gfx::Range::EqualsIgnoringDirection |
( |
const Range & |
other | ) |
const |
|
inlineconstexpr |
Definition at line 76 of file range.h.
76 {
77 return GetMin() == other.GetMin() &&
GetMax() == other.GetMax();
78 }
constexpr uint32_t GetMin() const
◆ GetMax()
constexpr uint32_t gfx::Range::GetMax |
( |
| ) |
const |
|
inlineconstexpr |
◆ GetMin()
constexpr uint32_t gfx::Range::GetMin |
( |
| ) |
const |
|
inlineconstexpr |
◆ Intersect()
constexpr Range gfx::Range::Intersect |
( |
const Range & |
range | ) |
const |
|
inlineconstexpr |
Definition at line 99 of file range.h.
99 {
104 }
constexpr bool Contains(const Range &range) const
static constexpr Range InvalidRange()
static float max(float r, float g, float b)
static float min(float r, float g, float b)
◆ Intersects()
constexpr bool gfx::Range::Intersects |
( |
const Range & |
range | ) |
const |
|
inlineconstexpr |
Definition at line 81 of file range.h.
constexpr Range Intersect(const Range &range) const
constexpr bool IsValid() const
◆ InvalidRange()
static constexpr Range gfx::Range::InvalidRange |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ is_empty()
constexpr bool gfx::Range::is_empty |
( |
| ) |
const |
|
inlineconstexpr |
◆ is_reversed()
constexpr bool gfx::Range::is_reversed |
( |
| ) |
const |
|
inlineconstexpr |
◆ IsBoundedBy()
constexpr bool gfx::Range::IsBoundedBy |
( |
const Range & |
range | ) |
const |
|
inlineconstexpr |
Definition at line 92 of file range.h.
92 {
93 return IsValid() && range.IsValid() &&
GetMin() >= range.GetMin() &&
GetMax() <= range.GetMax();
94 }
◆ IsValid()
constexpr bool gfx::Range::IsValid |
( |
| ) |
const |
|
inlineconstexpr |
◆ length()
constexpr uint32_t gfx::Range::length |
( |
| ) |
const |
|
inlineconstexpr |
◆ operator!=()
constexpr bool gfx::Range::operator!= |
( |
const Range & |
other | ) |
const |
|
inlineconstexpr |
Definition at line 75 of file range.h.
75{ return !(*this == other); }
◆ operator==()
constexpr bool gfx::Range::operator== |
( |
const Range & |
other | ) |
const |
|
inlineconstexpr |
Definition at line 72 of file range.h.
72 {
73 return start() == other.start() &&
end() == other.end();
74 }
◆ set_end()
void gfx::Range::set_end |
( |
uint32_t |
end | ) |
|
|
inline |
◆ set_start()
void gfx::Range::set_start |
( |
uint32_t |
start | ) |
|
|
inline |
◆ start()
constexpr uint32_t gfx::Range::start |
( |
| ) |
const |
|
inlineconstexpr |
◆ ToString()
std::string gfx::Range::ToString |
( |
| ) |
const |
Definition at line 14 of file range.cc.
14 {
16}
std::string StringPrintf(const std::string &format, Args... args)
The documentation for this class was generated from the following files:
- third_party/accessibility/gfx/range/range.h
- third_party/accessibility/gfx/range/range.cc