Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

skin_Empty.c

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 #include <stdlib.h>
00025 #include <string.h>
00026 
00027 #define __SKIN_MODULE
00028 
00029 #include "skins/skin_Empty.h"
00030 #include "debug.h"
00031 #include "Bases.h"
00032 #include "Module.h"
00033 #include "Memory.h"
00034 #include "Skin.h"
00035 #include "Common.h"
00036 
00037 
00038 
00039 struct Skin_s
00040 {
00041   skin_Common_t common;
00042 };
00043 
00044 
00045 static bases_Modules_t *api;
00046 VERSION("Empty.skin_mod",1,0,"Gergely Gati","g.gati@freemail.hu");
00047 
00048 
00049 static int empty_FillGadgetInfo(Skin_t *skin, Gadget_t *gad)
00050 {
00051   return(0);
00052 }
00053 
00054 static int empty_GetInnerRect(Skin_t *skin, Gadget_t *gad, Rect_t *rect, Rect_t *inner)
00055 {
00056   return(0);
00057 }
00058 
00059 static int empty_GetExtent(Skin_t *skin, Gadget_t *gad, Extent_t *ext, Extent_t *outer)
00060 {
00061   return(0);
00062 }
00063 
00064 static int empty_RenderCustom(Skin_t *skin, Gadget_t *gad, Rect_t *rect, int custom)
00065 {
00066   return(0);
00067 }
00068 
00069 static int empty_RenderOver(Skin_t *skin, Gadget_t *gad, Rect_t *rect, u32 state)
00070 {
00071   return(0);
00072 }
00073 
00074 static int empty_RenderBehind(Skin_t *skin, Gadget_t *gad, Rect_t *rect, u32 state)
00075 {
00076   return(0);
00077 }
00078 
00079 static int empty_RenderBackground(Skin_t *skin, Gadget_t *gad, Rect_t *rect, u32 state)
00080 {
00081   return(0);
00082 }
00083 
00084 static int empty_FillColorTable(Skin_t *skin, Gadget_t *gad, int state)
00085 {
00086   return(0);
00087 }
00088 
00089 static u32 empty_GetFont(Skin_t *skin, Gadget_t *gad)
00090 {
00091   return(0L);
00092 }
00093 
00094 static void empty_DeleteSkin(Skin_t *skin)
00095 {
00096   mem_free(skin);
00097 }
00098 
00099 static Skin_t *empty_CreateSkin(gui_App_t *app, char *path)
00100 {
00101   Skin_t *skin=NULL;
00102 
00103   if(app!=NULL&&NULL!=(skin=mem_malloc(sizeof(Skin_t))))
00104   {
00105     // do something
00106   }
00107   return(skin);
00108 }
00109 
00110 
00111 static int empty_LoadSkin(Skin_t *skin, char *class)
00112 {
00113   return(0);
00114 }
00115 
00116 
00117 static int empty_UnloadSkin(Skin_t *skin, u32 class_id)
00118 {
00119   return(0);
00120 }
00121 
00122 
00123 static u32 empty_GetCustomTaglist(Skin_t *skin, Gadget_t *gad)
00124 {
00125   return(0L);
00126 }
00127 
00128 
00129 static int skin_empty_Init(u32 module)
00130 {
00131   int ret=-1;
00132 
00133   ret=api->skin_Call(SKIN_REGISTERSKIN,
00134                       TAG_SKIN_NAME,"Empty",
00135                       TAG_SKIN_MODULE,module,
00136                       TAG_SKIN_CREATESKIN,empty_CreateSkin,
00137                       TAG_SKIN_DELETESKIN,empty_DeleteSkin,
00138                       TAG_SKIN_RENDERBEHIND,empty_RenderBehind,
00139                       TAG_SKIN_RENDEROVER,empty_RenderOver,
00140                       TAG_SKIN_RENDERBACKGROUND,empty_RenderBackground,
00141                       TAG_SKIN_RENDERCUSTOM,empty_RenderCustom,
00142                       TAG_SKIN_GETEXTENT,empty_GetExtent,
00143                       TAG_SKIN_GETINNERRECT,empty_GetInnerRect,
00144                       TAG_SKIN_FILLCOLORTABLE,empty_FillColorTable,
00145                       TAG_SKIN_FILLGADGETINFO,empty_FillGadgetInfo,
00146                       TAG_SKIN_GETFONT,empty_GetFont,
00147                       TAG_SKIN_LOADSKIN,empty_LoadSkin,
00148                       TAG_SKIN_UNLOADSKIN,empty_UnloadSkin,
00149                       TAG_SKIN_GETCUSTOMTAGLIST,empty_GetCustomTaglist,
00150                       TAG_DONE);
00151   return(ret);
00152 }
00153 
00154 
00155 EXPORT int module_Init(u32 module, bases_Modules_t *bases)
00156 {
00157     api=bases;
00158     return(skin_empty_Init(module));
00159 }
00160 
00161  

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