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

Macros

#define D4D_MENU_F_INDEX
 Enable show of index of items in header. More...
 
#define D4D_MENU_F_SIDEBAR
 Forca always show of side bar scroll bar. More...
 
#define D4D_MENU_F_DEFAULT
 This is menu 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_RAISED | D4D_MENU_F_INDEX | D4D_MENU_F_SIDEBAR) as a default. More...
 
#define D4D_MENU_F_SCRLBRS_DEFAULT
 This is menu embedded scroll bar init flags. If not defined, it sets to (D4D_OBJECT_F_ENABLED | D4D_OBJECT_F_TOUCHENABLE | D4D_OBJECT_F_FASTTOUCH | D4D_OBJECT_F_MOUSE_NORMAL) as a default. More...
 
#define D4D_MENU_SCRLBR_WIDTH
 This is menu embedded scroll bar width If not defined, it sets to 20 pixels as a default. More...
 
#define D4D_MENU_SCRLBR_STEP
 This is menu embedded scroll bar change step If not defined, it sets to 1 step as a default. More...
 
#define D4D_MENU_TXT_PRTY_DEFAULT
 This is menu init title text properties. If not defined, it sets to (D4D_ALIGN_H_CENTER_MASK | D4D_ALIGN_V_CENTER_MASK) as a default. More...
 
#define D4D_MENU_FNT_PRTY_DEFAULT
 This is menu init title font properties. If not defined, it sets to ( 0 ) as a default. More...
 
#define D4D_MENU_IX_FNT_PRTY_DEFAULT
 This is menu init index font properties. If not defined, it sets to ( 0 ) as a default. More...
 
#define D4D_MENU_IX_TXT_PRTY_DEFAULT
 This is menu init index text properties. If not defined, it sets to (D4D_ALIGN_H_CENTER_MASK | D4D_ALIGN_V_CENTER_MASK) as a default. More...
 
#define D4D_MENU_ITEM_FNT_PRTY_DEFAULT
 This is menu init items font properties. If not defined, it sets to ( 0 ) as a default. More...
 
#define D4D_MENU_ITEM_TXT_PRTY_DEFAULT
 This is menu init items text properties. If not defined, it sets to (D4D_ALIGN_H_LEFT_MASK | D4D_ALIGN_V_CENTER_MASK) as a default. More...
 
#define D4D_MENU_CHILD_SCROLL_BAR_VER_IX
 
#define D4D_GET_MENU(pObj)
 
#define D4D_GET_MENU_SCROLL_BAR_HOR(pObj)
 
#define _D4D_DECLARE_MENU_BEGIN(type, name, title_text, title_font, x, y, cx, cy, radius, pMargin, pParent, flags, pScheme, indexFontId, itemsFontId, posCnt, menuItemsOff, pIcon, pUser, pOnClick, pOnUsrMsg)
 Macro that create the Menu object structure in memory including all substructures. More...
 
#define D4D_DECLARE_MENU_ITEM(pText, pIcon)
 Macro that is used to add item to menu definition. More...
 
#define D4D_DECLARE_MENU_ITEM_FULL(pText, pIcon, pUser)
 Macro that is used to add item with user data menu definition. More...
 
#define _D4D_DECLARE_MENU_END()
 Macro that is used to close the item list for menu definition. More...
 
#define D4D_DECLARE_MENU_END(name)
 Macro that is used to close the item list for menu definition. More...
 
#define D4D_DECLARE_MENU_BEGIN(name, title_text, title_font, x, y, cx, cy, flags, pScheme, indexFontId, itemsFontId, posCnt, menuItemsOff, pIcon, pUser, pOnClick, pOnUsrMsg)
 Macro that create the Menu object structure in memory including all substructures with restricted count of parameters to simplify definition. More...
 
#define D4D_DECLARE_STD_MENU_BEGIN(name, title_text, title_font, x, y, cx, cy, indexFontId, itemsFontId, pIcon, pOnClick)
 Macro that create the Menu 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_RMENU_BEGIN(name, title_text, title_font, x, y, cx, cy, radius, flags, pScheme, indexFontId, itemsFontId, posCnt, menuItemsOff, pIcon, pUser, pOnClick, pOnUsrMsg)
 Macro that create the rounded Menu object structure in memory including all substructures with restricted count of parameters to simplify definition. More...
 
