Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gadget_Scroller.c File Reference

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

Include dependency graph for gadget_Scroller.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _scroller

Functions

u32 scroller_set_property (Gadget_t *this_gadget, tag *taglist)
u32 scroller_get_property (Gadget_t *this_gadget, tag *taglist)
 VERSION ("Scroller.gadget", 1, 0,"Gergely Gati","g.gati @freemail.hu")
void scroller_get_extent (Gadget_t *this, Extent_t *min, Extent_t *max)
void scroller_layout (Gadget_t *this, Rect_t *rect)
int scroller_input_event_handler (Gadget_t *gad, struct glw_Event *event)
int scroller_init_gadget (Gadget_t *this, tag *taglist)
int scroller_gadget_event_handler (Gadget_t *this, int event, tag *taglist)
void init_scroller_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 * custom_names []


Function Documentation

void init_scroller_class u32    module [static]
 

Definition at line 335 of file gadget_Scroller.c.

References CLASS_SCROLLER_ID, CLASS_SCROLLER_NAME, custom_names, bases_modules_s::gadget_Call, GADGET_REGISTER_CLASS, GADSTF_NORMAL, GADSTF_PRESSED, NULL, scroller_gadget_event_handler, scroller_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 354 of file gadget_Scroller.c.

References EXPORT, init_scroller_class, and u32.

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

Definition at line 272 of file gadget_Scroller.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, scroller_get_extent, scroller_init_gadget, scroller_layout, TAG_GAD_EXTMAX, TAG_GAD_EXTMIN, TAG_GAD_RECT, TAG_GADGET_MEM, TAG_GADGET_SIZE, tag_GetTagData, u32, and u8.

Referenced by init_scroller_class.

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

Definition at line 130 of file gadget_Scroller.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, _scroller::orientation, _scroller::othersize, SCR_VERTICAL, TAG_DONE, TAG_GADGET_OBJECT, and Extent_t::width.

Referenced by scroller_gadget_event_handler.

u32 scroller_get_property Gadget_t   this_gadget,
tag   taglist
[static]
 

Definition at line 100 of file gadget_Scroller.c.

References debug_Begin, debug_End, _scroller::orientation, _scroller::othersize, _scroller::position, tag_GetTagData, TAG_SCR_ORIENTATION, TAG_SCR_OTHERSIZE, TAG_SCR_POSITION, TAG_SCR_TOTAL, TAG_SCR_VISIBLE, _scroller::total, u32, and _scroller::visible.

int scroller_init_gadget Gadget_t   this,
tag   taglist
 

Definition at line 249 of file gadget_Scroller.c.

References debug_Begin, debug_End, _scroller::orientation, _scroller::othersize, _scroller::position, tag_GetTagData, TAG_SCR_ORIENTATION, TAG_SCR_OTHERSIZE, TAG_SCR_POSITION, TAG_SCR_TOTAL, TAG_SCR_VISIBLE, _scroller::total, and _scroller::visible.

Referenced by scroller_gadget_event_handler.

int scroller_input_event_handler Gadget_t   gad,
struct glw_Event   event
[static]
 

Definition at line 178 of file gadget_Scroller.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_GET_STATE, GADGET_REFRESH, GADGET_SET_STATE, GADST_NORMAL, GADST_PRESSED, bases_modules_s::gui_Call, GUI_ISINSIDE, Rect_t::height, glw_Event::mousex, glw_Event::mousey, NULL, Gadget_s::rect, SCR_VERTICAL, TAG_DONE, TAG_GADGET_EVENT, TAG_GADGET_EVENT_DATA, TAG_GADGET_OBJECT, TAG_GADGET_STATE, TAG_GADGET_VISUAL, TAG_GUI_RECT, TAG_GUI_X, TAG_GUI_Y, TAG_WIN_GADGET, TAG_WIN_OBJECT, Rect_t::width, Gadget_s::window, bases_modules_s::window_Call, and WINDOW_SETACTIVE.

Referenced by init_scroller_class.

void scroller_layout Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 154 of file gadget_Scroller.c.

References debug_Begin, debug_End, _scroller::gad_left, _scroller::gad_top, bases_modules_s::gadget_Call, GADGET_GET_STATE, GADGET_RENDER_CUSTOM, GADST_NORMAL, Rect_t::height, _scroller::knob_rect, Rect_t::left, _scroller::orientation, _scroller::position, SCR_CUS_KNOBDOWN, SCR_CUS_KNOBUP, SCR_VERTICAL, TAG_DONE, TAG_GADGET_CUSTOM, TAG_GADGET_FLAGS, TAG_GADGET_OBJECT, TAG_GADGET_RECT, Rect_t::top, _scroller::total, _scroller::visible, and Rect_t::width.

Referenced by scroller_gadget_event_handler.

u32 scroller_set_property Gadget_t   this_gadget,
tag   taglist
[static]
 

Definition at line 85 of file gadget_Scroller.c.

References debug_Begin, debug_End, bases_modules_s::gadget_Call, GADGET_REFRESH, _scroller::position, TAG_DONE, TAG_GADGET_OBJECT, tag_GetTagData, TAG_SCR_POSITION, TAG_SCR_TOTAL, TAG_SCR_VISIBLE, _scroller::total, u32, and _scroller::visible.

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


Variable Documentation

bases_Modules_t* api [static]
 

Definition at line 55 of file gadget_Scroller.c.

gadget_Binding_t binding[] [static]
 

Initial value:

Definition at line 67 of file gadget_Scroller.c.

char* custom_names[] [static]
 

Initial value:

{
  "knob_up",
  "knob_down",
  NULL
}

Definition at line 77 of file gadget_Scroller.c.

Referenced by init_scroller_class.

gadget_Method_t methods[] [static]
 

Initial value:

{
  {"scroller_set_property",scroller_set_property,0L},
  {"scroller_get_property",scroller_get_property,0L},
  GADGET_METHOD_DONE
}

Definition at line 59 of file gadget_Scroller.c.


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