Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gadget_ScrollBar.c File Reference

#include <stdlib.h>
#include "Tag.h"
#include "macros.h"
#include "debug.h"
#include "classes.h"
#include "Bases.h"
#include "Module.h"
#include "Memory.h"
#include "xml_Gui.h"
#include "Common.h"
#include "gadgets/gadget_ScrollBar.h"
#include "gadgets/gadget_Scroller.h"
#include "gadgets/gadget_Icon.h"
#include "gadgets/gadget_Group.h"

Include dependency graph for gadget_ScrollBar.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _scrollbar

Functions

 VERSION ("ScrollBar.gadget", 1, 0,"Gergely Gati","g.gati @freemail.hu")
void scrollbar_get_extent (Gadget_t *this, Extent_t *min, Extent_t *max)
void scrollbar_layout (Gadget_t *this, Rect_t *rect)
int scrollbar_event_handler (Gadget_t *this, Gadget_t *sender, int event, u32 event_data)
int scrollbar_init_gadget (Gadget_t *this, tag *taglist)
void scrollbar_suggest_extent (Gadget_t *this, Rect_t *rect)
int scrollbar_gadget_event_handler (Gadget_t *this, int event, tag *taglist)
void init_scrollbar_class (u32 module)
EXPORT int module_Init (u32 module, bases_Modules_t *bases)

Variables

bases_Modules_tapi
gadget_Binding_t binding []
gadget_Check_t checklist []


Function Documentation

void init_scrollbar_class u32    module [static]
 

Definition at line 260 of file gadget_ScrollBar.c.

References CLASS_SCROLLBAR_ID, CLASS_SCROLLBAR_NAME, bases_modules_s::gadget_Call, GADGET_REGISTER_CLASS, GADSTF_NORMAL, NULL, scrollbar_event_handler, scrollbar_gadget_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 279 of file gadget_ScrollBar.c.

References EXPORT, init_scrollbar_class, and u32.

int scrollbar_event_handler Gadget_t   this,
Gadget_t   sender,
int    event,
u32    event_data
 

Definition at line 108 of file gadget_ScrollBar.c.

References CBK_GADGET_UP, debug_Begin, debug_End, and u32.

Referenced by init_scrollbar_class.

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

Definition at line 185 of file gadget_ScrollBar.c.

References debug_Begin, debug_End, GADEV_DAMAGE, GADEV_DELETE_GADGET, GADEV_GET_EXTENT, GADEV_INIT_GADGET, GADEV_LAYOUT, GADEV_RESTORE, GADEV_SAVE, GADEV_SUGGEST_EXTENT, max, min, NULL, scrollbar_get_extent, scrollbar_init_gadget, scrollbar_layout, scrollbar_suggest_extent, TAG_GAD_EXTMAX, TAG_GAD_EXTMIN, TAG_GAD_RECT, TAG_GADGET_MEM, TAG_GADGET_SIZE, tag_GetTagData, u32, and u8.

Referenced by init_scrollbar_class.

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

Definition at line 80 of file gadget_ScrollBar.c.

References debug_Begin, debug_End, bases_modules_s::gadget_Call, GADGET_GET_EXTENT, GADGET_SEARCH, GADGET_SUBGADGET_BASE, max, min, TAG_DONE, TAG_GADGET_GADGET_ID, TAG_GADGET_MAX, TAG_GADGET_MIN, TAG_GADGET_OBJECT, and TAG_GADGET_ROOT.

Referenced by scrollbar_gadget_event_handler.

int scrollbar_init_gadget Gadget_t   this,
tag   taglist
[static]
 

Definition at line 144 of file gadget_ScrollBar.c.

References Gadget_s::class_data, gadget_ClassData_t::class_name, debug_Begin, debug_End, GADGET_ATTACH, bases_modules_s::gadget_Call, bases_modules_s::gui_Call, GUI_LOADSUBGADGETDESCRIPTOR, GUI_UNLOADSUBGADGETDESCRIPTOR, bases_modules_s::gxml_Call, GXML_CREATEGADGETTREE, NULL, TAG_DONE, TAG_GADGET_NEW_CHILD, TAG_GADGET_NEW_PARENT, TAG_GUI_CLASS_NAME, TAG_GUI_FILE, TAG_GUI_WIN, TAG_GXML_APPNAME, TAG_GXML_CHECK, TAG_GXML_LAYOUTNAME, TAG_GXML_LOCALE, TAG_GXML_TYPE, TAG_GXML_WINDOW, TAG_GXML_XML_FILE, and Gadget_s::window.

Referenced by scrollbar_gadget_event_handler.

void scrollbar_layout Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 98 of file gadget_ScrollBar.c.

References debug_Begin, debug_End, bases_modules_s::gadget_Call, GADGET_LAYOUT, TAG_DONE, TAG_GADGET_OBJECT, and TAG_GADGET_RECT.

Referenced by scrollbar_gadget_event_handler.

void scrollbar_suggest_extent Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 175 of file gadget_ScrollBar.c.

References debug_Begin, debug_End, bases_modules_s::gadget_Call, GADGET_SUGGEST_EXTENT, TAG_DONE, TAG_GADGET_OBJECT, and TAG_GADGET_RECT.

Referenced by scrollbar_gadget_event_handler.

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


Variable Documentation

bases_Modules_t* api [static]
 

Definition at line 57 of file gadget_ScrollBar.c.

gadget_Binding_t binding[] [static]
 

Initial value:

Definition at line 61 of file gadget_ScrollBar.c.

gadget_Check_t checklist[] [static]
 

Initial value:

Definition at line 66 of file gadget_ScrollBar.c.


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