 |
MPLABĀ® Harmony Graphics Suite
|
Go to the documentation of this file.
46 #ifndef LEGATO_RADIOBUTTON_GROUP_H
47 #define LEGATO_RADIOBUTTON_GROUP_H
51 #if LE_RADIOBUTTON_WIDGET_ENABLED == 1
62 typedef struct leRadioButtonGroup leRadioButtonGroup;
63 typedef struct leRadioButtonWidget leRadioButtonWidget;
86 typedef struct leRadioButtonGroup
91 leRadioButtonWidget* selected;
129 LIB_EXPORT
leResult leRadioButtonGroup_Create(leRadioButtonGroup** grp);
158 LIB_EXPORT
void leRadioButtonGroup_Destroy(leRadioButtonGroup* grp);
190 LIB_EXPORT
leResult leRadioButtonGroup_AddButton(leRadioButtonGroup* grp,leRadioButtonWidget* btn);
222 LIB_EXPORT
leResult leRadioButtonGroup_RemoveButton(leRadioButtonGroup* grp,
223 leRadioButtonWidget* btn);
257 LIB_EXPORT
leResult leRadioButtonGroup_SelectButton(leRadioButtonGroup* grp,
258 leRadioButtonWidget* btn);
261 #endif // LE_RADIOBUTTON_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
LIB_EXPORT uint32_t lePercentWholeRounded(uint32_t l, uint32_t r)
Calculate percent whole rounded.
Definition: legato_math.c:204
LIB_EXPORT int32_t leLerp(int32_t x, int32_t y, uint32_t per)
Calculates a linear interpolation of an integer based on a percentage between two signed points.
Definition: legato_math.c:290
LIB_EXPORT leResult leEllipsePoint(int32_t t, int32_t a, int32_t b, int32_t theta, lePoint *p)
Calculates points in an arc.
Definition: legato_math.c:132
This struct represents a rectangle.
Definition: legato_common.h:405
Memory functions and definitions.
int32_t leArray_Find(const leArray *arr, void *val)
Find a first index of value.
Definition: legato_array.c:242
LIB_EXPORT uint32_t lePercentOf(uint32_t num, uint32_t percent)
Calculate percent of a number.
Definition: legato_math.c:218
leResult leArray_PushBack(leArray *arr, void *val)
Push value on back.
Definition: legato_array.c:147
This struct represents a array.
Definition: legato_array.h:61
An array implementation for storing pointers.
leResult leArray_Create(leArray *arr)
Create a new array.
Definition: legato_array.c:73
leBool
This enum represents booleans.
Definition: legato_common.h:157
void leUtils_PointToScreenSpace(const leWidget *widget, lePoint *pnt)
Converts a point from widget space into screen space.
Definition: legato_utils.c:75
@ LE_FALSE
Definition: legato_common.h:158
General internal utilities for the library.
Fixed string functions and definitions.
leResult leArray_Clear(leArray *arr)
Clear array.
Definition: legato_array.c:279
The header file joins all header files used in the graphics object library.
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.
leResult leArray_Remove(leArray *arr, void *val)
Remove value.
Definition: legato_array.c:207
This structure represents a integer Cartesian point.
Definition: legato_common.h:357
void * leList_Get(const leList *list, uint32_t idx)
Get a value from the list.
Definition: legato_list.c:181