 |
MPLABĀ® Harmony Graphics Suite
|
Go to the documentation of this file.
30 #ifndef LEGATO_STATE_H
31 #define LEGATO_STATE_H
36 #include "gfx/driver/gfx_driver.h"
86 #if LE_STREAMING_ENABLED == 1
87 leStreamManager* activeStream;
116 const gfxGraphicsProcessor* gpuDriver);
221 LIB_EXPORT
leRect leGetDisplayRect();
691 int32_t leGetWidgetLayer(
const leWidget* wgt);
826 #if LE_STREAMING_ENABLED == 1
842 leStreamManager* leGetActiveStream();
876 void leAbortActiveStream();
struct leState leState
This struct represents the state of the library.
leResult leSetLayerRenderHorizontal(uint32_t lyrIdx, leBool horz)
Set layer render direction.
Definition: legato_state.c:421
LIB_EXPORT leResult leUpdate(uint32_t dt)
Shutdown Legato library.
Definition: legato_state.c:342
LIB_EXPORT void leShutdown()
Shutdown Legato library.
Definition: legato_state.c:289
leResult
This enum represents function call results.
Definition: legato_common.h:134
leColorMode
This enum represents the supported RGB color formats.
Definition: legato_color.h:146
This struct represents a rectangle.
Definition: legato_common.h:405
uint32_t size
Definition: legato_array.h:63
LIB_EXPORT leResult leAddRootWidget(leWidget *wgt, uint32_t layer)
Add root widget to layer.
Definition: legato_state.c:566
Image functions and defintions.
LIB_EXPORT leColorMode leGetLayerColorMode(uint32_t lyrIdx)
Get layer color mode.
Definition: legato_state.c:394
LIB_EXPORT leResult leSetEditWidget(leEditWidget *widget)
Set edit widget.
Definition: legato_state.c:526
This enum presents a event. An event contains valid event ids.
Definition: legato_event.h:88
Memory functions and definitions.
uint32_t languageID
Definition: legato_state.h:71
LIB_EXPORT void leRedrawAll()
Redraw All.
Definition: legato_state.c:548
LIB_EXPORT leWidget * leGetFocusWidget()
Get focus widget.
Definition: legato_state.c:490
String table functions and definitions.
void leEdit_Append(leString *str)
Send start edit command.
Definition: legato_state.c:725
void leEdit_Backspace()
Send backspace command.
Definition: legato_state.c:735
void ** values
Definition: legato_array.h:62
This struct represents a string.
Definition: legato_string.h:108
@ LE_WIDGET_EVENT_FOCUS_LOST
Definition: legato_event.h:78
leBool
This enum represents booleans.
Definition: legato_common.h:157
void leImage_InitDecoders()
Get Event Count.
Definition: legato_image.c:42
@ LE_FALSE
Definition: legato_common.h:158
LIB_EXPORT leEditWidget * leGetEditWidget()
Get edit widget.
Definition: legato_state.c:521
void leEdit_Accept()
Send accept command.
Definition: legato_state.c:705
leResult leEdit_StartEdit()
Send start edit command.
Definition: legato_state.c:675
LIB_EXPORT leStringTable * leGetStringTable()
Get string table.
Definition: legato_state.c:437
const leStringTable * stringTable
Definition: legato_state.h:70
LIB_EXPORT leResult leRemoveRootWidget(leWidget *wgt, uint32_t layer)
Remove root widget to layer.
Definition: legato_state.c:577
leResult leEvent_ProcessEvents()
Process events.
Definition: legato_event.c:90
LIB_EXPORT leBool leIsDrawing()
Check active screen drawing state.
Definition: legato_state.c:561
leBool leGetLayerRenderHorizontal(uint32_t lyrIdx)
Get layer render direction.
Definition: legato_state.c:413
leWidget * focus
Definition: legato_state.h:78
leBool leWidgetIsInScene(const leWidget *wgt)
Determines whether the widget is in the scene.
Definition: legato_state.c:596
LIB_EXPORT uint32_t leGetStringLanguage()
Get language index.
Definition: legato_state.c:449
leEventID id
Definition: legato_event.h:89
LIB_EXPORT leColorMode leGetColorMode()
Get color mode.
void leEdit_Clear()
Send clear command.
Definition: legato_state.c:695
Schemes support various properties that make it possible to customize the color of widgets.
This struct represents the state of the library.
Definition: legato_state.h:69
LIB_EXPORT void leSetStringLanguage(uint32_t id)
Get language by index.
Definition: legato_state.c:469
Definition: legato_scheme.h:154
LIB_EXPORT void leSetStringTable(const leStringTable *table)
Set string table.
Definition: legato_state.c:442
@ LE_WIDGET_EVENT_FOCUS_GAINED
Definition: legato_event.h:77
leResult leSetLayerColorMode(uint32_t lyrIdx, leColorMode mode)
Set layer color mode.
Definition: legato_state.c:402
void leEdit_EndEdit()
Send end edit command.
Definition: legato_state.c:685
leWidget rootWidget[LE_LAYER_COUNT]
Definition: legato_state.h:83
leScheme defaultScheme
Definition: legato_state.h:75
@ LE_TRUE
Definition: legato_common.h:159
leEditWidget * edit
Definition: legato_state.h:79
Common macros and definitions used by Legato.
This struct describes the layer state for a layer.
Definition: legato_state.h:57
LIB_EXPORT leScheme * leGetDefaultScheme()
Get default scheme.
Definition: legato_state.c:485
uint32_t widgetIDs
Definition: legato_state.h:73
This struct represents string a string table.
Definition: legato_stringtable.h:80
void leEdit_Set(leString *str)
Send set command.
Definition: legato_state.c:715
LIB_EXPORT leResult leSetLanguageChangedCallback(leLanguageChangedCallback_FnPtr cb)
Set language change callback.
void(* leLanguageChangedCallback_FnPtr)(uint32_t)
This function pointer represents a language change callback.
Definition: legato_state.h:48
LIB_EXPORT leResult leSetFocusWidget(leWidget *widget)
Get language by index.
Definition: legato_state.c:495
leLayerState layerStates[LE_LAYER_COUNT]
Definition: legato_state.h:84
This structure represents a integer Cartesian point.
Definition: legato_common.h:357
leResult leInitialize(const gfxDisplayDriver *dispDriver, const gfxGraphicsProcessor *gpuDriver)
Initialize Legato library.
Definition: legato_state.c:228
leLanguageChangedCallback_FnPtr languageChangedCB
Definition: legato_state.h:81