  | 
  
    MPLABĀ® Harmony Graphics Suite
    
   | 
 
 
 
 
Go to the documentation of this file.
   45 #ifndef LEGATO_RECTANGLE_H 
   46 #define LEGATO_RECTANGLE_H 
   50 #if LE_RECTANGLE_WIDGET_ENABLED == 1 
   60 typedef struct leRectangleWidget leRectangleWidget;
 
   62 #define LE_RECTANGLEWIDGET_VTABLE(THIS_TYPE) \ 
   63     LE_WIDGET_VTABLE(THIS_TYPE) \ 
   65     int32_t   (*getThickness)(const THIS_TYPE* _this); \ 
   66     leResult  (*setThickness)(THIS_TYPE* _this, int32_t thk); \ 
   68 typedef struct leRectangleWidgetVTable
 
   70     LE_RECTANGLEWIDGET_VTABLE(leRectangleWidget)
 
   71 } leRectangleWidgetVTable; 
 
   79 typedef struct leRectangleWidget
 
   83     const leRectangleWidgetVTable* fn;
 
  105 LIB_EXPORT leRectangleWidget* leRectangleWidget_New();
 
  117 void leRectangleWidget_Constructor(leRectangleWidget* wgt);
 
  121 #define THIS_TYPE struct leWidget 
  152 virtual int32_t 
getThickness(
const leRectangleWidget* _this);
 
  194 #endif // LE_RECTANGLE_WIDGET_ENABLED 
  
Error functions, macros and definitions.
 
leResult
This enum represents function call results.
Definition: legato_common.h:134
 
This struct represents a rectangle.
Definition: legato_common.h:405
 
Image functions and defintions.
 
Memory functions and definitions.
 
Definition: legato_image.h:180
 
@ LE_HALIGN_CENTER
Definition: legato_common.h:208
 
leBool
This enum represents booleans.
Definition: legato_common.h:157
 
LIB_EXPORT leRect leRectClipAdj(const leRect *l_rect, const leRect *r_rect, leRect *adj)
Clips a rectangle to the space of another rectangle.
Definition: legato_rect.c:75
 
@ LE_FALSE
Definition: legato_common.h:158
 
General internal utilities for the library.
 
LIB_EXPORT leResult leImage_Draw(const leImage *img, const leRect *sourceRect, int32_t x, int32_t y, uint32_t a)
Draw an Image.
Definition: legato_image.c:131
 
Fixed string functions and definitions.
 
void leUtils_RectToScreenSpace(const leWidget *widget, leRect *rect)
Convert rectangle from widget local space to screen space.
Definition: legato_utils.c:151
 
LIB_EXPORT void leRectClip(const leRect *l_rect, const leRect *r_rect, leRect *result)
Clips a rectangle to the space of another rectangle.
Definition: legato_rect.c:122
 
leColor leScheme_GetRenderColor(const leScheme *schm, leSchemeColor clr)
Gets a scheme render color for the current layer color mode.
Definition: legato_scheme.c:68
 
@ LE_TRUE
Definition: legato_common.h:159
 
Common macros and definitions used by Legato.
 
void leUtils_ArrangeRectangle(leRect *sub, leRect obj, leRect bounds, leHAlignment hAlignment, leVAlignment vAlignment, leRelativePosition position, uint8_t leftMargin, uint8_t topMargin, uint8_t rightMargin, uint8_t bottomMargin, uint16_t rectMargin)
Calculates the position of a rectangle within the given bound.
Definition: legato_utils.c:213
 
void leUtils_ArrangeRectangleRelative(leRect *sub, leRect obj, leRect bounds, leHAlignment hAlignment, leVAlignment vAlignment, leRelativePosition position, uint8_t leftMargin, uint8_t topMargin, uint8_t rightMargin, uint8_t bottomMargin, uint16_t rectMargin)
Calculates the position of a rectangle within the given bounds.
Definition: legato_utils.c:286