eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4d_list_box.h File Reference
This graph shows which files directly or indirectly include this file:

Macros

#define D4D_LIST_BOX_F_SIDEBAR
 Force to used always side bar scroll bar. More...
 
#define D4D_LIST_BOX_F_DEFAULT
 This is list box init flags. If not defined, it sets to (D4D_OBJECT_F_VISIBLE | D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_TABSTOP | D4D_OBJECT_F_TOUCHENABLE | D4D_OBJECT_F_MOUSE_NORMAL | D4D_OBJECT_F_BEVEL_DENTED) as a default. More...
 
#define D4D_LIST_BOX_F_SCRLBRS_DEFAULT
 This is list box embedded scroll bar init flags. If not defined, it sets to (D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_TABSTOP | D4D_OBJECT_F_TOUCHENABLE | D4D_OBJECT_F_FASTTOUCH | D4D_OBJECT_F_BEVEL_RAISED | D4D_OBJECT_F_MOUSE_NORMAL) as a default. More...
 
#define D4D_LIST_BOX_SCRLBR_WIDTH
 This is list box embedded scroll bar width If not defined, it sets to 20 pixels as a default. More...
 
#define D4D_LIST_BOX_SCRLBR_STEP
 This is list box embedded scroll bar change step If not defined, it sets to 1 step as a default. More...
 
#define D4D_LIST_BOX_ITEM_TXT_PRTY_DEFAULT
 This is list box init text properties. If not defined, it sets to (D4D_ALIGN_H_LEFT_MASK | D4D_ALIGN_V_CENTER_MASK) as a default. More...
 
#define D4D_LIST_BOX_ITEM_FNT_PRTY_DEFAULT
 This is list box init font properties. If not defined, it sets to ( 0 ) as a default. More...
 
#define D4D_LIST_BOX_CHILD_SCROLL_BAR_IX
 
#define D4D_GET_LIST_BOX(pObj)
 
#define D4D_GET_LIST_BOX_SCROLL_BAR(pObj)
 
#define _D4D_DECLARE_LIST_BOX_BEGIN(type, name, x, y, cx, cy, radius, pMargin, pParent, flags, pScheme, itemsFontId, posCnt, listBoxItemsOff, pUser, pOnEvent, pOnUsrMsg)
 Macro that create the List box object structure in memory including all substructures. More...
 
#define D4D_DECLARE_LIST_BOX_ITEM(pText, pUser)
 Macro that is used to add item to list box definition. More...
 
#define D4D_DECLARE_LIST_BOX_END()
 Macro that is used to close the item list for list box definition. More...
 
#define D4D_DECLARE_LIST_BOX_BEGIN(name, x, y, cx, cy, flags, pParent, pScheme, itemsFontId, posCnt, listBoxItemsOff, pUser, pOnEvent, pOnUsrMsg)
 Macro that create the List box object structure in memory including all substructures with restricted count of parameters to simplify definition. More...
 
#define D4D_DECLARE_STD_LIST_BOX_BEGIN(name, x, y, cx, cy, pParent, itemsFontId, pOnEvent)
 Macro that create the List box object structure in memory including all substructures with restricted count of parameters to simplify definition The missing parameters are replaced by default values. More...
 
#define D4D_DECLARE_RLIST_BOX_BEGIN(name, x, y, cx, cy, radius, flags, pParent, pScheme, itemsFontId, posCnt, listBoxItemsOff, pUser, pOnEvent, pOnUsrMsg)
 Macro that create the rounded List box object structure in memory including all substructures with restricted count of parameters to simplify definition. More...
 
#define D4D_DECLARE_STD_RLIST_BOX_BEGIN(name, x, y, cx, cy, radius, pParent, itemsFontId, pOnEvent)
 Macro that create the rounded List box object structure in memory including all substructures with restricted count of parameters to simplify definition The missing parameters are replaced by default values. More...
 
