45 #ifndef LEGATO_GRADIENT_H 46 #define LEGATO_GRADIENT_H 50 #if LE_GRADIENT_WIDGET_ENABLED == 1 71 typedef struct leGradientWidget leGradientWidget;
73 #define LE_GRADIENTWIDGET_VTABLE(THIS_TYPE) \ 74 LE_WIDGET_VTABLE(THIS_TYPE) \ 76 leDirection (*getDirection)(const THIS_TYPE* _this); \ 77 leResult (*setDirection)(THIS_TYPE* _this, leDirection dir); \ 79 typedef struct leGradientWidgetVTable
81 LE_GRADIENTWIDGET_VTABLE(leGradientWidget)
82 } leGradientWidgetVTable;
93 typedef struct leGradientWidget
97 const leGradientWidgetVTable* fn;
119 leGradientWidget* leGradientWidget_New(
void);
131 void leGradientWidget_Constructor(leGradientWidget* grad);
134 #define THIS_TYPE struct leWidget 149 virtual leDirection getDirection(leGradientWidget* _this);
166 virtual leResult setDirection(leGradientWidget* _this,
176 #endif // LE_GRADIENT_WIDGET_ENABLED Common macros and definitions used by Legato.
leResult
This enum represents function call results.
Definition: legato_common.h:123
leDirection
This enum represents the four directions modes for objects.
Definition: legato_common.h:252