|
Rose
|
Abstraction of space consumed around an object for space, borders, etc. More...
#include <Types.h>


Public Member Functions | |
| constexpr | Padding (int p) noexcept |
| constexpr | Padding (int h, int v) noexcept |
| constexpr | Padding (int top, int bot, int left, int right) noexcept |
| constexpr int | vertical () const noexcept |
| constexpr int | horizontal () const noexcept |
| constexpr Position< int > | position () const noexcept |
| constexpr Size | size () const noexcept |
| int & | priLead (Orientation o) noexcept |
| int & | priLag (Orientation o) noexcept |
| int & | secLead (Orientation o) noexcept |
| int & | secLag (Orientation o) noexcept |
| constexpr int | priLead (Orientation o) const noexcept |
| constexpr int | priLag (Orientation o) const noexcept |
| constexpr int | secLead (Orientation o) const noexcept |
| constexpr int | secLag (Orientation o) const noexcept |
| constexpr | Padding (std::array< int, 4 > value) noexcept |
| Constructor initialize to the value of an array. | |
| constexpr | Padding (int value=0) noexcept |
| Default constructor initializes x and y to 0 or to a specified value. | |
| constexpr | Padding (int left, int top, int right, int bottom) noexcept |
| Constructor initialize to descrete x, y, width, and height values. | |
| constexpr int | left () const noexcept |
| Get the left padding. | |
| constexpr int | right () const noexcept |
| Get the right padding. | |
| constexpr int | top () const noexcept |
| Get the top padding. | |
| constexpr int | bottom () const noexcept |
| Get the bottom padding. | |
| constexpr int | width () const noexcept |
| Get the width of the padding. | |
| constexpr int | height () const noexcept |
| Get the height of the padding. | |
| constexpr Size | padSize () const noexcept |
| Get the total size of the padding. | |
| constexpr Position | padPos () const noexcept |
| Get the position of the padding. | |
| int & | left () noexcept |
| Access the left padding. | |
| int & | right () noexcept |
| Access the right padding. | |
| int & | top () noexcept |
| Access the top padding. | |
| int & | bottom () noexcept |
| Access the bottom padding. | |
| Padding & | operator= (const Padding &other) noexcept |
| constexpr Padding & | operator= (int value) noexcept |
Public Attributes | |
| int | t {0} |
| int | b {0} |
| int | l {0} |
| int | r {0} |
Static Public Attributes | |
| static const Padding | Zero = Padding{} |
| A rectangle with position and size of zero. | |
Abstraction of space consumed around an object for space, borders, etc.
1.8.13