mGNCS API Reference
v1.5.0
A new control set and a new framework for MiniGUI apps
|
Go to the source code of this file.
Data Structures | |
struct | _NCSRM_HEADER |
struct | _NCSRM_TYPEITEM |
struct | _NCSRM_IDITEM |
struct | _NCSRM_WINHEADER |
struct | _NCSRM_SECTHEADER |
struct | _NCSRM_DEFLOCALE_INFO |
struct | _NCSRM_LOCALEITEM |
struct | _NCSRM_INCORE_IMAGE |
struct | _NCSRM_RDRINFO |
struct | _NCSRM_RDRHEADER |
struct | _NCSRM_PROP |
Macros | |
#define | HPACKAGE_NULL ((GHANDLE)0) |
Null resource package handle. More... | |
#define | NCSRM_SYSSTR_BASEID 1 |
Base value of system string id. More... | |
#define | NCSRM_SYSSTR_DEFRDR (NCSRT_STRING << 16) |NCSRM_SYSSTR_BASEID |
The system string id of default renderer. More... | |
#define | NCSRT_EXT_LEN 15 |
The maximum length of resource extension. More... | |
#define | NCSRM_VERSION_LEN 4 |
The maximum length of resource package version. More... | |
#define | NCSRM_VENDOR_LEN 16 |
The maximum length of vendor. More... | |
#define | NCSRM_ENCODING_LEN 16 |
The maximum length of encoding. More... | |
#define | ncsLoadResPackage ncsLoadResPackageFromFile |
An alias of ncsLoadResPackageFromFile. More... | |
Typedefs | |
typedef GHANDLE | HPACKAGE |
Handle to resource package. More... | |
typedef struct _NCSRM_HEADER | NCSRM_HEADER |
typedef struct _NCSRM_TYPEITEM | NCSRM_TYPEITEM |
typedef struct _NCSRM_IDITEM | NCSRM_IDITEM |
typedef struct _NCSRM_WINHEADER | NCSRM_WINHEADER |
typedef struct _NCSRM_SECTHEADER | NCSRM_SECTHEADER |
typedef struct _NCSRM_DEFLOCALE_INFO | NCSRM_DEFLOCALE_INFO |
typedef struct _NCSRM_LOCALEITEM | NCSRM_LOCALEITEM |
typedef struct _NCSRM_INCORE_IMAGE | NCSRM_INCORE_IMAGE |
typedef struct _NCSRM_RDRINFO | NCSRM_RDRINFO |
typedef struct _NCSRM_RDRHEADER | NCSRM_RDRHEADER |
typedef struct _NCSRM_PROP | NCSRM_PROP |
Enumerations | |
enum | ncsRMRdrResType { NCSRM_RDRTYPE_COLOR = 0, NCSRM_RDRTYPE_METRIC, NCSRM_RDRTYPE_IMAGE, NCSRM_RDRTYPE_FONT, NCSRM_RDRTYPE_BINARY, NCSRM_RDRTYPE_STRING, NCSRM_RDRTYPE_FILE, NCSRM_RDRTYPE_TEXT, NCSRM_RDRTYPE_MAX } |
Renderer resource type. More... | |
Functions | |
const MGNCS_EXPORT char * | ncsSetDefaultLocale (char *language, char *country) |
Set default locale information. More... | |
const MGNCS_EXPORT char * | ncsGetDefaultLocale (void) |
Get default locale information. More... | |
MGNCS_EXPORT HPACKAGE | ncsLoadResPackageFromFile (const char *fileName) |
Load a resource package from resource package file. More... | |
MGNCS_EXPORT int | ncsAddRefResPackage (HPACKAGE package) |
add the reference count for resource package More... | |
MGNCS_EXPORT void | ncsUnloadResPackage (HPACKAGE package) |
Unload a resource package. More... | |
MGNCS_EXPORT HPACKAGE | ncsLoadResPackageFromMem (const void *mem, int size) |
Load a resource package from memory. User get the information of incore resource package by getIncoreResPackInfo firstly, then call this function to load resource package. More... | |
const MGNCS_EXPORT char * | ncsGetImageFileName (HPACKAGE package, Uint32 resId) |
Get the name of image file. More... | |
MGNCS_EXPORT int | ncsGetBitmap (HDC hdc, HPACKAGE package, Uint32 resId, PBITMAP pBitmap) |
Load a device-dependent bitmap from resource id. More... | |
MGNCS_EXPORT void | ncsReleaseBitmap (PBITMAP pBitmap) |
Releases a bitmap. More... | |
MGNCS_EXPORT int | ncsGetMyBitmap (HPACKAGE package, Uint32 resId, PMYBITMAP myBmp, RGB *pal) |
Load a device-independent bitmap from resource id. More... | |
MGNCS_EXPORT void | ncsReleaseMyBitmap (PMYBITMAP myBmp) |
Releases a bitmap. More... | |
const MGNCS_EXPORT char * | ncsGetString (HPACKAGE package, Uint32 resId) |
Get string. More... | |
MGNCS_EXPORT BOOL | ncsSetSysRdr (HPACKAGE package, Uint32 rdrSetId) |
Set system renderer. More... | |
MGNCS_EXPORT BOOL | ncsSetWinRdr (HWND hWnd, HPACKAGE package, Uint32 rdrId) |
Set window renderer. More... | |
MGNCS_EXPORT mMainWnd * | ncsCreateMainWindowIndirectFromID (HPACKAGE package, Uint32 wndId, HWND owner, HICON hIcon, HMENU hMenu, NCS_EVENT_HANDLER_INFO *handlers, NCS_EVENT_CONNECT_INFO *connects, DWORD user_data) |
Create main window. More... | |
MGNCS_EXPORT BOOL | ncsGetWndTemplFromID (HPACKAGE package, Uint32 wndId, NCS_MNWND_TEMPLATE *ptempl, NCS_EVENT_HANDLER_INFO *handlers) |
get the window template from package More... | |
MGNCS_EXPORT void | ncsFreeWndTemplate (NCS_MNWND_TEMPLATE *ptempl) |
free the window template create by ncsGetWndTemplFromID More... | |
This file includes the definition of resource managerment.
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 mresmgr.h.