mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
Data Structures | Macros | Typedefs | Enumerations | Variables
mItemManager

Data Structures

struct  mItemManager
 The structure of mItemManager control, which derived from mItem. It is the abstract superclass of all classes which managers items. More...
 
struct  mItemManagerClass
 The virtual function table of mItemManager, which derived from mItemClass. More...
 

Macros

#define NCSF_ITMMNG_AUTOSORT   (0x01<<NCSF_ITEM_SHIFT)
 Sort items automatically. More...
 
#define NCSF_ITMMNG_FROZEN   (0x02<<NCSF_ITEM_SHIFT)
 Allow manager to refresh items or not. More...
 
#define NCSF_ITMMNG_SHIFT   (NCSF_ITEM_SHIFT+2)
 The bits used by mItemManager in flags. More...
 

Typedefs

typedef int(* NCS_CB_CMPITEM) (mItemManager *manager, HITEM hItem1, HITEM hItem2)
 The callback of item compare function. More...
 
typedef int(* NCS_CB_CMPSTR) (const char *s1, const char *s2, size_t n)
 The Callback of general string compare function. More...
 

Enumerations

Variables

MGNCS_EXPORT mItemManagerClass g_stmItemManagerCls
 The instance of mItemManagerClass. More...
 

Detailed Description

Macro Definition Documentation

#define NCSF_ITMMNG_AUTOSORT   (0x01<<NCSF_ITEM_SHIFT)

Sort items automatically.

Definition at line 80 of file mitem_manager.h.

#define NCSF_ITMMNG_FROZEN   (0x02<<NCSF_ITEM_SHIFT)

Allow manager to refresh items or not.

Definition at line 86 of file mitem_manager.h.

#define NCSF_ITMMNG_SHIFT   (NCSF_ITEM_SHIFT+2)

The bits used by mItemManager in flags.

Definition at line 92 of file mitem_manager.h.

Typedef Documentation

typedef int(* NCS_CB_CMPITEM)(mItemManager *manager, HITEM hItem1, HITEM hItem2)

The callback of item compare function.

Definition at line 62 of file mitem_manager.h.

typedef int(* NCS_CB_CMPSTR)(const char *s1, const char *s2, size_t n)

The Callback of general string compare function.

The function compares the two strings s1 and s2. It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2.

Note
It only compares the first (at most) n characters of s1 and s2.

Definition at line 74 of file mitem_manager.h.

Enumeration Type Documentation

The properties id of mItemManager.

Enumerator
NCSP_ITMMNG_FLAGS 

The flags of item manager.

NCSP_ITMMNG_ITEMCOUNT 

The number of items. Read only.

NCSP_ITMMNG_TOTALHEIGHT 

The total height. Read only.

NCSP_ITMMNG_MAX 

The maximum value of mItemManager properties id.

Definition at line 420 of file mitem_manager.h.

Variable Documentation

g_stmItemManagerCls

The instance of mItemManagerClass.

See also
mItemManagerClass