mGNCS API Reference  v1.2.0
A new control set and a new framework for MiniGUI apps
Data Structures | Macros
mrdr.h File Reference

Go to the source code of this file.

Data Structures

struct  _NCS_RDR_ENTRY
 

Macros

#define INVALID_RDR_VALUE   ((DWORD)-1)
 invalid renderer element value More...
 
#define NCS_TYPE_MASK   WE_ATTR_TYPE_MASK
 
#define ncsGetElement(self, id)   ncsGetElementEx((mWidget*)self, NULL, id)
 Get the value of element id in specified window. More...
 
#define ncsSetElement(self, id, value)   ncsSetElementEx((mWidget*)self, NULL, id, value)
 Set the value of element id in specified window. More...
 
typedef struct _NCS_RDR_ENTRY NCS_RDR_ENTRY
 
MGNCS_EXPORT DWORD ncsGetElementEx (mWidget *self, const char *rdrName, int id)
 Get the value of element id in specified window or renderer. More...
 
MGNCS_EXPORT DWORD ncsSetElementEx (mWidget *self, const char *rdrName, int id, DWORD value)
 Set the value of element id in specified window or renderer. More...
 
MGNCS_EXPORT GHANDLE ncsLoadRdrEtcFile (const char *etcfile, const char **rdrName, int count)
 Load renderer configure file from file system or incore mode. More...
 
MGNCS_EXPORT int ncsUnloadRdrEtcFile (GHANDLE hEtcFile)
 Unload renderer configuration file. More...
 
MGNCS_EXPORT mWidgetRendererncsRetriveCtrlRDR (const char *rendererName, const char *className)
 get a renderer of special control More...
 
MGNCS_EXPORT BOOL ncsRegisterCtrlRDR (const char *rendererName, const char *className, mWidgetRenderer *renderer)
 register one of implemention of a special control into system More...
 
MGNCS_EXPORT void ncsUnregisterCtrlRDRs (const char *rdrName, const char *className)
 unregister a special rdr More...
 
MGNCS_EXPORT BOOL ncsRegisterCtrlRDRs (const char *rendererName, NCS_RDR_ENTRY *entries, int count)
 register a group of renderers into system More...
 
MGNCS_EXPORT BOOL ncsSetSystemRenderer (const char *name)
 Set the System renderer. If a system renderer would be used by all the controls who haven't been set the property "renderer", see mWidget and mWidgetRenderer. More...
 
MGNCS_EXPORT const char * ncsGetSystemRenderer (void)
 get the system renderer name More...
 

Detailed Description

Author
dongjunjie
Date
2009/02/13

This file include the base renderer information of ncs.

   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/en/about/licensing-policy/>.

Definition in file mrdr.h.