Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

gadget_Dropdown.c File Reference

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

Include dependency graph for gadget_Dropdown.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _dropdown

Functions

 VERSION ("Dropdown.gadget", 1, 0,"Gergely Gati","g.gati @freemail.hu")
void dropdown_get_extent (Gadget_t *this, Extent_t *min, Extent_t *max)
void dropdown_layout (Gadget_t *this, Rect_t *rect)
int dropdown_event_handler (Gadget_t *this, Gadget_t *sender, int event, u32 event_data)
int dropdown_subwin_event_handler (gui_App_t *app, Window_t *win, u32 gadget_id, int event, u32 event_data)
int dropdown_input_event_handler (Gadget_t *gad, struct glw_Event *event)
int dropdown_init_gadget (Gadget_t *this, tag *taglist)
void dropdown_delete_gadget (Gadget_t *this)
int dropdown_gadget_event_handler (Gadget_t *this, int event, tag *taglist)
void init_dropdown_class (u32 module)
EXPORT int module_Init (u32 module, bases_Modules_t *bases)

Variables

bases_Modules_tapi
gadget_Binding_t binding []
char * color_names []
gadget_Check_t sub_checklist []
char empty [] = ""


Function Documentation

void dropdown_delete_gadget Gadget_t   this
 

Definition at line 248 of file gadget_Dropdown.c.

References debug_Begin, debug_End, empty, bases_modules_s::gui_Call, GUI_UNLOADSUBGADGETDESCRIPTOR, mem_free, NULL, TAG_DONE, and TAG_GUI_FILE.

Referenced by dropdown_gadget_event_handler.

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

Definition at line 132 of file gadget_Dropdown.c.

References CBK_GADGET_UP, debug_Begin, debug_End, and u32.

Referenced by init_dropdown_class.

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

Definition at line 259 of file gadget_Dropdown.c.

References debug_Begin, debug_End, dropdown_delete_gadget, dropdown_get_extent, dropdown_init_gadget, dropdown_layout, 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_GetTagData, and u32.

Referenced by init_dropdown_class.

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

Definition at line 90 of file gadget_Dropdown.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, TAG_DONE, TAG_GADGET_OBJECT, u32, and Extent_t::width.

Referenced by dropdown_gadget_event_handler.

int dropdown_init_gadget Gadget_t   this,
tag   taglist
 

Definition at line 228 of file gadget_Dropdown.c.

References Gadget_s::class_data, gadget_ClassData_t::class_name, common_strdup, debug_Begin, debug_End, empty, bases_modules_s::gui_Call, GUI_LOADSUBGADGETDESCRIPTOR, NULL, TAG_DONE, TAG_DRP_LABELS, tag_GetTagData, TAG_GUI_CLASS_NAME, TAG_GUI_WIN, u32, and Gadget_s::window.

Referenced by dropdown_gadget_event_handler.

int dropdown_input_event_handler Gadget_t   gad,
struct glw_Event   event
[static]
 

Definition at line 161 of file gadget_Dropdown.c.

References Window_s::app, CBK_GADGET_CLICKED, CBK_GADGET_DOWN, CBK_GADGET_UP, glw_Event::data, debug_Begin, debug_End, dropdown_subwin_event_handler, glw_Event::event, bases_modules_s::gadget_Call, GADGET_CALLBACK, bases_modules_s::glw_Call, bases_modules_s::gui_Call, GUI_ISINSIDE, Window_s::handle, Rect_t::height, Rect_t::left, glw_Event::mousex, glw_Event::mousey, Gadget_s::rect, TAG_DONE, TAG_GADGET_EVENT, TAG_GADGET_EVENT_DATA, TAG_GADGET_OBJECT, TAG_GUI_RECT, TAG_GUI_X, TAG_GUI_Y, TAG_WIN_APP, TAG_WIN_CHECKLIST, TAG_WIN_EVENT_HANDLER, TAG_WIN_FLAGS, TAG_WIN_GUI_FILE, TAG_WIN_NAME, TAG_WIN_PARENT, TAG_WIN_PXHEIGHT, TAG_WIN_PXLEFT, TAG_WIN_PXTOP, TAG_WIN_PXWIDTH, TAG_WIN_USERDATA, TAG_WIN_WINFLAGS, Rect_t::top, Rect_t::width, WIN_FLAGS_NOBORDER, Gadget_s::window, bases_modules_s::window_Call, and WINDOW_OPENWINDOW.

Referenced by init_dropdown_class.

void dropdown_layout Gadget_t   this,
Rect_t   rect
[static]
 

Definition at line 114 of file gadget_Dropdown.c.

References debug_Begin, debug_End, DRP_COL_TEXT, 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, TAG_DONE, TAG_GADGET_COLOR, TAG_GADGET_OBJECT, Rect_t::top, Rect_t::width, and Gadget_s::window.

Referenced by dropdown_gadget_event_handler.

int dropdown_subwin_event_handler gui_App_t   app,
Window_t   win,
u32    gadget_id,
int    event,
u32    event_data
[static]
 

Definition at line 153 of file gadget_Dropdown.c.

References CBK_GADGET_UP, CBK_WINDOW_INACTIVATED, TAG_DONE, TAG_WIN_OBJECT, u32, bases_modules_s::window_Call, and WINDOW_CLOSEWINDOW.

Referenced by dropdown_input_event_handler.

void init_dropdown_class u32    module [static]
 

Definition at line 344 of file gadget_Dropdown.c.

References CLASS_DROPDOWN_ID, CLASS_DROPDOWN_NAME, color_names, dropdown_event_handler, dropdown_gadget_event_handler, dropdown_input_event_handler, bases_modules_s::gadget_Call, GADGET_REGISTER_CLASS, GADSTF_FOCUSED, 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, and u32.

Referenced by module_Init.

EXPORT int module_Init u32    module,
bases_Modules_t   bases
 

Definition at line 362 of file gadget_Dropdown.c.

References EXPORT, init_dropdown_class, and u32.

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


Variable Documentation

bases_Modules_t* api [static]
 

Definition at line 58 of file gadget_Dropdown.c.

gadget_Binding_t binding[] [static]
 

Initial value:

Definition at line 61 of file gadget_Dropdown.c.

char* color_names[] [static]
 

Initial value:

{
  "text",
  NULL
}

Definition at line 67 of file gadget_Dropdown.c.

Referenced by init_dropdown_class.

char empty[] = "" [static]
 

Definition at line 81 of file gadget_Dropdown.c.

Referenced by dropdown_delete_gadget, and dropdown_init_gadget.

gadget_Check_t sub_checklist[] [static]
 

Initial value:

Definition at line 73 of file gadget_Dropdown.c.


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