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

Data Structures

struct  NCS_LSTCLM_SORTDATA
 The sort type. More...
 
struct  mListColumn
 The structure of mListColumn. It's used as header by mListView. More...
 
struct  mListColumnClass
 The virtual function table of mListColumn, which derived from mItemClass. More...
 

Macros

#define NCSF_LSTCLM_LEFTALIGN   (0x00<<NCSF_ITEM_SHIFT)
 Horizontal left align. More...
 
#define NCSF_LSTCLM_RIGHTALIGN   (0x01<<NCSF_ITEM_SHIFT)
 Horizontal right align. More...
 
#define NCSF_LSTCLM_CENTERALIGN   (0x02<<NCSF_ITEM_SHIFT)
 Horizontal center align. More...
 
#define NCSF_LSTCLM_TOPALIGN   (0x00<<NCSF_ITEM_SHIFT)
 Vertical top align. More...
 
#define NCSF_LSTCLM_BOTTOMALIGN   (0x04<<NCSF_ITEM_SHIFT)
 Vertical bottom align. More...
 
#define NCSF_LSTCLM_VCENTERALIGN   (0x08<<NCSF_ITEM_SHIFT)
 Vertical center align. More...
 
#define NCSF_LSTCLM_VALIGNMASK   (0x0C<<NCSF_ITEM_SHIFT)
 The mask of vertical align. More...
 
#define NCSF_LSTCLM_SHIFT   (NCSF_ITEM_SHIFT+4)
 The bits used by mListColumn in flags. More...
 

Typedefs

typedef int(* NCS_CB_LISTV_CMPCLM) (HITEM nItem1, HITEM nItem2, NCS_LSTCLM_SORTDATA *sortData)
 The callback of comparison column function. More...
 

Enumerations

enum  ncsLstClmSortType { NCSID_LSTCLM_NOTSORTED = 0, NCSID_LSTCLM_HISORTED, NCSID_LSTCLM_LOSORTED }
 The sort type. More...
 
enum  mListColumnProp {
  NCSP_LSTCLM_POSX = NCSP_ITEM_MAX + 1, NCSP_LSTCLM_WIDTH, NCSP_LSTCLM_SORTTYPE, NCSP_LSTCLM_CMPFUNC,
  NCSP_LSTCLM_MAX
}
 The properties id of mListColumn. More...
 

Variables

MGNCS_EXPORT mListColumnClass g_stmListColumnCls
 The instance of mListColumnClass. More...
 

Detailed Description

Macro Definition Documentation

◆ NCSF_LSTCLM_BOTTOMALIGN

#define NCSF_LSTCLM_BOTTOMALIGN   (0x04<<NCSF_ITEM_SHIFT)

Vertical bottom align.

Definition at line 150 of file mlistcolumn.h.

◆ NCSF_LSTCLM_CENTERALIGN

#define NCSF_LSTCLM_CENTERALIGN   (0x02<<NCSF_ITEM_SHIFT)

Horizontal center align.

Definition at line 138 of file mlistcolumn.h.

◆ NCSF_LSTCLM_LEFTALIGN

#define NCSF_LSTCLM_LEFTALIGN   (0x00<<NCSF_ITEM_SHIFT)

Horizontal left align.

Definition at line 126 of file mlistcolumn.h.

◆ NCSF_LSTCLM_RIGHTALIGN

#define NCSF_LSTCLM_RIGHTALIGN   (0x01<<NCSF_ITEM_SHIFT)

Horizontal right align.

Definition at line 132 of file mlistcolumn.h.

◆ NCSF_LSTCLM_SHIFT

#define NCSF_LSTCLM_SHIFT   (NCSF_ITEM_SHIFT+4)

The bits used by mListColumn in flags.

Definition at line 168 of file mlistcolumn.h.

◆ NCSF_LSTCLM_TOPALIGN

#define NCSF_LSTCLM_TOPALIGN   (0x00<<NCSF_ITEM_SHIFT)

Vertical top align.

Definition at line 144 of file mlistcolumn.h.

◆ NCSF_LSTCLM_VALIGNMASK

#define NCSF_LSTCLM_VALIGNMASK   (0x0C<<NCSF_ITEM_SHIFT)

The mask of vertical align.

Definition at line 162 of file mlistcolumn.h.

◆ NCSF_LSTCLM_VCENTERALIGN

#define NCSF_LSTCLM_VCENTERALIGN   (0x08<<NCSF_ITEM_SHIFT)

Vertical center align.

Definition at line 156 of file mlistcolumn.h.

Typedef Documentation

◆ NCS_CB_LISTV_CMPCLM

typedef int(* NCS_CB_LISTV_CMPCLM)(HITEM nItem1, HITEM nItem2, NCS_LSTCLM_SORTDATA *sortData)

The callback of comparison column function.

Definition at line 120 of file mlistcolumn.h.

Enumeration Type Documentation

◆ mListColumnProp

The properties id of mListColumn.

Enumerator
NCSP_LSTCLM_POSX 

The start x coordination.

NCSP_LSTCLM_WIDTH 

The column width.

NCSP_LSTCLM_SORTTYPE 

The sort type.

NCSP_LSTCLM_CMPFUNC 

The comparison function.

NCSP_LSTCLM_MAX 

The maximum value of ListColumn properties id.

Definition at line 215 of file mlistcolumn.h.

◆ ncsLstClmSortType

The sort type.

Enumerator
NCSID_LSTCLM_NOTSORTED 

No sort.

NCSID_LSTCLM_HISORTED 

Sort ascending.

NCSID_LSTCLM_LOSORTED 

Sort descending.

Definition at line 74 of file mlistcolumn.h.

Variable Documentation

◆ g_stmListColumnCls

g_stmListColumnCls

The instance of mListColumnClass.

See also
mListColumnClass