Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gadget_SysSize.c File Reference

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

Include dependency graph for gadget_SysSize.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _sys_size

Functions

 VERSION ("SysSize.gadget", 1, 1,"Gergely Gati","g.gati @freemail.hu")
void sys_size_get_extent (Gadget_t *this, Extent_t *min, Extent_t *max)
void sys_size_layout (Gadget_t *this, Rect_t *rect)
void sys_size_suggest_extent (Gadget_t *this, Rect_t *rect)
int sys_size_input_event_handler (Gadget_t *gad, struct glw_Event *event)
int sys_size_init_gadget (Gadget_t *this, tag *taglist)
int sys_size_gadget_event_handler (Gadget_t *this, int event, tag *taglist)
void init_sys_size_class (u32 module)
EXPORT int module_Init (u32 module, bases_Modules_t *bases)

Variables

bases_Modules_tapi
gadget_Binding_t binding []


Function Documentation

void init_sys_size_class u32    module [static]
 

Definition at line 248 of file gadget_SysSize.c.

References CLASS_SYS_SIZE_ID, CLASS_SYS_SIZE_NAME, bases_modules_s::gadget_Call, GADGET_REGISTER_CLASS, GADSTF_NORMAL, NULL, sys_size_gadget_event_handler, sys_size_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 268 of file gadget_SysSize.c.

References EXPORT, init_sys_size_class, and u32.

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

Definition at line 189 of file gadget_SysSize.c.

References debug_Begin, debug_End, GADEV_DAMAGE, GADEV_DELETE_GADGET, GADEV_GET_EXTENT, GADEV_INIT_GADGET, GADEV_LAYOUT, GADEV_SUGGEST_EXTENT, max, min, NULL, sys_size_get_extent, sys_size_init_gadget, sys_size_layout, sys_size_suggest_extent, TAG_GAD_EXTMAX, TAG_GAD_EXTMIN, TAG_GAD_RECT, tag_GetTagData, and u32.

Referenced by init_sys_size_class.

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

Definition at line 73 of file gadget_SysSize.c.

References debug_Begin, debug_End, GADGET_MAXIMUM_SIZE, Extent_t::height, max, min, and Extent_t::width.

Referenced by sys_size_gadget_event_handler.

int sys_size_init_gadget Gadget_t   this,
tag   taglist
 

Definition at line 171 of file gadget_SysSize.c.

References debug_Begin, debug_End, _sys_size::position, tag_GetTagData, and TAG_SSZ_POSITION.

Referenced by sys_size_gadget_event_handler.

int sys_size_input_event_handler Gadget_t   gad,
struct glw_Event   event
[static]
 

Definition at line 133 of file gadget_SysSize.c.

References CBK_WINDOW_SIZE, glw_Event::data, debug_Begin, debug_End, glw_Event::event, bases_modules_s::gadget_Call, GADGET_CALLBACK, GADGET_REFRESH, bases_modules_s::glw_Call, Window_s::handle, TAG_DONE, TAG_GADGET_EVENT, TAG_GADGET_EVENT_DATA, TAG_GADGET_OBJECT, and Gadget_s::window.

Referenced by init_sys_size_class.

void sys_size_layout Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 94 of file gadget_SysSize.c.

References debug_Begin, and debug_End.

Referenced by sys_size_gadget_event_handler.

void sys_size_suggest_extent Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 125 of file gadget_SysSize.c.

References debug_Begin, and debug_End.

Referenced by sys_size_gadget_event_handler.

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


Variable Documentation

bases_Modules_t* api [static]
 

Definition at line 56 of file gadget_SysSize.c.

gadget_Binding_t binding[] [static]
 

Initial value:

Definition at line 59 of file gadget_SysSize.c.


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