Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gadget_Icon.c File Reference

#include <stdlib.h>
#include "Window.h"
#include "Bases.h"
#include "Module.h"
#include "Image.h"
#include "debug.h"
#include "classes.h"
#include "Memory.h"
#include "Common.h"
#include "gadgets/gadget_Icon.h"

Include dependency graph for gadget_Icon.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _icon

Functions

u32 icon_set_image (Gadget_t *this_gadget, tag *taglist)
 VERSION ("Icon.gadget", 1, 0,"Gergely Gati","g.gati @freemail.hu")
void icon_get_extent (Gadget_t *this, Extent_t *min, Extent_t *max)
void icon_layout (Gadget_t *this, Rect_t *rect)
int icon_init_gadget (Gadget_t *this, tag *taglist)
void icon_delete_gadget (Gadget_t *this)
int icon_gadget_event_handler (Gadget_t *this, int event, tag *taglist)
void init_icon_class (u32 module)
EXPORT int module_Init (u32 module, bases_Modules_t *bases)

Variables

bases_Modules_tapi
gadget_Method_t methods []
gadget_Binding_t binding []


Function Documentation

void icon_delete_gadget Gadget_t   this [static]
 

Definition at line 187 of file gadget_Icon.c.

References debug_Begin, debug_End, bases_modules_s::img_Call, IMG_CLEANUPIMAGE, NULL, TAG_DONE, and TAG_IMG_OBJECT.

Referenced by icon_gadget_event_handler.

int icon_gadget_event_handler Gadget_t   this,
int    event,
tag   taglist
[static]
 

Definition at line 201 of file gadget_Icon.c.

References Window_s::app, ImageIn_s::data, ImageIn_s::data_size, debug_Begin, debug_End, GADEV_DAMAGE, GADEV_DELETE_GADGET, GADEV_GET_EXTENT, GADEV_INIT_GADGET, GADEV_LAYOUT, GADEV_RESTORE, GADEV_SAVE, icon_delete_gadget, icon_get_extent, icon_init_gadget, icon_layout, ImageInfo_s::iim, Image_t, bases_modules_s::img_Call, IMG_CLEANUPIMAGE, IMG_GETINFO, IMG_INITIMAGE, max, mem_malloc, min, NULL, TAG_DONE, TAG_GAD_EXTMAX, TAG_GAD_EXTMIN, TAG_GAD_RECT, TAG_GADGET_MEM, TAG_GADGET_SIZE, tag_GetTagData, TAG_IMG_APP, TAG_IMG_FREEAFTERUSE, TAG_IMG_IMAGEIN, TAG_IMG_IMGINFO, TAG_IMG_OBJECT, u32, u8, and Gadget_s::window.

Referenced by init_icon_class.

void icon_get_extent Gadget_t   this,
Extent_t   min,
Extent_t   max
[static]
 

Definition at line 81 of file gadget_Icon.c.

References debug_Begin, debug_End, debug_Message, Gadget_s::gadget_id, Extent_t::height, bases_modules_s::img_Call, IMG_GETINFO, max, ImageInfo_s::maxheight, ImageInfo_s::maxwidth, min, ImageInfo_s::minheight, ImageInfo_s::minwidth, TAG_DONE, TAG_IMG_IMGINFO, TAG_IMG_OBJECT, and Extent_t::width.

Referenced by icon_gadget_event_handler.

int icon_init_gadget Gadget_t   this,
tag   taglist
[static]
 

Definition at line 159 of file gadget_Icon.c.

References Window_s::app, debug_Begin, debug_End, Image_t, bases_modules_s::img_Call, IMG_INITIMAGE, NULL, TAG_DONE, tag_GetTagData, TAG_ICO_IMAGEIN, TAG_ICO_IMAGENAME, TAG_IMG_APP, TAG_IMG_IMAGEIN, TAG_IMG_IMAGENAME, u32, and Gadget_s::window.

Referenced by icon_gadget_event_handler.

void icon_layout Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 115 of file gadget_Icon.c.

References debug_Begin, debug_End, debug_Message, bases_modules_s::img_Call, IMG_PUTIMAGE, TAG_DONE, TAG_IMG_OBJECT, TAG_IMG_RECT, TAG_IMG_WINDOW, and Gadget_s::window.

Referenced by icon_gadget_event_handler.

u32 icon_set_image Gadget_t   this_gadget,
tag   taglist
[static]
 

Definition at line 292 of file gadget_Icon.c.

References debug_Begin, debug_End, bases_modules_s::gadget_Call, GADGET_GET_RECT, GADGET_REFRESH, Rect_t::height, Image_t, bases_modules_s::img_Call, IMG_CLEANUPIMAGE, IMG_GETINFO, IMG_INITIMAGE, ImageInfo_s::maxheight, ImageInfo_s::maxwidth, ImageInfo_s::minheight, ImageInfo_s::minwidth, NULL, TAG_DONE, TAG_GADGET_OBJECT, TAG_GADGET_RECT, tag_GetTagData, TAG_ICO_IMAGENAME, TAG_IMG_APP, TAG_IMG_IMAGENAME, TAG_IMG_IMGINFO, TAG_IMG_OBJECT, u32, and Rect_t::width.

void init_icon_class u32    module [static]
 

Definition at line 339 of file gadget_Icon.c.

References CLASS_ICON_ID, CLASS_ICON_NAME, bases_modules_s::gadget_Call, GADGET_REGISTER_CLASS, GADSTF_NORMAL, icon_gadget_event_handler, NULL, TAG_DONE, TAG_GADGET_BINDING, TAG_GADGET_CLASS_ID, TAG_GADGET_COLOR_NAMES, TAG_GADGET_CUSTOM_NAMES, TAG_GADGET_EVENT_HANDLER, TAG_GADGET_GADGET_EVENT_HANDLER, TAG_GADGET_GADGET_SIZE, TAG_GADGET_INPUT_EVENT_HANDLER, TAG_GADGET_METHODS, TAG_GADGET_MODULE, TAG_GADGET_NAME, TAG_GADGET_STATE_MASK, and u32.

Referenced by module_Init.

EXPORT int module_Init u32    module,
bases_Modules_t   bases
 

Definition at line 358 of file gadget_Icon.c.

References EXPORT, init_icon_class, and u32.

VERSION "Icon.gadget"   ,
 ,
 ,
"Gergely Gati"   ,
"g.gati @freemail.hu"   
 


Variable Documentation

bases_Modules_t* api [static]
 

Definition at line 57 of file gadget_Icon.c.

gadget_Binding_t binding[] [static]
 

Initial value:

Definition at line 67 of file gadget_Icon.c.

gadget_Method_t methods[] [static]
 

Initial value:

{
  {"set_image",icon_set_image,0L},
  GADGET_METHOD_DONE
}

Definition at line 60 of file gadget_Icon.c.


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