Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Bitmap.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 #ifndef __BITMAP_H
00025 #define __BITMAP_H
00026 
00027 
00028 #include "Bases.h"
00029 #include "Tag.h"
00030 
00031 
00032 typedef struct Bitmap_s Bitmap_t;
00033 
00034 
00035 // inittype flags
00036 #define BMP_ITY_BITMAP         0  // bitmask                                TAG_BMP_VECTOR
00037 #define BMP_ITY_BYTES          1  // byte-string                            TAG_BMP_VECTOR
00038 #define BMP_ITY_FILL           2  // fill with a value                      TAG_BMP_VALUE
00039 #define BMP_ITY_ALPHA          3  // ARGB input -> A==0x00 => transparent   TAG_BMP_VECTOR
00040 #define BMP_ITY_RGB            4  // a megadott RGB szin lesz az atlatszo   TAG_BMP_VECTOR TAG_BMP_VALUE
00041 
00042 
00043 #define TAG_BMP_OBJECT         (TAG_USER+1)
00044 #define TAG_BMP_SOURCE         (TAG_USER+2)
00045 #define TAG_BMP_X              (TAG_USER+3)
00046 #define TAG_BMP_Y              (TAG_USER+4)
00047 #define TAG_BMP_VALUE          (TAG_USER+5)
00048 #define TAG_BMP_VECTOR         (TAG_USER+6)
00049 #define TAG_BMP_WIDTH          (TAG_USER+7)
00050 #define TAG_BMP_HEIGHT         (TAG_USER+8)
00051 #define TAG_BMP_INITTYPE       (TAG_USER+9)
00052 #define TAG_BMP_BYTEWIDTH      (TAG_USER+10)
00053 
00054 
00055 u32 bitmap_Call(int function, u32 firsttag, ...);
00056 u32 bitmap_CallTL(int function, tag *taglist);
00057 
00058 
00059 //Prototypes BEGIN
00060 u32 bitmap_Create(u32 firsttag, ...);
00061 u32 bitmap_CreateTL(tag *taglist);
00062 u32 bitmap_Delete(u32 firsttag, ...);
00063 u32 bitmap_DeleteTL(tag *taglist);
00064 u32 bitmap_Copy(u32 firsttag, ...);
00065 u32 bitmap_CopyTL(tag *taglist);
00066 u32 bitmap_ObtainVector(u32 firsttag, ...);
00067 u32 bitmap_ObtainVectorTL(tag *taglist);
00068 u32 bitmap_ReleaseVector(u32 firsttag, ...);
00069 u32 bitmap_ReleaseVectorTL(tag *taglist);
00070 u32 bitmap_Fill(u32 firsttag, ...);
00071 u32 bitmap_FillTL(tag *taglist);
00072 u32 bitmap_IsSolid(u32 firsttag, ...);
00073 u32 bitmap_IsSolidTL(tag *taglist);
00074 //Prototypes END
00075 
00076 
00077 //Enum for calling BEGIN
00078 enum bitmap_functions
00079 {
00080   BITMAP_CREATE=BITMAP_FUNCBASE,
00081   BITMAP_DELETE,
00082   BITMAP_COPY,
00083   BITMAP_OBTAINVECTOR,
00084   BITMAP_RELEASEVECTOR,
00085   BITMAP_FILL,
00086   BITMAP_ISSOLID,
00087   BITMAP_FUNC_DONE
00088 };
00089 //Enum for calling END
00090 
00091 
00092 // system only
00093 int bitmap_Init(void);
00094 void bitmap_CleanUp(void);
00095 
00096 void bitmap_Print(Bitmap_t *bmp, char *msg);
00097 
00098 #endif
00099 

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