#define D4D_DECLARE_STD_RMENU_BEGIN(name, title_text, title_font, x, y, cx, cy, radius, indexFontId, itemsFontId, pIcon, pOnClick)
 Macro that create the rounded Menu 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_MENU_BEGIN_INRAM(name, title_text, title_font, x, y, cx, cy, flags, pScheme, indexFontId, itemsFontId, posCnt, menuItemsOff, pIcon, pUser, pOnClick, pOnUsrMsg)
 Same as D4D_DECLARE_MENU_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_STD_MENU_BEGIN_INRAM(name, title_text, title_font, x, y, cx, cy, IndexFontId, ItemsFontId, pIcon, pOnClick)
 Same as D4D_DECLARE_STD_MENU_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_RMENU_BEGIN_INRAM(name, title_text, title_font, x, y, cx, cy, radius, flags, pScheme, indexFontId, itemsFontId, posCnt, menuItemsOff, pIcon, pUser, pOnClick, pOnUsrMsg)
 Same as D4D_DECLARE_RMENU_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_STD_RMENU_BEGIN_INRAM(name, title_text, title_font, x, y, cx, cy, radius, IndexFontId, ItemsFontId, pIcon, pOnClick)
 Same as D4D_DECLARE_STD_RMENU_BEGIN, but is created in RAM instead of the ROM memory. More...
 
#define D4D_DECLARE_RMENU_END(name)
 
#define D4D_DECLARE_MENU_END_INRAM(name)
 
#define D4D_DECLARE_RMENU_END_INRAM(name)
 

Typedefs

typedef sByte D4D_MENU_INDEX
 This is menu item index variable type. More...
 
typedef void(* D4D_MENU_ON_CLICK )(D4D_OBJECT *pThis, D4D_MENU_INDEX ix)
 Type definition of menu on click callback function. More...
 

Functions

void D4D_MenuScrollBarsFeedBack (D4D_OBJECT *pThis, D4D_INDEX old_position, D4D_INDEX new_position)
 
D4D_MENU_INDEX D4D_MenuGetIndex (D4D_OBJECT *pThis)
 Function returns the current selected item index. More...
 
void D4D_MenuSetIndex (D4D_OBJECT *pThis, D4D_MENU_INDEX ix)
 Function select new item by index. More...
 
D4D_MENU_INDEX D4D_MenuGetItemCount (D4D_OBJECT_PTR pThis)
 Function gets the count of menu items. More...
 
D4D_MENU_INDEX D4D_MenuFindUserDataItem (D4D_OBJECT_PTR pThis, void *pUser)
 Function finds the index of items with specified user data. More...
 
void * D4D_MenuGetItemUserData (D4D_OBJECT_PTR pThis)
 Function gets the selected item user data. More...
 
D4D_STRINGD4D_MenuGetItemText (D4D_OBJECT_PTR pThis)
 Function gets the selected item text. More...
 

Variables

const D4D_OBJECT_SYS_FUNCTION d4d_menuSysFunc
 

Detailed Description

D4D Driver menu object header file.

Author
Petr Gargulak
Version
0.0.47.0
Date
Jan-14-2014

Definition in file d4d_menu.h.

Macro Definition Documentation

#define D4D_DECLARE_MENU_END_INRAM (   name)

Definition at line 479 of file d4d_menu.h.

#define D4D_DECLARE_RMENU_END (   name)

Definition at line 478 of file d4d_menu.h.

#define D4D_DECLARE_RMENU_END_INRAM (   name)

Definition at line 480 of file d4d_menu.h.

#define D4D_GET_MENU (   pObj)

Definition at line 195 of file d4d_menu.h.

#define D4D_GET_MENU_SCROLL_BAR_HOR (   pObj)

Definition at line 197 of file d4d_menu.h.

#define D4D_MENU_CHILD_SCROLL_BAR_VER_IX

Definition at line 192 of file d4d_menu.h.

Function Documentation

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

Definition at line 597 of file d4d_menu.c.

Here is the call graph for this function:

Variable Documentation

const D4D_OBJECT_SYS_FUNCTION d4d_menuSysFunc

Definition at line 56 of file d4d_menu.c.