1 /*$ 2 Copyright (C) 2013-2020 Azel. 3 4 This file is part of AzPainter. 5 6 AzPainter is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 AzPainter is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU General Public License for more details. 15 16 You should have received a copy of the GNU General Public License 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 $*/ 19 20 #ifndef MLIB_GROUPBOX_H 21 #define MLIB_GROUPBOX_H 22 23 #include "mContainerDef.h" 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 #define M_GROUPBOX(p) ((mGroupBox *)(p)) 30 31 typedef struct 32 { 33 char *label; 34 int labelW,labelH; 35 }mGroupBoxData; 36 37 typedef struct _mGroupBox 38 { 39 mWidget wg; 40 mContainerData ct; 41 mGroupBoxData gb; 42 }mGroupBox; 43 44 45 mGroupBox *mGroupBoxNew(int size,mWidget *parent,uint32_t style); 46 mGroupBox *mGroupBoxCreate(mWidget *parent,uint32_t style,uint32_t fLayout,uint32_t marginB4,const char *label); 47 48 void mGroupBoxSetLabel(mGroupBox *p,const char *text); 49 50 #ifdef __cplusplus 51 } 52 #endif 53 54 #endif 55