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

Data Structures

struct  mNode
 The structure of mNode. It is the basic class of all nodes occur within specific controls. For example, a list can contain it. More...
 
struct  mNodeClass
 The virtual function table of mNodeClass. More...
 

Macros

#define NCSS_NODE_LTEXTRS   0x0000
 Image on the left and text on the right. default style. More...
 
#define NCSS_NODE_SMALLICON   0x0001
 Small icon mode. Show small icon in normal status, or enlarge icon in selected status. More...
 
#define NCSS_NODE_LTEXTBS   0x0002
 Large Icon mode. Image on the top and text on the bottom. More...
 
#define NCSS_NODE_TICTACTOEMIDLET   0x0004
 tictactoemidlet mode. Image includes normal and selected status. More...
 
#define NCSS_NODE_HIDETEXT   0x0010
 Don't show text. More...
 
#define NCSS_NODE_HIDEIMAGE   0x0020
 Don't show image. More...
 
#define NCSS_NODE_DISABLED   0x0040
 Disabled Node. More...
 
#define NCSS_NODE_SHIFT   7
 The bits used by mNode in style. More...
 

Typedefs

typedef int(* NCS_CB_CMPNODE) (mNode *node1, mNode *node2)
 The callback of node comparison function. More...
 

Enumerations

enum  ncsNodeFindType { NCS_NODE_FTSTRING, NCS_NODE_FTDATA, NCS_NODE_FTIMAGE }
 The found information type used by findNode. More...
 
enum  mNodeEvent {
  NCSE_NODE_CONTENTCHANGED = 1, NCSE_NODE_HEIGHTCHANGED, NCSE_NODE_REFRESH, NCSE_NODE_NODEADDED,
  NCSE_NODE_NODEDELETED
}
 The event id of mNode. More...
 
enum  mNodeProp {
  NCSP_NODE_HEIGHT = 1, NCSP_NODE_TEXT, NCSP_NODE_IMAGE, NCSP_NODE_ADDDATA,
  NCSP_NODE_ENABLED, NCSP_NODE_SELECTED, NCSP_NODE_PARENTNODE, NCSP_NODE_FIRSTCHILD,
  NCSP_NODE_LASTCHILD, NCSP_NODE_CHILDRENCOUNT, NCSP_NODE_LAYOUT, NCSP_NODE_HIDETEXT,
  NCSP_NODE_HIDEIMAGE, NCSP_NODE_MAX
}
 The properties id of mNode. More...
 

Variables

MGNCS_EXPORT mNodeClass g_stmNodeCls
 The instance of mNodeClass. More...
 
MGNCS_EXPORT mGroupNodeClass g_stmGroupNodeCls
 The instance of mGroupNodeClass. More...
 

Detailed Description

Macro Definition Documentation

◆ NCSS_NODE_DISABLED

#define NCSS_NODE_DISABLED   0x0040

Disabled Node.

Definition at line 113 of file mnode.h.

◆ NCSS_NODE_HIDEIMAGE

#define NCSS_NODE_HIDEIMAGE   0x0020

Don't show image.

Definition at line 107 of file mnode.h.

◆ NCSS_NODE_HIDETEXT

#define NCSS_NODE_HIDETEXT   0x0010

Don't show text.

Definition at line 101 of file mnode.h.

◆ NCSS_NODE_LTEXTBS

#define NCSS_NODE_LTEXTBS   0x0002

Large Icon mode. Image on the top and text on the bottom.

Definition at line 87 of file mnode.h.

◆ NCSS_NODE_LTEXTRS

#define NCSS_NODE_LTEXTRS   0x0000

Image on the left and text on the right. default style.

Definition at line 74 of file mnode.h.

◆ NCSS_NODE_SHIFT

#define NCSS_NODE_SHIFT   7

The bits used by mNode in style.

Definition at line 119 of file mnode.h.

◆ NCSS_NODE_SMALLICON

#define NCSS_NODE_SMALLICON   0x0001

Small icon mode. Show small icon in normal status, or enlarge icon in selected status.

Definition at line 81 of file mnode.h.

◆ NCSS_NODE_TICTACTOEMIDLET

#define NCSS_NODE_TICTACTOEMIDLET   0x0004

tictactoemidlet mode. Image includes normal and selected status.

Definition at line 93 of file mnode.h.

Typedef Documentation

◆ NCS_CB_CMPNODE

typedef int(* NCS_CB_CMPNODE)(mNode *node1, mNode *node2)

The callback of node comparison function.

Definition at line 126 of file mnode.h.

Enumeration Type Documentation

◆ mNodeEvent

enum mNodeEvent

The event id of mNode.

Enumerator
NCSE_NODE_CONTENTCHANGED 

The content has been changed.

  • param : mNode*, the pointer to changed node.
NCSE_NODE_HEIGHTCHANGED 

The height of node has been changed.

  • param : mNodeEventData*, the data is the different value of height.
NCSE_NODE_REFRESH 

Refresh node.

  • param : mNode*, the pointer to refresh node.
NCSE_NODE_NODEADDED 

The node has been added.

  • param : mNode*, the pointer to added node.
NCSE_NODE_NODEDELETED 

The content has been deleted, Only have removed from sibling list.

  • param : mNode*, the pointer to deleted node.

Definition at line 429 of file mnode.h.

◆ mNodeProp

enum mNodeProp

The properties id of mNode.

Enumerator
NCSP_NODE_HEIGHT 

The height.(Uint16)

NCSP_NODE_TEXT 

The text string.(char*)

NCSP_NODE_IMAGE 

The image. (PBITMAP)

NCSP_NODE_ADDDATA 

The additional data. (DWORD)

NCSP_NODE_ENABLED 

The enabled status of node. RW.

NCSP_NODE_SELECTED 

The selected status of node. RO.

NCSP_NODE_PARENTNODE 

The parent node.(mObject*). RO.

NCSP_NODE_FIRSTCHILD 

The first child node.(mNode*). RO.

NCSP_NODE_LASTCHILD 

The last child node. (mNode*). RO.

NCSP_NODE_CHILDRENCOUNT 

The number of children. (int). RO.

NCSP_NODE_LAYOUT 

The layout information.

NCSP_NODE_HIDETEXT 

Whether hides text or not.

NCSP_NODE_HIDEIMAGE 

Whether hides image or not.

NCSP_NODE_MAX 

The maximum value of mNode properties id.

Definition at line 466 of file mnode.h.

◆ ncsNodeFindType

The found information type used by findNode.

Enumerator
NCS_NODE_FTSTRING 

According to text string.

NCS_NODE_FTDATA 

According to additional data.

NCS_NODE_FTIMAGE 

According to image.

Definition at line 266 of file mnode.h.

Variable Documentation

◆ g_stmGroupNodeCls

g_stmGroupNodeCls

The instance of mGroupNodeClass.

See also
mGroupNodeClass

◆ g_stmNodeCls

g_stmNodeCls

The instance of mNodeClass.

See also
mNodeClass