46 #ifndef LEGATO_CIRCLE_H 47 #define LEGATO_CIRCLE_H 51 #if LE_CIRCLE_WIDGET_ENABLED == 1 65 typedef struct leCircleWidget leCircleWidget;
71 #define LE_CIRCLEWIDGET_VTABLE(THIS_TYPE) \ 72 LE_WIDGET_VTABLE(THIS_TYPE) \ 74 leResult (*getOrigin)(const THIS_TYPE* _this, lePoint* pnt); \ 75 leResult (*setOrigin)(THIS_TYPE* _this, const lePoint org); \ 76 int32_t (*getOriginX)(const THIS_TYPE* _this); \ 77 leResult (*setOriginX)(THIS_TYPE* _this, const int32_t x); \ 78 int32_t (*getOriginY)(const THIS_TYPE* _this); \ 79 leResult (*setOriginY)(THIS_TYPE* _this, const int32_t y); \ 80 uint32_t (*getRadius)(const THIS_TYPE* _this); \ 81 leResult (*setRadius)(THIS_TYPE* _this, uint32_t rad); \ 82 uint32_t (*getThickness)(const THIS_TYPE* _this); \ 83 leResult (*setThickness)(THIS_TYPE* _this, uint32_t thk); \ 84 leBool (*getFilled)(const THIS_TYPE* _this); \ 85 leResult (*setFilled)(THIS_TYPE* _this, leBool fill); \ 87 typedef struct leCircleWidgetVTable
89 LE_CIRCLEWIDGET_VTABLE(leCircleWidget)
90 } leCircleWidgetVTable;
114 typedef struct leCircleWidget
118 const leCircleWidgetVTable* fn;
144 leCircleWidget* leCircleWidget_New(
void);
156 void leCircleWidget_Constructor(leCircleWidget* cir);
159 #define THIS_TYPE struct leWidget 173 virtual lePoint getOrigin(
const leCheckBoxWidget* _this);
190 virtual leResult setOrigin(leCircleWidget* _this,
205 virtual int32_t getOriginX(
const leCheckBoxWidget* _this);
222 virtual leResult setOriginY(leCircleWidget* _this,
237 virtual int32_t getOriginY(
const leCircleWidget* _this);
253 virtual leResult setOriginY(leCircleWidget* _this,
268 virtual uint32_t
getRadius(
const leCircleWidget* _this);
300 virtual uint32_t
getThickness(
const leCircleWidget* _this);
332 virtual leBool getFilled(
const leCircleWidget* _this);
348 virtual leResult setFilled(leCircleWidget* _this,
359 #endif // LE_CIRCLE_WIDGET_ENABLED Common macros and definitions used by Legato.
leResult
This enum represents function call results.
Definition: legato_common.h:123
This structure represents a integer Cartesian point.
Definition: legato_common.h:346
leBool
This enum represents booleans.
Definition: legato_common.h:146