46 #ifndef LEGATO_IMAGEROTATE_H 47 #define LEGATO_IMAGEROTATE_H 51 #if LE_IMAGEROTATE_WIDGET_ENABLED == 1 60 typedef struct leImageRotateWidget leImageRotateWidget;
68 typedef struct leImageRotateWidget leImageRotateWidget;
74 #define LE_IMAGEROTATEWIDGET_VTABLE(THIS_TYPE) \ 75 LE_WIDGET_VTABLE(THIS_TYPE) \ 77 leImage* (*getImage)(const THIS_TYPE* _this); \ 78 leResult (*setImage)(THIS_TYPE* _this, const leImage* img); \ 79 int32_t (*getAngle)(const THIS_TYPE* _this); \ 80 leResult (*setAngle)(THIS_TYPE* _this, int32_t a); \ 81 leImageFilterMode (*getFilter)(const THIS_TYPE* _this); \ 82 leResult (*setFilter)(THIS_TYPE* _this, leImageFilterMode filter); \ 84 typedef struct leImageRotateWidgetVTable
86 LE_IMAGEROTATEWIDGET_VTABLE(leImageRotateWidget)
87 } leImageRotateWidgetVTable;
110 typedef struct leImageRotateWidget
114 const leImageRotateWidgetVTable* fn;
121 } leImageRotateWidget;
129 void _leImageRotateWidget_Destructor(leImageRotateWidget* img);
131 void _leImageRotateWidget_Paint(leImageRotateWidget* img);
154 leImageRotateWidget* leImageRotateWidget_New(
void);
166 void leImageRotateWidget_Constructor(leImageRotateWidget* wgt);
169 #define THIS_TYPE struct leWidget 181 virtual leImage* getImage(
const leImageRotateWidget* _this);
197 virtual leResult setImage(leImageRotateWidget* _this,
211 virtual lePoint getOrigin(
const leImageRotateWidget* _this);
227 virtual leResult setOrigin(leImageRotateWidget* _this,
241 virtual int32_t getAngle(
const leImageRotateWidget* _this);
258 virtual leResult setAngle(leImageRotateWidget* _this,
273 virtual leImageFilter getFilter(
const leImageRotateWidget* _this);
290 virtual leResult setFilter(leImageRotateWidget* _this,
291 leImageFilter filter);
300 #endif // LE_IMAGEROTATE_WIDGET_ENABLED Common macros and definitions used by Legato.
Image functions and defintions.
Definition: legato_image.h:181
leResult
This enum represents function call results.
Definition: legato_common.h:123
leImageFilterMode
This enum represents image filter modes.
Definition: legato_image.h:110
This structure represents a integer Cartesian point.
Definition: legato_common.h:346