 |
MPLABĀ® Harmony Graphics Suite
|
Go to the documentation of this file.
46 #ifndef LEGATO_IMAGEROTATE_H
47 #define LEGATO_IMAGEROTATE_H
51 #if LE_IMAGEROTATE_WIDGET_ENABLED
56 typedef struct leImageRotateWidget leImageRotateWidget;
64 typedef struct leImageRotateWidget leImageRotateWidget;
70 #define LE_IMAGEROTATEWIDGET_VTABLE(THIS_TYPE) \
71 LE_WIDGET_VTABLE(THIS_TYPE) \
73 leImage* (*getImage)(const THIS_TYPE* _this); \
74 leResult (*setImage)(THIS_TYPE* _this, const leImage* img); \
75 int32_t (*getAngle)(const THIS_TYPE* _this); \
76 leResult (*setAngle)(THIS_TYPE* _this, int32_t a); \
77 leImageFilterMode (*getFilter)(const THIS_TYPE* _this); \
78 leResult (*setFilter)(THIS_TYPE* _this, leImageFilterMode filter); \
80 typedef struct leImageRotateWidgetVTable
82 LE_IMAGEROTATEWIDGET_VTABLE(leImageRotateWidget)
83 } leImageRotateWidgetVTable;
106 typedef struct leImageRotateWidget
110 const leImageRotateWidgetVTable* fn;
117 } leImageRotateWidget;
125 void _leImageRotateWidget_Destructor(leImageRotateWidget* img);
127 void _leImageRotateWidget_Paint(leImageRotateWidget* img);
150 LIB_EXPORT leImageRotateWidget* leImageRotateWidget_New();
162 LIB_EXPORT
void leImageRotateWidget_Constructor(leImageRotateWidget* wgt);
165 #define THIS_TYPE struct leWidget
177 virtual leImage* getImage(
const leImageRotateWidget* _this);
193 virtual leResult setImage(leImageRotateWidget* _this,
207 virtual lePoint getOrigin(
const leImageRotateWidget* _this);
223 virtual leResult setOrigin(leImageRotateWidget* _this,
237 virtual int32_t getAngle(
const leImageRotateWidget* _this);
254 virtual leResult setAngle(leImageRotateWidget* _this,
269 virtual leImageFilter getFilter(
const leImageRotateWidget* _this);
286 virtual leResult setFilter(leImageRotateWidget* _this,
287 leImageFilter filter);
293 #endif // LE_IMAGEROTATE_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
Image functions and defintions.
Memory functions and definitions.
Definition: legato_image.h:180
leImageFilterMode
This enum represents image filter modes.
Definition: legato_image.h:109
General internal utilities for the library.
LIB_EXPORT leResult leImage_Draw(const leImage *img, const leRect *sourceRect, int32_t x, int32_t y, uint32_t a)
Draw an Image.
Definition: legato_image.c:131
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
@ LE_TRUE
Definition: legato_common.h:159
Common macros and definitions used by Legato.
void leUtils_ArrangeRectangle(leRect *sub, leRect obj, leRect bounds, leHAlignment hAlignment, leVAlignment vAlignment, leRelativePosition position, uint8_t leftMargin, uint8_t topMargin, uint8_t rightMargin, uint8_t bottomMargin, uint16_t rectMargin)
Calculates the position of a rectangle within the given bound.
Definition: legato_utils.c:213
This structure represents a integer Cartesian point.
Definition: legato_common.h:357