Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gadget_Group.h

Go to the documentation of this file.
00001 /*
00002  *    gui - [gega user interface] the flexible solution for user interface problems
00003  *    Copyright (C) 2002  Gergely Gati
00004  *
00005  *    This program is free software; you can redistribute it and/or modify
00006  *    it under the terms of the GNU General Public License as published by
00007  *    the Free Software Foundation; version 2 of the License.
00008  *
00009  *    This program is distributed in the hope that it will be useful,
00010  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *    GNU General Public License for more details.
00013  *
00014  *    You should have received a copy of the GNU General Public License
00015  *    along with this program; if not, write to the Free Software
00016  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  *    Gergely Gati
00019  *      email:           g.gati@freemail.hu
00020  *      AIM screenname:  GatiGergely
00021  *      ICQ number:      93131690
00022  *
00023  */
00024 /*
00025  *  group.h
00026  *
00027  *  Author            : Gergely Gáti
00028  *  Date              : March 28, 2000
00029  *  Description       : Interface for group class
00030  *
00031  */
00032 #ifndef __GROUP_H
00033 #define __GROUP_H
00034 
00035 #include "Gadget.h"
00036 #include "Bases.h"
00037 #include "Module.h"
00038 #include "macros.h"
00039 
00040 
00041 /* Flag defines
00042  *
00043  * GRP_BORDERLESS           A normal group have a small border around its area, this
00044  *                            flag disable this feature
00045  * GRP_OPAQUE               The background of a group is transparent on default, with
00046  *                            this flag, the group fills its area with a defined color
00047  * GRP_HORIZONTAL           Using this flag the group will be horizontal
00048  * GRP_VERTICAL             Vertical group
00049  * GRP_MATRIX               Not implemented yet
00050  * GRP_FIXED_SIZE           The group will be fixed (minimum and maximum size will be the same)
00051  * GRP_FIXED_WIDTH          Maximum width = minimum width
00052  * GRP_FIXED_HEIGHT         Maximum height = minimum height
00053  */
00054 #define GRP_ORIENTATION_HORIZONTAL    0
00055 #define GRP_ORIENTATION_VERTICAL      1
00056 #define GRP_ORIENTATION_MATRIX        2
00057 
00058 #define GRP_SIZE_FLEXIBLE             0
00059 #define GRP_SIZE_FIXED_WIDTH          1
00060 #define GRP_SIZE_FIXED_HEIGHT         2
00061 #define GRP_SIZE_FIXED_SIZE           3
00062 
00063 /* initialize structure for group class
00064  */
00065 
00066 #define TAG_GRP_GAPSIZE     (GADGET_TAGBASE+CLASS_GROUP_ID+1)
00067 #define TAG_GRP_ORIENTATION (GADGET_TAGBASE+CLASS_GROUP_ID+2)
00068 #define TAG_GRP_BORDERSIZE  (GADGET_TAGBASE+CLASS_GROUP_ID+3)
00069 #define TAG_GRP_GADGET      (GADGET_TAGBASE+CLASS_GROUP_ID+4)
00070 #define TAG_GRP_INDEX       (GADGET_TAGBASE+CLASS_GROUP_ID+5)
00071 #define TAG_GRP_EXTENT      (GADGET_TAGBASE+CLASS_GROUP_ID+6)
00072 #define TAG_GRP_SIZE        (GADGET_TAGBASE+CLASS_GROUP_ID+7)
00073 
00074 typedef struct _group group;
00075 
00076 
00077 EXPORT int module_Init(u32 module, bases_Modules_t *bases);
00078 
00079 #define MET_GROUP_ADD_GADGET      (GADGET_METHOD_BASE+0)
00080 #define MET_GROUP_ADD_GADGET_TAIL (GADGET_METHOD_BASE+1)
00081 #define MET_GROUP_REMOVE_GADGET   (GADGET_METHOD_BASE+2)
00082 #define MET_GROUP_GET_GADGET      (GADGET_METHOD_BASE+3)
00083 #define MET_GROUP_RESIZE          (GADGET_METHOD_BASE+4)
00084 #define MET_GROUP_GET_SIZE        (GADGET_METHOD_BASE+5)
00085 #define MET_GROUP_INVALIDATE_SIZE (GADGET_METHOD_BASE+6)
00086 
00087 #endif

Generated on Tue Jan 7 12:11:19 2003 for THEGUI by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002