Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gadget_Test.c File Reference

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

Include dependency graph for gadget_Test.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _test
struct  _test_class_data

Typedefs

typedef _test_class_data test_class_data

Functions

 VERSION ("Test.gadget", 1, 0,"Gergely Gati","g.gati @freemail.hu")
void test_get_extent (Gadget_t *this, Extent_t *min, Extent_t *max)
void test_layout (Gadget_t *this, Rect_t *rect)
int test_input_event_handler (Gadget_t *gad, struct glw_Event *event)
int test_init_gadget (Gadget_t *this, tag *taglist)
int test_gadget_event_handler (Gadget_t *this, int event, tag *taglist)
void init_test_class (u32 module)
EXPORT int module_Init (u32 module, bases_Modules_t *bases)

Variables

bases_Modules_tapi
gadget_Binding_t binding []
char * color_names []


Typedef Documentation

typedef struct _test_class_data test_class_data
 


Function Documentation

void init_test_class u32    module [static]
 

Definition at line 238 of file gadget_Test.c.

References CLASS_TEST_ID, CLASS_TEST_NAME, color_names, bases_modules_s::gadget_Call, GADGET_REGISTER_CLASS, GADSTF_NORMAL, GADSTF_PRESSED, 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, test_gadget_event_handler, test_input_event_handler, and u32.

Referenced by module_Init.

EXPORT int module_Init u32    module,
bases_Modules_t   bases
 

Definition at line 257 of file gadget_Test.c.

References EXPORT, init_test_class, and u32.

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

Definition at line 171 of file gadget_Test.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, TAG_GAD_EXTMAX, TAG_GAD_EXTMIN, TAG_GAD_RECT, TAG_GADGET_MEM, TAG_GADGET_SIZE, tag_GetTagData, test_get_extent, test_init_gadget, test_layout, u32, and u8.

Referenced by init_test_class.

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

Definition at line 80 of file gadget_Test.c.

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

Referenced by test_gadget_event_handler.

int test_init_gadget Gadget_t   this,
tag   taglist
 

Definition at line 159 of file gadget_Test.c.

References debug_Begin, debug_End, tag_GetTagData, and TAG_TST_COLOR.

Referenced by test_gadget_event_handler.

int test_input_event_handler Gadget_t   gad,
struct glw_Event   event
[static]
 

Definition at line 112 of file gadget_Test.c.

References CBK_GADGET_DOWN, CBK_GADGET_MOVE, CBK_GADGET_UP, glw_Event::data, debug_Begin, debug_End, glw_Event::event, bases_modules_s::gadget_Call, GADGET_CALLBACK, GADGET_REFRESH, TAG_DONE, TAG_GADGET_EVENT, TAG_GADGET_EVENT_DATA, and TAG_GADGET_OBJECT.

Referenced by init_test_class.

void test_layout Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 101 of file gadget_Test.c.

References debug_Begin, debug_End, bases_modules_s::glw_Call, Window_s::handle, Rect_t::height, Rect_t::left, TAG_DONE, Rect_t::top, Rect_t::width, and Gadget_s::window.

Referenced by test_gadget_event_handler.

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


Variable Documentation

bases_Modules_t* api [static]
 

Definition at line 54 of file gadget_Test.c.

gadget_Binding_t binding[] [static]
 

Initial value:

Definition at line 60 of file gadget_Test.c.

char* color_names[] [static]
 

Initial value:

{
  "inactive",
  "active",
  NULL
}

Definition at line 66 of file gadget_Test.c.

Referenced by init_test_class.


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