46 #ifndef LEGATO_WINDOW_H 47 #define LEGATO_WINDOW_H 51 #if LE_WINDOW_WIDGET_ENABLED == 1 67 typedef struct leWindowWidget leWindowWidget;
73 #define LE_WINDOWWIDGET_VTABLE(THIS_TYPE) \ 74 LE_WIDGET_VTABLE(THIS_TYPE) \ 75 uint32_t (*getTitleHeight)(const THIS_TYPE* _this); \ 76 leResult (*setTitleHeight)(THIS_TYPE* _this, uint32_t ht); \ 77 leString* (*getString)(const THIS_TYPE* _this); \ 78 leResult (*setString)(THIS_TYPE* _this, const leString* str); \ 79 leImage* (*getIcon)(const THIS_TYPE* _this); \ 80 leResult (*setIcon)(THIS_TYPE* _this, const leImage* img); \ 81 uint32_t (*getIconMargin)(const THIS_TYPE* _this); \ 82 leResult (*setIconMargin)(THIS_TYPE* _this, uint32_t mg); \ 84 typedef struct leWindowWidgetVTable
86 LE_WINDOWWIDGET_VTABLE(leWindowWidget)
87 } leWindowWidgetVTable;
113 typedef struct leWindowWidget
117 const leWindowWidgetVTable* fn;
119 uint32_t titleHeight;
144 leWindowWidget* leWindowWidget_New(
void);
156 void leWindowWidget_Constructor(leWindowWidget* wgt);
159 #define THIS_TYPE struct leWidget 172 virtual uint32_t getTitleHeight(
const leWindowWidget* _this);
187 virtual leResult setTitleHeight(leWindowWidget* _this,
201 virtual leString* getString(
const leWindowWidget* _this);
217 virtual leResult setString(leWindowWidget* _this,
232 virtual leImage* getIcon(
const leWindowWidget* _this);
246 virtual leResult setIcon(leWindowWidget* _this,
260 virtual uint32_t getIconMargin(
const leWindowWidget* _this);
275 virtual leResult setIconMargin(
const leWindowWidget*
this, uint32_t mg);
285 #endif // LE_WINDOW_WIDGET_ENABLED Common macros and definitions used by Legato.
Image functions and defintions.
Definition: legato_image.h:181
This struct represents a string.
Definition: legato_string.h:107
leResult
This enum represents function call results.
Definition: legato_common.h:123
Fixed string functions and definitions.