mGNCS API Reference
v1.5.0
A new control set and a new framework for MiniGUI apps
|
#include <stdarg.h>
Go to the source code of this file.
Data Structures | |
struct | _NCS_EVENT_HANDLER_NODE |
struct | _NCS_EVENT_HANDLER |
struct | _NCS_EVENT_CONNECT_INFO |
Macros | |
#define | MAXLEN_CLASSNAME 31 |
the max length of class name More... | |
#define | NCSCLASSNAME(name) name _MGNCS_CLASS_SUFFIX |
Define a NCS class name with a default suffix, distinguish the class name from old constrol set. More... | |
#define | ISCLASS(class_name, clssName) ncsIsClass((const char*)(class_name), (mComponentClass*)(&Class(clssName))) |
the wrapper of ncsIsClass, test a one component class is special one. More... | |
Typedefs | |
typedef struct _NCS_EVENT_HANDLER_NODE | NCS_EVENT_HANDLER_NODE |
typedef struct _NCS_EVENT_HANDLER | NCS_EVENT_HANDLER |
typedef struct _NCS_EVENT_CONNECT_INFO | NCS_EVENT_CONNECT_INFO |
Enumerations | |
enum | ncsComponentReleated { NCS_CMPT_NEXT = 0, NCS_CMPT_PREV, NCS_CMPT_PARENT, NCS_CMPT_CHILDREN } |
The releation between components. More... | |
enum | mComponentQueryCmd { QPC_SET_PROP = 0, QPC_GET_PROP, QPC_ADD_EVENT, QPC_ADD_BIND, QPC_USER } |
queryByPath and vqueryByPath's cmd_id More... | |
Functions | |
MGNCS_EXPORT void * | ncsSetComponentHandler (mComponent *comp, UINT message, void *handler) |
set the component handler More... | |
MGNCS_EXPORT void | ncsSetComponentHandlers (mComponent *comp, NCS_EVENT_HANDLER *handlers, int count) |
set an array of event handlers More... | |
MGNCS_EXPORT void * | ncsGetComponentHandler (mComponent *comp, UINT message) |
get an event callback More... | |
MGNCS_EXPORT BOOL | ncsComponentConnectEvents (mComponent *comps, NCS_EVENT_CONNECT_INFO *connects, int counts) |
connect the events between parent and its children, used by ncsCreateMainWindowIndirectFromID More... | |
MGNCS_EXPORT BOOL | ncsIsClass (const char *className, mComponentClass *clss) |
check a class name is a special class type or not More... | |
MGNCS_EXPORT BOOL | ncsIsChildClass (const char *childClassName, const char *parentClassName) |
check a class name is derived class of a special class More... | |
MGNCS_EXPORT BOOL | ncsRegisterComponent (mComponentClass *compCls, DWORD dwStyle, DWORD dwExStyle, int idCursor, int idBkColor) |
register a component class into MiniGUI, so that ncsCreateWindow and ncsCreateWindow can find a mComponentClass instance More... | |
MGNCS_EXPORT mComponentClass * | ncsGetComponentClass (const char *className, BOOL check) |
Get a mComponentClass instance from MiniGUI. More... | |
Variables | |
MGNCS_EXPORT mComponentClass | g_stmComponentCls |
the singleton of mComponentClass More... | |
This file include the base object defines
This file is part of mGNCS, a component for MiniGUI. Copyright (C) 2008~2018, Beijing FMSoft Technologies Co., Ltd. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. Or, As this program is a library, any link to this program must follow GNU General Public License version 3 (GPLv3). If you cannot accept GPLv3, you need to be licensed from FMSoft. If you have got a commercial license of this program, please use it under the terms and conditions of the commercial license. For more information about the commercial license, please refer to <http://www.minigui.com/blog/minigui-licensing-policy/>.
Definition in file mcomponent.h.