Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gadget_SysDrag.c File Reference

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

Include dependency graph for gadget_SysDrag.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _sys_drag

Functions

 VERSION ("SysDrag.gadget", 1, 0,"Gergely Gati","g.gati @freemail.hu")
u32 sys_drag_set_title (Gadget_t *this_gadget, tag *taglist)
void sys_drag_get_extent (Gadget_t *this, Extent_t *min, Extent_t *max)
void sys_drag_layout (Gadget_t *this, Rect_t *rect)
int sys_drag_input_event_handler (Gadget_t *gad, struct glw_Event *event)
int sys_drag_init_gadget (Gadget_t *this, tag *taglist)
void sys_drag_delete_gadget (Gadget_t *this)
int sys_drag_gadget_event_handler (Gadget_t *this, int event, tag *taglist)
void init_sys_drag_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 []
char * color_names []


Function Documentation

void init_sys_drag_class u32    module [static]
 

Definition at line 301 of file gadget_SysDrag.c.

References CLASS_SYS_DRAG_ID, CLASS_SYS_DRAG_NAME, color_names, bases_modules_s::gadget_Call, GADGET_REGISTER_CLASS, GADSTF_NORMAL, NULL, sys_drag_gadget_event_handler, sys_drag_input_event_handler, 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 320 of file gadget_SysDrag.c.

References EXPORT, init_sys_drag_class, and u32.

void sys_drag_delete_gadget Gadget_t   this [static]
 

Definition at line 196 of file gadget_SysDrag.c.

References debug_Begin, debug_End, mem_free, and NULL.

Referenced by sys_drag_gadget_event_handler.

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

Definition at line 233 of file gadget_SysDrag.c.

References debug_Begin, debug_End, GADEV_DAMAGE, GADEV_DELETE_GADGET, GADEV_GET_EXTENT, GADEV_INIT_GADGET, GADEV_LAYOUT, GADEV_RESTORE, GADEV_SAVE, max, min, NULL, sys_drag_delete_gadget, sys_drag_get_extent, sys_drag_init_gadget, sys_drag_layout, TAG_GAD_EXTMAX, TAG_GAD_EXTMIN, TAG_GAD_RECT, TAG_GADGET_MEM, TAG_GADGET_SIZE, tag_GetTagData, u32, and u8.

Referenced by init_sys_drag_class.

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

Definition at line 87 of file gadget_SysDrag.c.

References debug_Begin, debug_End, bases_modules_s::gadget_Call, GADGET_GET_FONT, GADGET_MAXIMUM_SIZE, bases_modules_s::glw_Call, Extent_t::height, max, min, NULL, TAG_DONE, TAG_GADGET_OBJECT, and Extent_t::width.

Referenced by sys_drag_gadget_event_handler.

int sys_drag_init_gadget Gadget_t   this,
tag   taglist
[static]
 

Definition at line 177 of file gadget_SysDrag.c.

References common_strdup, debug_Begin, debug_End, NULL, tag_GetTagData, TAG_SSZ_OPTIMAL, and TAG_SSZ_TITLE.

Referenced by sys_drag_gadget_event_handler.

int sys_drag_input_event_handler Gadget_t   gad,
struct glw_Event   event
[static]
 

Definition at line 147 of file gadget_SysDrag.c.

References glw_Event::data, debug_Begin, debug_End, glw_Event::event, bases_modules_s::glw_Call, Window_s::handle, TAG_DONE, and Gadget_s::window.

Referenced by init_sys_drag_class.

void sys_drag_layout Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 118 of file gadget_SysDrag.c.

References debug_Begin, debug_End, bases_modules_s::gadget_Call, GADGET_GET_COLOR, GADGET_GET_FONT, bases_modules_s::glw_Call, Window_s::handle, Rect_t::height, Rect_t::left, NULL, SSZ_COL_TEXT, TAG_DONE, TAG_GADGET_COLOR, TAG_GADGET_OBJECT, Rect_t::top, Rect_t::width, and Gadget_s::window.

Referenced by sys_drag_gadget_event_handler.

u32 sys_drag_set_title Gadget_t   this_gadget,
tag   taglist
[static]
 

Definition at line 206 of file gadget_SysDrag.c.

References common_strdup, debug_Begin, debug_End, bases_modules_s::gadget_Call, GADGET_FATHER, GADGET_GET_FONT, GADGET_REFRESH, bases_modules_s::glw_Call, mem_free, NULL, TAG_DONE, TAG_GADGET_OBJECT, tag_GetTagData, TAG_SSZ_TITLE, and u32.

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


Variable Documentation

bases_Modules_t* api [static]
 

Definition at line 54 of file gadget_SysDrag.c.

gadget_Binding_t binding[] [static]
 

Initial value:

Definition at line 67 of file gadget_SysDrag.c.

char* color_names[] [static]
 

Initial value:

{
  "text",
  NULL
}

Definition at line 74 of file gadget_SysDrag.c.

Referenced by init_sys_drag_class.

gadget_Method_t methods[] [static]
 

Initial value:

{
  {"set_title",sys_drag_set_title,0L},
  GADGET_METHOD_DONE
}

Definition at line 60 of file gadget_SysDrag.c.


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