46 #ifndef LEGATO_IMAGE_H 47 #define LEGATO_IMAGE_H 51 #if LE_IMAGE_WIDGET_ENABLED == 1 59 typedef struct leImageWidget leImageWidget;
73 #define LE_IMAGEWIDGET_VTABLE(THIS_TYPE) \ 74 LE_WIDGET_VTABLE(THIS_TYPE) \ 76 leImage* (*getImage)(const THIS_TYPE* _this); \ 77 leResult (*setImage)(THIS_TYPE* _this, leImage* img); \ 79 typedef struct leImageWidgetVTable
81 LE_IMAGEWIDGET_VTABLE(leImageWidget)
82 } leImageWidgetVTable;
106 typedef struct leImageWidget
110 const leImageWidgetVTable* fn;
132 leImageWidget* leImageWidget_New(
void);
144 void leImageWidget_Constructor(leImageWidget* img);
147 #define THIS_TYPE struct leWidget 159 virtual leImage* getImage(
const leImageWidget* _this);
175 virtual leResult setImage(leImageWidget* _this,
191 virtual leResult setDebugDrawStartCallback(leImageWidget* _this,
192 leImageWidget_DrawEventCallback cb);
207 virtual void setDebugDrawEndCallback(leImageWidget* _this,
208 leImageWidget_DrawEventCallback cb);
217 #endif // LE_IMAGE_WIDGET_ENABLED Common macros and definitions used by Legato.
Definition: legato_image.h:181
leResult
This enum represents function call results.
Definition: legato_common.h:123