EasyGUI  Version v1.0
List view container

List view container is basic widget for scrolling. More...

Data Structures

struct  gui_list_container_t
 LIST CONTAINER object structure. More...
 

Enumerations

enum  GUI_LIST_CONTAINER_COLOR_t { GUI_LIST_CONTAINER_COLOR_BG = 0x00 }
 List of available colors for list container. More...
 

Functions

gui_handle_p gui_listcontainer_create (gui_id_t id, float x, float y, float width, float height, gui_handle_p parent, gui_widget_callback_t cb, uint16_t flags)
 Create new list container widget. More...
 

Detailed Description

List view container is basic widget for scrolling.

This widget supports scrolling (similar to ListView in Android). When subwidgets are put to it and if they don't support touch move event, event will be forwarded to next widget level (List container) and in case there are widgets outside visible area, they will be scrolled.

Enumeration Type Documentation

◆ GUI_LIST_CONTAINER_COLOR_t

List of available colors for list container.

Enumerator
GUI_LIST_CONTAINER_COLOR_BG 

Color index for LED on status

Function Documentation

◆ gui_listcontainer_create()

gui_handle_p gui_listcontainer_create ( gui_id_t  id,
float  x,
float  y,
float  width,
float  height,
gui_handle_p  parent,
gui_widget_callback_t  cb,
uint16_t  flags 
)

Create new list container widget.

Parameters
[in]idWidget unique ID to use for identity for callback processing
[in]xWidget X position relative to parent widget
[in]yWidget Y position relative to parent widget
[in]widthWidget width in units of pixels
[in]heightWidget height in uints of pixels
[in]parentParent widget handle. Set to NULL to use current active parent widget
[in]cbPointer to gui_widget_callback_t callback function. Set to NULL to use default widget callback
[in]flagsflags for widget creation
Returns
gui_handle_p object of created widget on success, NULL otherwise