46 #ifndef LEGATO_DRAWSURFACE_H 47 #define LEGATO_DRAWSURFACE_H 51 #if LE_DRAWSURFACE_WIDGET_ENABLED == 1 59 typedef struct leDrawSurfaceWidget leDrawSurfaceWidget;
73 typedef leBool (* leDrawSurfaceWidget_DrawCallback)(leDrawSurfaceWidget* sfc,
87 typedef struct leDrawSurfaceWidget leDrawSurfaceWidget;
89 #define LE_DRAWSURFACEWIDGET_VTABLE(THIS_TYPE) \ 90 LE_WIDGET_VTABLE(THIS_TYPE) \ 92 leDrawSurfaceWidget_DrawCallback (*getDrawCallback)(const THIS_TYPE* _this); \ 93 leResult (*setDrawCallback)(THIS_TYPE* _this, leDrawSurfaceWidget_DrawCallback cb); \ 95 typedef struct leDrawSurfaceWidgetVTable
97 LE_DRAWSURFACEWIDGET_VTABLE(leDrawSurfaceWidget)
98 } leDrawSurfaceWidgetVTable;
139 typedef struct leDrawSurfaceWidget
143 const leDrawSurfaceWidgetVTable* fn;
145 leDrawSurfaceWidget_DrawCallback cb;
146 } leDrawSurfaceWidget;
165 leDrawSurfaceWidget* leDrawSurfaceWidget_New(
void);
177 void leDrawSurfaceWidget_Constructor(leDrawSurfaceWidget* sfc);
181 #define THIS_TYPE struct leWidget 194 virtual leDrawSurfaceWidget_DrawCallback getDrawCallback(
const leDrawSurfaceWidget* _this);
210 virtual leResult setDrawCallback(leDrawSurfaceWidget* _this,
211 leDrawSurfaceWidget_DrawCallback cb);
220 #endif // LE_DRAWSURFACE_WIDGET_ENABLED Common macros and definitions used by Legato.
leResult
This enum represents function call results.
Definition: legato_common.h:123
This struct represents a rectangle.
Definition: legato_common.h:394
leBool
This enum represents booleans.
Definition: legato_common.h:146