  | 
  
    MPLABĀ® Harmony Graphics Suite
    
   | 
 
 
 
 
Go to the documentation of this file.
   46 #ifndef LEGATO_WINDOW_H 
   47 #define LEGATO_WINDOW_H 
   51 #if LE_WINDOW_WIDGET_ENABLED == 1 
   65 typedef struct leWindowWidget leWindowWidget;
 
   71 #define LE_WINDOWWIDGET_VTABLE(THIS_TYPE) \ 
   72     LE_WIDGET_VTABLE(THIS_TYPE) \ 
   73     uint32_t  (*getTitleHeight)(const THIS_TYPE* _this); \ 
   74     leResult  (*setTitleHeight)(THIS_TYPE* this, uint32_t ht); \ 
   75     leString* (*getString)(const THIS_TYPE* _this); \ 
   76     leResult  (*setString)(THIS_TYPE* _this, const leString* str); \ 
   77     leImage*  (*getIcon)(const THIS_TYPE* _this); \ 
   78     leResult  (*setIcon)(THIS_TYPE* _this, const leImage* img); \ 
   79     uint32_t  (*getIconMargin)(const THIS_TYPE* this); \ 
   80     leResult  (*setIconMargin)(THIS_TYPE* this, uint32_t mg); \ 
   82 typedef struct leWindowWidgetVTable
 
   84     LE_WINDOWWIDGET_VTABLE(leWindowWidget)
 
   85 } leWindowWidgetVTable; 
 
  111 typedef struct leWindowWidget
 
  115     const leWindowWidgetVTable* fn;
 
  117     uint32_t titleHeight; 
 
  142 LIB_EXPORT leWindowWidget* leWindowWidget_New();
 
  154 LIB_EXPORT 
void leWindowWidget_Constructor(leWindowWidget* wgt);
 
  157 #define THIS_TYPE struct leWidget 
  170 virtual uint32_t getTitleHeight(
const leWindowWidget* _this);
 
  185 virtual leResult setTitleHeight(leWindowWidget* _this,
 
  199 virtual leString* getString(
const leWindowWidget* _this);
 
  215 virtual leResult setString(leWindowWidget* _this,
 
  230 virtual leImage* getIcon(
const leWindowWidget* _this);
 
  244 virtual leResult setIcon(leWindowWidget* _this,
 
  258 virtual uint32_t getIconMargin(
const leWindowWidget* _this);
 
  273 virtual leResult setIconMargin(
const leWindowWidget* 
this, uint32_t mg);
 
  279 #endif // LE_WINDOW_WIDGET_ENABLED 
  
Defines common math functions for general use.
 
Error functions, macros and definitions.
 
leResult
This enum represents function call results.
Definition: legato_common.h:134
 
LIB_EXPORT uint32_t lePercentWholeRounded(uint32_t l, uint32_t r)
Calculate percent whole rounded.
Definition: legato_math.c:204
 
This struct represents a rectangle.
Definition: legato_common.h:405
 
Image functions and defintions.
 
Memory functions and definitions.
 
Definition: legato_image.h:180
 
LIB_EXPORT leColor leColorLerp(leColor l, leColor r, uint32_t percent, leColorMode mode)
Get color from linear interpolate of two colors.
Definition: legato_color_lerp.c:284
 
This struct represents a string.
Definition: legato_string.h:108
 
General internal utilities for the library.
 
Fixed string functions and definitions.
 
The header file joins all header files used in the graphics object library.
 
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.
 
const leStringVTable * fn
Definition: legato_string.h:109
 
virtual void destructor(leString *_this)
Destruct string.
 
This structure represents a integer Cartesian point.
Definition: legato_common.h:357