daisy::Rectangle¶
#include <graphics_common.h>
Public Functions¶
Name | |
---|---|
Rectangle() | |
Rectangle(int16_t width, int16_t height) | |
Rectangle(int16_t x, int16_t y, int16_t width, int16_t height) | |
Rectangle(const Rectangle & other) | |
Rectangle & | operator=(const Rectangle & other) |
bool | operator==(const Rectangle & other) const |
bool | operator!=(const Rectangle & other) const |
bool | IsEmpty() const |
int16_t | GetX() const |
int16_t | GetY() const |
int16_t | GetWidth() const |
int16_t | GetHeight() const |
int16_t | GetRight() const |
int16_t | GetBottom() const |
int16_t | GetCenterX() const |
int16_t | GetCenterY() const |
Rectangle | WithX(int16_t x) const |
Rectangle | WithY(int16_t y) const |
Rectangle | WithWidth(int16_t width) const |
Rectangle | WithHeight(int16_t height) const |
Rectangle | WithSize(int16_t width, int16_t height) const |
Rectangle | WithWidthKeepingCenter(int16_t width) const |
Rectangle | WithHeightKeepingCenter(int16_t height) const |
Rectangle | WithSizeKeepingCenter(int16_t width, int16_t height) const |
Rectangle | Reduced(int16_t sizeToReduce) const |
Rectangle | Reduced(int16_t xToReduce, int16_t yToReduce) const |
Rectangle | Translated(int16_t x, int16_t y) const |
Rectangle | WithLeft(int16_t left) const |
Rectangle | WithRight(int16_t right) const |
Rectangle | WithTop(int16_t top) const |
Rectangle | WithBottom(int16_t bottom) const |
Rectangle | WithTrimmedLeft(int16_t pxToTrim) const |
Rectangle | WithTrimmedRight(int16_t pxToTrim) const |
Rectangle | WithTrimmedTop(int16_t pxToTrim) const |
Rectangle | WithTrimmedBottom(int16_t pxToTrim) const |
Rectangle | WithCenterX(int16_t centerX) const |
Rectangle | WithCenterY(int16_t centerY) const |
Rectangle | WithCenter(int16_t centerX, int16_t centerY) const |
Rectangle | RemoveFromLeft(int16_t pxToRemove) |
Rectangle | RemoveFromRight(int16_t pxToRemove) |
Rectangle | RemoveFromTop(int16_t pxToRemove) |
Rectangle | RemoveFromBottom(int16_t pxToRemove) |
Rectangle | AlignedWithin(const Rectangle & other, Alignment alignment) const |
Public Functions Documentation¶
function Rectangle¶
function Rectangle¶
function Rectangle¶
function Rectangle¶
function operator=¶
function operator==¶
function operator!=¶
function IsEmpty¶
function GetX¶
function GetY¶
function GetWidth¶
function GetHeight¶
function GetRight¶
function GetBottom¶
function GetCenterX¶
function GetCenterY¶
function WithX¶
function WithY¶
function WithWidth¶
function WithHeight¶
function WithSize¶
function WithWidthKeepingCenter¶
function WithHeightKeepingCenter¶
function WithSizeKeepingCenter¶
function Reduced¶
function Reduced¶
function Translated¶
function WithLeft¶
function WithRight¶
function WithTop¶
function WithBottom¶
function WithTrimmedLeft¶
function WithTrimmedRight¶
function WithTrimmedTop¶
function WithTrimmedBottom¶
function WithCenterX¶
function WithCenterY¶
function WithCenter¶
function RemoveFromLeft¶
function RemoveFromRight¶
function RemoveFromTop¶
function RemoveFromBottom¶
function AlignedWithin¶
---¶
Updated on 2024-01-03 at 19:41:00 +0000