#define D4D_DECLARE_LIST_BOX_BEGIN_INRAM(name, x, y, cx, cy, flags, pParent, pScheme, itemsFontId, posCnt, listBoxItemsOff, pUser, pOnEvent, pOnUsrMsg)
 Same as D4D_DECLARE_LIST_BOX_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_STD_LIST_BOX_BEGIN_INRAM(name, x, y, cx, cy, pParent, itemsFontId, pOnEvent)
 Same as D4D_DECLARE_STD_LIST_BOX_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_RLIST_BOX_BEGIN_INRAM(name, x, y, cx, cy, radius, flags, pParent, pScheme, itemsFontId, posCnt, listBoxItemsOff, pUser, pOnEvent, pOnUsrMsg)
 Same as D4D_DECLARE_RLIST_BOX_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_STD_RLIST_BOX_BEGIN_INRAM(name, x, y, cx, cy, radius, pParent, itemsFontId, pOnEvent)
 Same as D4D_DECLARE_STD_RLIST_BOX_BEGIN, but is created in RAM instead of the ROM memory. More...
 

Typedefs

typedef void(* D4D_LSTBX_ON_EVENT )(D4D_OBJECT *pThis, D4D_EVENTID eventId)
 Type definition of list box on event callback function. More...
 
typedef sByte D4D_LIST_BOX_INDEX
 This is list box item index variable type. More...
 

Functions

void D4D_ListBoxScrollBarsFeedBack (D4D_OBJECT *pThis, D4D_INDEX old_position, D4D_INDEX new_position)
 
D4D_LIST_BOX_INDEX D4D_ListBoxGetIndex (D4D_OBJECT *pThis)
 Function returns the current selected item index. More...
 
void D4D_ListBoxSetIndex (D4D_OBJECT *pThis, D4D_LIST_BOX_INDEX ix)
 Function select new item by index. More...
 
D4D_LIST_BOX_INDEX D4D_ListBoxGetItemCount (D4D_OBJECT_PTR pThis)
 Function gets the count of list box items. More...
 
D4D_LIST_BOX_INDEX D4D_ListBoxFindUserDataItem (D4D_OBJECT_PTR pThis, void *pUser)
 Function finds the index of items with specified user data. More...
 
void * D4D_ListBoxGetItemUserData (D4D_OBJECT_PTR pThis)
 Function gets the selected item user data. More...
 
D4D_TCHARD4D_ListBoxGetItemText (D4D_OBJECT_PTR pThis)
 Function gets the selected item text. More...
 
D4D_TCHARD4D_ListBoxGetItemTextIx (D4D_OBJECT_PTR pThis, D4D_LIST_BOX_INDEX ix)
 Function gets the text of item choosed by item index. More...
 
void D4D_ListBoxEnsureVisible (D4D_OBJECT *pThis)
 Function ensure that the selected item in list will be scrolled to visible area. More...
 
void D4D_ListBoxChangeItemList (D4D_OBJECT_PTR pThis, const D4D_LIST_BOX_ITEM *pItems)
 Function change the items list using by list box. More...
 
D4D_LIST_BOX_ITEMD4D_ListBoxGetItemList (D4D_OBJECT_PTR pThis)
 Function gets the current using item list. More...
 

Variables

const D4D_OBJECT_SYS_FUNCTION d4d_listBoxSysFunc
 
const D4D_MARGIN listBox_marginDefault
 

Detailed Description

D4D Driver listBox object header file.

Author
Petr Gargulak
Version
0.0.8.0
Date
Jan-14-2014

Definition in file d4d_list_box.h.

Macro Definition Documentation

#define D4D_GET_LIST_BOX (   pObj)

Definition at line 167 of file d4d_list_box.h.

#define D4D_GET_LIST_BOX_SCROLL_BAR (   pObj)

Definition at line 169 of file d4d_list_box.h.

#define D4D_LIST_BOX_CHILD_SCROLL_BAR_IX

Definition at line 160 of file d4d_list_box.h.

Function Documentation

void D4D_ListBoxScrollBarsFeedBack ( D4D_OBJECT pThis,
D4D_INDEX  old_position,
D4D_INDEX  new_position 
)

Definition at line 472 of file d4d_list_box.c.

Here is the call graph for this function:

Variable Documentation

const D4D_OBJECT_SYS_FUNCTION d4d_listBoxSysFunc

Definition at line 56 of file d4d_list_box.c.

const D4D_MARGIN listBox_marginDefault

Definition at line 64 of file d4d_list_box.c.