 |
MPLABĀ® Harmony Graphics Suite
|
Go to the documentation of this file.
46 #ifndef LEGATO_DRAWSURFACE_H
47 #define LEGATO_DRAWSURFACE_H
51 #if LE_DRAWSURFACE_WIDGET_ENABLED
55 typedef struct leDrawSurfaceWidget leDrawSurfaceWidget;
69 typedef leBool (*leDrawSurfaceWidget_DrawCallback)(leDrawSurfaceWidget* sfc,
83 typedef struct leDrawSurfaceWidget leDrawSurfaceWidget;
85 #define LE_DRAWSURFACEWIDGET_VTABLE(THIS_TYPE) \
86 LE_WIDGET_VTABLE(THIS_TYPE) \
88 leDrawSurfaceWidget_DrawCallback (*getDrawCallback)(const THIS_TYPE* _this); \
89 leResult (*setDrawCallback)(THIS_TYPE* _this, leDrawSurfaceWidget_DrawCallback cb); \
91 typedef struct leDrawSurfaceWidgetVTable
93 LE_DRAWSURFACEWIDGET_VTABLE(leDrawSurfaceWidget)
94 } leDrawSurfaceWidgetVTable;
135 typedef struct leDrawSurfaceWidget
139 const leDrawSurfaceWidgetVTable* fn;
141 leDrawSurfaceWidget_DrawCallback cb;
142 } leDrawSurfaceWidget;
161 LIB_EXPORT leDrawSurfaceWidget* leDrawSurfaceWidget_New();
173 LIB_EXPORT
void leDrawSurfaceWidget_Constructor(leDrawSurfaceWidget* sfc);
177 #define THIS_TYPE struct leWidget
190 virtual leDrawSurfaceWidget_DrawCallback getDrawCallback(
const leDrawSurfaceWidget* _this);
206 virtual leResult setDrawCallback(leDrawSurfaceWidget* _this,
207 leDrawSurfaceWidget_DrawCallback cb);
212 #endif // LE_DRAWSURFACE_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
This struct represents a rectangle.
Definition: legato_common.h:405
Memory functions and definitions.
leBool
This enum represents booleans.
Definition: legato_common.h:157
@ LE_FALSE
Definition: legato_common.h:158
General internal utilities for the library.
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
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.
This structure represents a integer Cartesian point.
Definition: legato_common.h:357