30 #ifndef LEGATO_STATE_H 31 #define LEGATO_STATE_H 39 #include "gfx/driver/gfx_driver.h" 53 typedef enum leLayerClearMode
55 LE_LAYERCLEARMODE_DEFAULT,
56 LE_LAYERCLEARMODE_DISABLE,
57 LE_LAYERCLEARMODE_FORCE,
74 leLayerClearMode clearMode;
104 #if LE_STREAMING_ENABLED == 1 105 leStreamManager* activeStream;
167 uint32_t leLayerCount(
void);
170 int32_t leAddLayer(
void);
173 leResult leRemoveLayer(uint32_t idx);
304 leLayerClearMode mode);
317 leRect leGetDisplayRect();
738 int32_t leGetWidgetLayer(
const leWidget* wgt);
873 #if LE_STREAMING_ENABLED == 1 889 leStreamManager* leGetActiveStream(
void);
923 void leAbortActiveStream(
void);
uint32_t languageID
Definition: legato_state.h:90
Common macros and definitions used by Legato.
leResult leUpdate(uint32_t dt)
Shutdown Legato library.
Definition: legato_state.c:376
void leEdit_Backspace(void)
Send backspace command.
Definition: legato_state.c:934
struct leState leState
This struct represents the state of the library.
uint32_t widgetIDs
Definition: legato_state.h:92
This struct represents a string.
Definition: legato_string.h:107
leResult leEdit_StartEdit(void)
Send start edit command.
Definition: legato_state.c:874
void leEdit_Append(leString *str)
Send start edit command.
Definition: legato_state.c:924
leEditWidget * leGetEditWidget(void)
Get edit widget.
Definition: legato_state.c:710
leResult leSetFocusWidget(leWidget *widget)
Get language by index.
Definition: legato_state.c:684
uint32_t leGetStringLanguage(void)
Get language index.
Definition: legato_state.c:634
leScheme * leGetDefaultScheme(void)
Get default scheme.
Definition: legato_state.c:674
leResult
This enum represents function call results.
Definition: legato_common.h:123
leResult leSetEditWidget(leEditWidget *widget)
Set edit widget.
Definition: legato_state.c:715
leScheme defaultScheme
Definition: legato_state.h:94
leLanguageChangedCallback_FnPtr languageChangedCB
Definition: legato_state.h:100
leBool leGetLayerRenderHorizontal(uint32_t lyrIdx)
Get layer render direction.
Definition: legato_state.c:563
This struct represents a rectangle.
Definition: legato_common.h:394
leWidget * leGetFocusWidget(void)
Get focus widget.
Definition: legato_state.c:679
This struct represents a list.
Definition: legato_list.h:94
Definition: legato_state.h:68
leResult leRemoveRootWidget(leWidget *wgt, uint32_t layer)
Remove root widget to layer.
Definition: legato_state.c:770
const leStringTable * stringTable
Definition: legato_state.h:89
leBool leWidgetIsInScene(const leWidget *wgt)
Determines whether the widget is in the scene.
Definition: legato_state.c:792
void leSetStringTable(const leStringTable *table)
Set string table.
Definition: legato_state.c:627
void leEdit_Accept(void)
Send accept command.
Definition: legato_state.c:904
leEditWidget * edit
Definition: legato_state.h:98
This struct represents string a string table.
Definition: legato_stringtable.h:83
leStringTable * leGetStringTable(void)
Get string table.
Definition: legato_state.c:622
This struct represents the graphics processor interface.
Definition: gfx_driver.h.ftl:1227
This structure represents a integer Cartesian point.
Definition: legato_common.h:346
leBool leIsDrawing(void)
Check active screen drawing state.
Definition: legato_state.c:750
leList layerList
Definition: legato_state.h:102
void leEdit_Clear(void)
Send clear command.
Definition: legato_state.c:894
leLayerClearMode leGetLayerClearMode(uint32_t lyrIdx)
Get layer clear mode.
Definition: legato_state.c:590
leColorMode
This enum represents the supported RGB color formats.
Definition: legato_color.h:148
void leShutdown(void)
Shutdown Legato library.
Definition: legato_state.c:317
leBool
This enum represents booleans.
Definition: legato_common.h:146
leWidget * focus
Definition: legato_state.h:97
This struct represents the display driver interface.
Definition: gfx_driver.h.ftl:1206
leResult leSetLayerColorMode(uint32_t lyrIdx, leColorMode mode)
Set layer color mode.
Definition: legato_state.c:543
String table functions and definitions.
void leEdit_EndEdit(void)
Send end edit command.
Definition: legato_state.c:884
void leSetStringLanguage(uint32_t id)
Get language by index.
Definition: legato_state.c:654
void leEdit_Set(leString *str)
Send set command.
Definition: legato_state.c:914
Definition: legato_scheme.h:154
leColorMode leGetLayerColorMode(uint32_t lyrIdx)
Get layer color mode.
Definition: legato_state.c:531
leResult leAddRootWidget(leWidget *wgt, uint32_t layer)
Add root widget to layer.
Definition: legato_state.c:755
leResult leSetLayerClearMode(uint32_t lyrIdx, leLayerClearMode mode)
Set layer clear mode.
Definition: legato_state.c:602
leResult leSetLanguageChangedCallback(leLanguageChangedCallback_FnPtr cb)
Set language change callback.
leResult leInitialize(const gfxDisplayDriver *dispDriver, const gfxGraphicsProcessor *gpuDriver)
Initialize Legato library.
Definition: legato_state.c:228
leResult leSetLayerRenderHorizontal(uint32_t lyrIdx, leBool horz)
Set layer render direction.
Definition: legato_state.c:575
This struct represents the state of the library.
Definition: legato_state.h:87
Schemes support various properties that make it possible to customize the color of widgets...
void leRedrawAll(void)
Redraw All.
Definition: legato_state.c:737
void(* leLanguageChangedCallback_FnPtr)(uint32_t)
This function pointer represents a language change callback.
Definition: legato_state.h:51