  | 
  
    MPLABĀ® Harmony Graphics Suite
    
   | 
 
 
 
 
Go to the documentation of this file.
   45 #ifndef LEGATO_PROGRESSBAR_H 
   46 #define LEGATO_PROGRESSBAR_H 
   50 #if LE_PROGRESSBAR_WIDGET_ENABLED == 1 
   78 typedef enum leProgressBarDirection
 
   80     LE_PROGRESSBAR_DIRECTION_RIGHT,
 
   81     LE_PROGRESSBAR_DIRECTION_UP,
 
   82     LE_PROGRESSBAR_DIRECTION_LEFT,
 
   83     LE_PROGRESSBAR_DIRECTION_DOWN
 
   84 } leProgressBarDirection;
 
   86 typedef struct leProgressBarWidget leProgressBar;
 
  109 typedef void (*leProgressBar_ValueChangedEventCallback)(leProgressBar*, uint32_t);
 
  111 typedef struct leProgressBarWidget leProgressBarWidget;
 
  117 #define LE_PROGRESSBARWIDGET_VTABLE(THIS_TYPE) \ 
  118     LE_WIDGET_VTABLE(THIS_TYPE) \ 
  120     leProgressBarDirection (*getDirection)(const THIS_TYPE* _this); \ 
  121     leResult               (*setDirection)(THIS_TYPE* _this, leProgressBarDirection dir); \ 
  122     uint32_t               (*getValue)(const THIS_TYPE* _this); \ 
  123     leResult               (*setValue)(THIS_TYPE* _this, uint32_t value); \ 
  124     leProgressBar_ValueChangedEventCallback (*getValueChangedEventCallback)(const THIS_TYPE* _this); \ 
  125     leResult               (*setValueChangedCallback)(THIS_TYPE* _this, leProgressBar_ValueChangedEventCallback cb); \ 
  127 typedef struct leProgressBarWidgetVTable
 
  129     LE_PROGRESSBARWIDGET_VTABLE(leProgressBarWidget)
 
  130 } leProgressBarWidgetVTable; 
 
  144 typedef struct leProgressBarWidget
 
  148     const leProgressBarWidgetVTable* fn;
 
  150     leProgressBarDirection direction; 
 
  154     leProgressBar_ValueChangedEventCallback cb; 
 
  155 } leProgressBarWidget;
 
  175 LIB_EXPORT leProgressBarWidget* leProgressBarWidget_New();
 
  187 LIB_EXPORT 
void leProgressBarWidget_Constructor(leProgressBarWidget* wgt);
 
  190 #define THIS_TYPE struct leWidget 
  203 virtual leProgressBarDirection getDirection(
const leProgressBarWidget* _this);
 
  220 virtual leResult setDirection(leProgressBarWidget* _this,
 
  221                               leProgressBarDirection dir);
 
  237 virtual int32_t getValue(
const leProgressBarWidget* _this);
 
  254 virtual leResult setValue(leProgressBarWidget* _this,
 
  268 virtual leProgressBar_ValueChangedEventCallback getValueChangedEventCallback
 
  269                                         (
const leProgressBarWidget* _this);
 
  284 virtual leResult setValueChangedCallback(leProgressBarWidget* _this,
 
  285                                          leProgressBar_ValueChangedEventCallback cb);
 
  291 #endif // LE_PROGRESSBAR_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
 
Memory functions and definitions.
 
LIB_EXPORT void leFixedString_Constructor(leFixedString *str, leChar *buf, uint32_t size)
Consructs a fixed string.
Definition: legato_fixedstring.c:42
 
@ LE_HALIGN_CENTER
Definition: legato_common.h:208
 
const leFixedStringVTable * fn
Definition: legato_fixedstring.h:59
 
@ LE_FALSE
Definition: legato_common.h:158
 
General internal utilities for the library.
 
Fixed string functions and definitions.
 
LIB_EXPORT leResult lePolarToXY(int32_t r, int32_t a, lePoint *p)
Generate points in an arc.
Definition: legato_math.c:124
 
void leUtils_RectToScreenSpace(const leWidget *widget, leRect *rect)
Convert rectangle from widget local space to screen space.
Definition: legato_utils.c:151
 
The header file joins all header files used in the graphics object library.
 
LIB_EXPORT void leRectClip(const leRect *l_rect, const leRect *r_rect, leRect *result)
Clips a rectangle to the space of another rectangle.
Definition: legato_rect.c:122
 
This struct represents a fixed string.
Definition: legato_fixedstring.h:57
 
void * leArray_Get(const leArray *arr, uint32_t idx)
Get entry at index.
Definition: legato_array.c:224
 
uint16_t leChar
This typedef represents Legato character.
Definition: legato_common.h:424
 
Fixed string functions and definitions.
 
leColor leScheme_GetRenderColor(const leScheme *schm, leSchemeColor clr)
Gets a scheme render color for the current layer color mode.
Definition: legato_scheme.c:68
 
@ LE_TRUE
Definition: legato_common.h:159
 
Common macros and definitions used by Legato.
 
virtual void destructor(leString *_this)
Destruct string.
 
@ LE_DIRECTION_RIGHT
Definition: legato_common.h:264
 
This structure represents a integer Cartesian point.
Definition: legato_common.h:357