Skip to content

Class daisy::Rectangle

ClassList > daisy > Rectangle

Public Functions

Type Name
Rectangle AlignedWithin (const Rectangle & other, Alignment alignment) const
int16_t GetBottom () const
int16_t GetCenterX () const
int16_t GetCenterY () const
int16_t GetHeight () const
int16_t GetRight () const
int16_t GetWidth () const
int16_t GetX () const
int16_t GetY () const
bool IsEmpty () const
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 Reduced (int16_t sizeToReduce) const
Rectangle Reduced (int16_t xToReduce, int16_t yToReduce) const
Rectangle RemoveFromBottom (int16_t pxToRemove)
Rectangle RemoveFromLeft (int16_t pxToRemove)
Rectangle RemoveFromRight (int16_t pxToRemove)
Rectangle RemoveFromTop (int16_t pxToRemove)
Rectangle Translated (int16_t x, int16_t y) const
Rectangle WithBottom (int16_t bottom) const
Rectangle WithCenter (int16_t centerX, int16_t centerY) const
Rectangle WithCenterX (int16_t centerX) const
Rectangle WithCenterY (int16_t centerY) const
Rectangle WithHeight (int16_t height) const
Rectangle WithHeightKeepingCenter (int16_t height) const
Rectangle WithLeft (int16_t left) const
Rectangle WithRight (int16_t right) const
Rectangle WithSize (int16_t width, int16_t height) const
Rectangle WithSizeKeepingCenter (int16_t width, int16_t height) const
Rectangle WithTop (int16_t top) const
Rectangle WithTrimmedBottom (int16_t pxToTrim) const
Rectangle WithTrimmedLeft (int16_t pxToTrim) const
Rectangle WithTrimmedRight (int16_t pxToTrim) const
Rectangle WithTrimmedTop (int16_t pxToTrim) const
Rectangle WithWidth (int16_t width) const
Rectangle WithWidthKeepingCenter (int16_t width) const
Rectangle WithX (int16_t x) const
Rectangle WithY (int16_t y) const
bool operator!= (const Rectangle & other) const
Rectangle & operator= (const Rectangle & other)
bool operator== (const Rectangle & other) const

Public Functions Documentation

function AlignedWithin

inline Rectangle daisy::Rectangle::AlignedWithin (
    const  Rectangle & other,
    Alignment alignment
) const

function GetBottom

inline int16_t daisy::Rectangle::GetBottom () const

function GetCenterX

inline int16_t daisy::Rectangle::GetCenterX () const

function GetCenterY

inline int16_t daisy::Rectangle::GetCenterY () const

function GetHeight

inline int16_t daisy::Rectangle::GetHeight () const

function GetRight

inline int16_t daisy::Rectangle::GetRight () const

function GetWidth

inline int16_t daisy::Rectangle::GetWidth () const

function GetX

inline int16_t daisy::Rectangle::GetX () const

function GetY

inline int16_t daisy::Rectangle::GetY () const

function IsEmpty

inline bool daisy::Rectangle::IsEmpty () const

function Rectangle [¼]

inline daisy::Rectangle::Rectangle () 

function Rectangle [2/4]

inline daisy::Rectangle::Rectangle (
    int16_t width,
    int16_t height
) 

function Rectangle [¾]

inline daisy::Rectangle::Rectangle (
    int16_t x,
    int16_t y,
    int16_t width,
    int16_t height
) 

function Rectangle [4/4]

inline daisy::Rectangle::Rectangle (
    const  Rectangle & other
) 

function Reduced [½]

inline Rectangle daisy::Rectangle::Reduced (
    int16_t sizeToReduce
) const

function Reduced [2/2]

inline Rectangle daisy::Rectangle::Reduced (
    int16_t xToReduce,
    int16_t yToReduce
) const

function RemoveFromBottom

inline Rectangle daisy::Rectangle::RemoveFromBottom (
    int16_t pxToRemove
) 

function RemoveFromLeft

inline Rectangle daisy::Rectangle::RemoveFromLeft (
    int16_t pxToRemove
) 

function RemoveFromRight

inline Rectangle daisy::Rectangle::RemoveFromRight (
    int16_t pxToRemove
) 

function RemoveFromTop

inline Rectangle daisy::Rectangle::RemoveFromTop (
    int16_t pxToRemove
) 

function Translated

inline Rectangle daisy::Rectangle::Translated (
    int16_t x,
    int16_t y
) const

function WithBottom

inline Rectangle daisy::Rectangle::WithBottom (
    int16_t bottom
) const

function WithCenter

inline Rectangle daisy::Rectangle::WithCenter (
    int16_t centerX,
    int16_t centerY
) const

function WithCenterX

inline Rectangle daisy::Rectangle::WithCenterX (
    int16_t centerX
) const

function WithCenterY

inline Rectangle daisy::Rectangle::WithCenterY (
    int16_t centerY
) const

function WithHeight

inline Rectangle daisy::Rectangle::WithHeight (
    int16_t height
) const

function WithHeightKeepingCenter

inline Rectangle daisy::Rectangle::WithHeightKeepingCenter (
    int16_t height
) const

function WithLeft

inline Rectangle daisy::Rectangle::WithLeft (
    int16_t left
) const

function WithRight

inline Rectangle daisy::Rectangle::WithRight (
    int16_t right
) const

function WithSize

inline Rectangle daisy::Rectangle::WithSize (
    int16_t width,
    int16_t height
) const

function WithSizeKeepingCenter

inline Rectangle daisy::Rectangle::WithSizeKeepingCenter (
    int16_t width,
    int16_t height
) const

function WithTop

inline Rectangle daisy::Rectangle::WithTop (
    int16_t top
) const

function WithTrimmedBottom

inline Rectangle daisy::Rectangle::WithTrimmedBottom (
    int16_t pxToTrim
) const

function WithTrimmedLeft

inline Rectangle daisy::Rectangle::WithTrimmedLeft (
    int16_t pxToTrim
) const

function WithTrimmedRight

inline Rectangle daisy::Rectangle::WithTrimmedRight (
    int16_t pxToTrim
) const

function WithTrimmedTop

inline Rectangle daisy::Rectangle::WithTrimmedTop (
    int16_t pxToTrim
) const

function WithWidth

inline Rectangle daisy::Rectangle::WithWidth (
    int16_t width
) const

function WithWidthKeepingCenter

inline Rectangle daisy::Rectangle::WithWidthKeepingCenter (
    int16_t width
) const

function WithX

inline Rectangle daisy::Rectangle::WithX (
    int16_t x
) const

function WithY

inline Rectangle daisy::Rectangle::WithY (
    int16_t y
) const

function operator!=

inline bool daisy::Rectangle::operator!= (
    const  Rectangle & other
) const

function operator=

inline Rectangle & daisy::Rectangle::operator= (
    const  Rectangle & other
) 

function operator==

inline bool daisy::Rectangle::operator== (
    const  Rectangle & other
) const


The documentation for this class was generated from the following file external-docs/libDaisy/src/hid/disp/graphics_common.h