GUIslice  0.16.0
Embedded GUI in C
gslc_tsXListbox Struct Reference

Extended data for Listbox element. More...

#include <XListbox.h>

Collaboration diagram for gslc_tsXListbox:

Data Fields

uint8_t * pBufItems
 Buffer containing items. More...
 
uint16_t nBufItemsMax
 Max size of buffer containing items. More...
 
uint16_t nBufItemsPos
 Current buffer position. More...
 
int16_t nItemCnt
 Number of items in the list. More...
 
int8_t nCols
 Number of columns. More...
 
int8_t nRows
 Number of columns (or XLSITBOX_SIZE_AUTO to calculate) More...
 
bool bNeedRecalc
 Determine if sizing may need recalc. More...
 
int8_t nMarginW
 Margin inside main listbox area (X offset) More...
 
int8_t nMarginH
 Margin inside main listbox area (Y offset) More...
 
int16_t nItemW
 Width of listbox item. More...
 
int16_t nItemH
 Height of listbox item. More...
 
int8_t nItemGap
 Gap between listbox items. More...
 
gslc_tsColor colGap
 Gap color. More...
 
bool bItemAutoSizeW
 Enable auto-sizing of items (in width) More...
 
bool bItemAutoSizeH
 Enable auto-sizing of items (in height) More...
 
int16_t nItemCurSel
 Currently selected item (XLISTBOX_SEL_NONE for none) More...
 
int16_t nItemCurSelLast
 Old selected item to redraw (XLISTBOX_SEL_NONE for none) More...
 
int16_t nItemSavedSel
 Persistent selected item (ie. saved selection) More...
 
int16_t nItemTop
 Item to show at top of list after scrolling (0 is default) More...
 
bool bGlowLast
 Last glow state. More...
 
GSLC_CB_XLISTBOX_SEL pfuncXSel
 Callback func ptr for selection update. More...
 

Detailed Description

Extended data for Listbox element.

Field Documentation

bool gslc_tsXListbox::bGlowLast

Last glow state.

bool gslc_tsXListbox::bItemAutoSizeH

Enable auto-sizing of items (in height)

bool gslc_tsXListbox::bItemAutoSizeW

Enable auto-sizing of items (in width)

bool gslc_tsXListbox::bNeedRecalc

Determine if sizing may need recalc.

gslc_tsColor gslc_tsXListbox::colGap

Gap color.

uint16_t gslc_tsXListbox::nBufItemsMax

Max size of buffer containing items.

uint16_t gslc_tsXListbox::nBufItemsPos

Current buffer position.

int8_t gslc_tsXListbox::nCols

Number of columns.

int16_t gslc_tsXListbox::nItemCnt

Number of items in the list.

int16_t gslc_tsXListbox::nItemCurSel

Currently selected item (XLISTBOX_SEL_NONE for none)

int16_t gslc_tsXListbox::nItemCurSelLast

Old selected item to redraw (XLISTBOX_SEL_NONE for none)

int8_t gslc_tsXListbox::nItemGap

Gap between listbox items.

int16_t gslc_tsXListbox::nItemH

Height of listbox item.

int16_t gslc_tsXListbox::nItemSavedSel

Persistent selected item (ie. saved selection)

int16_t gslc_tsXListbox::nItemTop

Item to show at top of list after scrolling (0 is default)

int16_t gslc_tsXListbox::nItemW

Width of listbox item.

int8_t gslc_tsXListbox::nMarginH

Margin inside main listbox area (Y offset)

int8_t gslc_tsXListbox::nMarginW

Margin inside main listbox area (X offset)

int8_t gslc_tsXListbox::nRows

Number of columns (or XLSITBOX_SIZE_AUTO to calculate)

uint8_t* gslc_tsXListbox::pBufItems

Buffer containing items.

GSLC_CB_XLISTBOX_SEL gslc_tsXListbox::pfuncXSel

Callback func ptr for selection update.


The documentation for this struct was generated from the following file: