lxgui
|
Holds 2D bounds of a region. More...
#include <gui_bounds2.hpp>
Public Member Functions | |
constexpr | bounds2 ()=default |
constexpr | bounds2 (T l, T r, T t, T b) noexcept |
constexpr | bounds2 (const vector2< T > ¢er, const vector2< T > &size) noexcept |
void | set (T l, T r, T t, T b) noexcept |
vector2< T > | top_left () const noexcept |
vector2< T > | top_right () const noexcept |
vector2< T > | bottom_right () const noexcept |
vector2< T > | bottom_left () const noexcept |
vector2< T > | center () const noexcept |
T | width () const noexcept |
T | height () const noexcept |
vector2< T > | dimensions () const noexcept |
bool | contains (const vector2< T > &p) const |
bool | overlaps (const bounds2< T > &quad) const |
bool | operator== (const bounds2< T > &quad) const |
bool | operator!= (const bounds2< T > &quad) const |
Public Attributes | |
T | left = 0 |
T | right = 0 |
T | top = 0 |
T | bottom = 0 |
Static Public Attributes | |
static const bounds2 | zero |
Holds 2D bounds of a region.
The bounds are stored as left, right, top, and bottom coordinates.
Definition at line 14 of file gui_bounds2.hpp.
|
constexprdefault |
|
inlineconstexprnoexcept |
Definition at line 17 of file gui_bounds2.hpp.
|
inlineconstexprnoexcept |
Definition at line 19 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 44 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 40 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 48 of file gui_bounds2.hpp.
|
inline |
Definition at line 64 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 60 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 56 of file gui_bounds2.hpp.
|
inline |
Definition at line 81 of file gui_bounds2.hpp.
|
inline |
Definition at line 77 of file gui_bounds2.hpp.
|
inline |
Definition at line 68 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 25 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 32 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 36 of file gui_bounds2.hpp.
|
inlinenoexcept |
Definition at line 52 of file gui_bounds2.hpp.
T lxgui::gui::bounds2< T >::bottom = 0 |
Definition at line 87 of file gui_bounds2.hpp.
T lxgui::gui::bounds2< T >::left = 0 |
Definition at line 87 of file gui_bounds2.hpp.
T lxgui::gui::bounds2< T >::right = 0 |
Definition at line 87 of file gui_bounds2.hpp.
T lxgui::gui::bounds2< T >::top = 0 |
Definition at line 87 of file gui_bounds2.hpp.
|
static |
Definition at line 85 of file gui_bounds2.hpp.