mGNCS API Reference  v1.5.0
A new control set and a new framework for MiniGUI apps
Macros | Enumerations | Variables
mbutton.h File Reference

Go to the source code of this file.

Macros

#define NCSCTRL_BUTTON   NCSCLASSNAME("button")
 the name of button control More...
 
#define NCSS_BUTTON_IMAGE   (1<<NCSS_WIDGET_SHIFT)
 indicate a image button More...
 
#define NCSS_BUTTON_CHECKABLE   (2<<NCSS_WIDGET_SHIFT)
 indicate a chackable button More...
 
#define NCSS_BUTTON_AUTOCHECK   (4<<NCSS_WIDGET_SHIFT)
 indicate a auto check button More...
 
#define NCSS_BUTTON_3DCHECK   (8<<NCSS_WIDGET_SHIFT)
 indicate a three type (unchecked-halfchekced-checked) check button More...
 
#define NCSS_BUTTON_IMAGELABEL   (0x10<<NCSS_WIDGET_SHIFT)
 indicate a button with image and label More...
 
#define NCSS_BUTTON_VERTIMAGELABEL   (0x20<<NCSS_WIDGET_SHIFT)
 indicate a button with vertical image and label More...
 

Enumerations

enum  mButtonCheckState { NCS_BUTTON_UNCHECKED = 0, NCS_BUTTON_HALFCHECKED, NCS_BUTTON_CHECKED }
 define the check state of button More...
 
enum  mButtonProp {
  NCSP_BUTTON_ALIGN = NCSP_WIDGET_MAX + 1, NCSP_BUTTON_VALIGN, NCSP_BUTTON_WORDWRAP, NCSP_BUTTON_IMAGE,
  NCSP_BUTTON_CHECKSTATE, NCSP_BUTTON_IMAGE_SIZE_PERCENT, NCSP_BUTTON_GROUPID, NCSP_BUTTON_GROUP
}
 the properties id of mButton More...
 
enum  eButtonNotify { NCSN_BUTTON_PUSHED = NCSN_WIDGET_MAX + 1, NCSN_BUTTON_STATE_CHANGED }
 the notification code of mButton More...
 

Variables

MGNCS_EXPORT mButtonClass g_stmButtonCls
 global mButtonClass More...
 

Detailed Description

Author
Date
   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 mbutton.h.