mAbstractListClass Struct Reference
[mAbstractList]
The virtual function table of mAbstractList, which derived from mScrollWidgetClass.
More...
#include <mabstractlist.h>
Detailed Description
The virtual function table of mAbstractList, which derived from mScrollWidgetClass.
- int (*addNode)(mAbstractList *self, mNode *node);
Add a new node. Please used by subclass directly. - Parameters:
-
| node | The pointer to new node. |
- Returns:
- The index of new node in parent.
- int (*insertNode)(mAbstractList *self, mNode *node, mNode *prev,mNode *next, int index);
Insert a node. Please used by subclass directly. - Parameters:
-
| node | The pointer to new node. |
| prev | The specified previous sibling node. It has the highest priority. |
| prev | The specified next sibling node. The priority is less than prev. |
| index | The specified insert position. It has the lowest priority. |
- Returns:
- The position in which item has been inserted on success, otherwise -1.
- int (*removeNode)(mAbstractList *self, mNode *node);
Remove a child node. It deletes all chilren nodes of the specified node. Please used by subclass directly. - Parameters:
-
| node | The pointer to child node. |
- Returns:
- 0 on success, otherwise -1.
- mNode* (*getNode)(mAbstractList *self, int index);
Get the specified node. Please used by subclass directly. - Parameters:
-
| index | The specified index. |
- Returns:
- The pointer to the specified node.
- int (*indexOf)(mAbstractList *self, mNode *node);
Get the index of the specified node in parent node. Please used by subclass directly. - Returns:
- The index of the specified node.
- BOOL (*isFrozen)(mAbstractList *self);
The function determines whether control is frozen. If frozen, control will not refresh nodes until unfrozen it. Please used by subclass directly.
- BOOL (*showNode)(mAbstractList *self, mNode *node);
Refresh the specified node and make it visible. Please used directly by subclass.
- void (*refreshNode)(mAbstractList *self, mNode *node, const RECT *rcInv);
Refresh the specified node. Please used by subclass directly.
- mNode* (*findNode)(mAbstractList *self, DWORD info, int type, BOOL recursion, int startIndex);
Find the node which contains the specified information from start index to end of nodes. Please used by subclass directly. - Parameters:
-
| info | The valid information. |
| type | The type of valid information. |
| recursion | Whether find in children or not. |
| startIndex | The started index. |
- Returns:
- The pointer to found node.
- int (*getRect)(mAbstractList *self, mNode *node, RECT *rcNode, BOOL bConv);
Get the specified node's rectangle. It should be implemented by subclass. - Parameters:
-
| node | The specified node. |
| rcNode | The node's rectangle. |
| bConv | Whether transform content to window coordinate or not. |
- Returns:
- Zero on success, otherwise -1.
- void (*freeze)(mAbstractList *self, BOOL locked);
Freeze the control or not. It should be implemented by subclass.
- void (*sortNodes)(mAbstractList *self, NCS_CB_CMPNODE func, mNode *parentNode);
Sort all children of specified node using the specified function. Please used by subclass directly. - Parameters:
-
| func | The node comparision function. |
| parentNode | The parent node. |
- void (*notifyEvent)(mAbstractList *self, int eventId, DWORD eventInfo);
Process the event from the node. It should be implemented by subclass. - Parameters:
-
| eventId | The event id. |
| eventInfo | The event information. |
The documentation for this struct was generated from the following file: