Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Window.h File Reference

#include "Bases.h"
#include "Tag.h"
#include "Gadget.h"
#include "Bitmap.h"

Include dependency graph for Window.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  Window_s

Defines

#define WIN_FLAGS_SLEEPPARENT   (1L<<0)
#define WIN_FLAGS_NOBORDER   (1L<<1)
#define TAG_WIN_TITLE   ((TAG_USER+1)|TAGT_STRING)
#define TAG_WIN_MIN_WIDTH   (TAG_USER+2)
#define TAG_WIN_MAX_WIDTH   (TAG_USER+3)
#define TAG_WIN_MIN_HEIGHT   (TAG_USER+4)
#define TAG_WIN_MAX_HEIGHT   (TAG_USER+5)
#define TAG_WIN_INIT_WIDTH   (TAG_USER+6)
#define TAG_WIN_INIT_HEIGHT   (TAG_USER+7)
#define TAG_WIN_FONTNAME   ((TAG_USER+8)|TAGT_STRING)
#define TAG_WIN_FONTSIZE   (TAG_USER+9)
#define TAG_WIN_FONTSTYLE   (TAG_USER+10)
#define TAG_WIN_FONTWEIGHT   (TAG_USER+11)
#define TAG_WIN_FONTDECORATION   (TAG_USER+12)
#define TAG_WIN_CHECKLIST   (TAG_USER+13)
#define TAG_WIN_PARENTWINDOW   ((TAG_USER+14)|TAGT_STRING)
#define TAG_WIN_SLEEP_PARENT   (TAG_USER+15)
#define TAG_WIN_USERDATA   (TAG_USER+16)
#define TAG_WIN_TOP   (TAG_USER+17)
#define TAG_WIN_BOTTOM   (TAG_USER+18)
#define TAG_WIN_LEFT   (TAG_USER+19)
#define TAG_WIN_RIGHT   (TAG_USER+20)
#define TAG_WIN_PXTOP   (TAG_USER+21)
#define TAG_WIN_PXLEFT   (TAG_USER+22)
#define TAG_WIN_PXWIDTH   (TAG_USER+23)
#define TAG_WIN_PXHEIGHT   (TAG_USER+24)
#define TAG_WIN_BITMAP   (TAG_USER+25)
#define TAG_WIN_GUI_FILE   ((TAG_USER+26)|TAGT_STRING)
#define TAG_WIN_OBJECT   (TAG_USER+27)
#define TAG_WIN_GADGET   (TAG_USER+28)
#define TAG_WIN_APP   (TAG_USER+29)
#define TAG_WIN_NAME   ((TAG_USER+30)|TAGT_STRING)
#define TAG_WIN_EVENT_HANDLER   (TAG_USER+31)
#define TAG_WIN_FLAGS   (TAG_USER+32)
#define TAG_WIN_PARENT   (TAG_USER+33)
#define TAG_WIN_PARENTDATA   (TAG_USER+34)
#define TAG_WIN_WINFLAGS   (TAG_USER+35)
#define TAG_WIN_SKINNAME   ((TAG_USER+36)|TAGT_STRING)
#define TAG_WIN_PIXELS   (TAG_USER+37)
#define TAG_WIN_RECT   (TAG_USER+38)
#define TAG_WIN_X   (TAG_USER+39)
#define TAG_WIN_Y   (TAG_USER+40)

Enumerations

enum  window_functions {
  WINDOW_REFRESHWINDOW = WINDOW_FUNCBASE, WINDOW_GETFOCUSEDGADGET, WINDOW_SETFOCUSEDGADGET, WINDOW_CLOSEWINDOW,
  WINDOW_OPENWINDOW, WINDOW_SETACTIVE, WINDOW_GETACTIVE, WINDOW_GETUSERDATA,
  WINDOW_CHANGESKIN, WINDOW_ADDMASK, WINDOW_FUNC_DONE
}

Functions

u32 window_Call (int function, u32 firsttag,...)
u32 window_CallTL (int function, tag *taglist)
u32 window_RefreshWindow (u32 firsttag,...)
u32 window_RefreshWindowTL (tag *taglist)
u32 window_GetFocusedGadget (u32 firsttag,...)
u32 window_GetFocusedGadgetTL (tag *taglist)
u32 window_SetFocusedGadget (u32 firsttag,...)
u32 window_SetFocusedGadgetTL (tag *taglist)
u32 window_CloseWindow (u32 firsttag,...)
u32 window_CloseWindowTL (tag *taglist)
u32 window_OpenWindow (u32 firsttag,...)
u32 window_OpenWindowTL (tag *taglist)
u32 window_SetActive (u32 firsttag,...)
u32 window_SetActiveTL (tag *taglist)
u32 window_GetActive (u32 firsttag,...)
u32 window_GetActiveTL (tag *taglist)
u32 window_GetUserdata (u32 firsttag,...)
u32 window_GetUserdataTL (tag *taglist)
u32 window_ChangeSkin (u32 firsttag,...)
u32 window_ChangeSkinTL (tag *taglist)
u32 window_AddMask (u32 firsttag,...)
u32 window_AddMaskTL (tag *taglist)
int window_Init (void)
void window_CleanUp (void)
int window_WindowEvent (Window_t *window, u32 gadget_id, int event, u32 event_data)
void window_CloseAllWindows (gui_App_t *app)
int window_DamageWindow (Window_t *win, Rect_t *rect)
int window_IsSleep (Window_t *win)
Skin_twindow_GetSkin (Window_t *win)
gui_App_twindow_GetApp (Window_t *win)
Bitmap_twindow_GetMask (Window_t *win)
u32 window_GetConnection (Window_t *win)
Gadget_twindow_GetRootGadget (Window_t *win)
List_twindow_GetTimerList (Window_t *win)


Define Documentation

#define TAG_WIN_APP   (TAG_USER+29)
 

Definition at line 89 of file Window.h.

Referenced by dropdown_input_event_handler, net_SerProcessMessage, and window_OpenWindowTL.

#define TAG_WIN_BITMAP   (TAG_USER+25)
 

Definition at line 85 of file Window.h.

Referenced by bordered_RenderImgOrCol, and window_AddMaskTL.

#define TAG_WIN_BOTTOM   (TAG_USER+18)
 

Definition at line 78 of file Window.h.

Referenced by app_Init, and window_OpenWindowTL.

#define TAG_WIN_CHECKLIST   (TAG_USER+13)
 

Definition at line 73 of file Window.h.

Referenced by app_Init, client_CliSRq_OpenWindowTL, dropdown_input_event_handler, net_SerCreateCheckList, net_SerDeleteCheckList, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_EVENT_HANDLER   (TAG_USER+31)
 

Definition at line 91 of file Window.h.

Referenced by dropdown_input_event_handler, net_SerProcessMessage, and window_OpenWindowTL.

#define TAG_WIN_FLAGS   (TAG_USER+32)
 

Definition at line 92 of file Window.h.

Referenced by dropdown_input_event_handler, net_SerProcessMessage, and window_OpenWindowTL.

#define TAG_WIN_FONTDECORATION   (TAG_USER+12)
 

Definition at line 72 of file Window.h.

#define TAG_WIN_FONTNAME   ((TAG_USER+8)|TAGT_STRING)
 

Definition at line 68 of file Window.h.

Referenced by app_Init, and test_event_handler.

#define TAG_WIN_FONTSIZE   (TAG_USER+9)
 

Definition at line 69 of file Window.h.

Referenced by app_Init, and test_event_handler.

#define TAG_WIN_FONTSTYLE   (TAG_USER+10)
 

Definition at line 70 of file Window.h.

#define TAG_WIN_FONTWEIGHT   (TAG_USER+11)
 

Definition at line 71 of file Window.h.

#define TAG_WIN_GADGET   (TAG_USER+28)
 

Definition at line 88 of file Window.h.

Referenced by button_input_event_handler, scroller_input_event_handler, sys_close_input_event_handler, window_SetActiveTL, and window_SetFocusedGadgetTL.

#define TAG_WIN_GUI_FILE   ((TAG_USER+26)|TAGT_STRING)
 

Definition at line 86 of file Window.h.

Referenced by dropdown_input_event_handler, and window_OpenWindowTL.

#define TAG_WIN_INIT_HEIGHT   (TAG_USER+7)
 

Definition at line 67 of file Window.h.

#define TAG_WIN_INIT_WIDTH   (TAG_USER+6)
 

Definition at line 66 of file Window.h.

#define TAG_WIN_LEFT   (TAG_USER+19)
 

Definition at line 79 of file Window.h.

Referenced by app_Init, and window_OpenWindowTL.

#define TAG_WIN_MAX_HEIGHT   (TAG_USER+5)
 

Definition at line 65 of file Window.h.

#define TAG_WIN_MAX_WIDTH   (TAG_USER+3)
 

Definition at line 63 of file Window.h.

#define TAG_WIN_MIN_HEIGHT   (TAG_USER+4)
 

Definition at line 64 of file Window.h.

#define TAG_WIN_MIN_WIDTH   (TAG_USER+2)
 

Definition at line 62 of file Window.h.

#define TAG_WIN_NAME   ((TAG_USER+30)|TAGT_STRING)
 

Definition at line 90 of file Window.h.

Referenced by dropdown_input_event_handler, net_SerProcessMessage, and window_OpenWindowTL.

#define TAG_WIN_OBJECT   (TAG_USER+27)
 

Definition at line 87 of file Window.h.

Referenced by bordered_RenderImgOrCol, button_input_event_handler, dropdown_subwin_event_handler, gui_Event, net_SerProcessMessage, scroller_input_event_handler, sys_close_input_event_handler, window_AddMaskTL, window_ChangeSkinTL, window_CloseAllWindows, window_CloseWindowTL, window_GetActiveTL, window_GetFocusedGadgetTL, window_GetUserdataTL, window_OpenWindowTL, window_RefreshWindowTL, window_SetActiveTL, and window_SetFocusedGadgetTL.

#define TAG_WIN_PARENT   (TAG_USER+33)
 

Definition at line 93 of file Window.h.

Referenced by dropdown_input_event_handler, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_PARENTDATA   (TAG_USER+34)
 

Definition at line 94 of file Window.h.

Referenced by test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_PARENTWINDOW   ((TAG_USER+14)|TAGT_STRING)
 

Definition at line 74 of file Window.h.

#define TAG_WIN_PIXELS   (TAG_USER+37)
 

Definition at line 97 of file Window.h.

#define TAG_WIN_PXHEIGHT   (TAG_USER+24)
 

Definition at line 84 of file Window.h.

Referenced by dropdown_input_event_handler, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_PXLEFT   (TAG_USER+22)
 

Definition at line 82 of file Window.h.

Referenced by dropdown_input_event_handler, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_PXTOP   (TAG_USER+21)
 

Definition at line 81 of file Window.h.

Referenced by dropdown_input_event_handler, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_PXWIDTH   (TAG_USER+23)
 

Definition at line 83 of file Window.h.

Referenced by dropdown_input_event_handler, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_RECT   (TAG_USER+38)
 

Definition at line 98 of file Window.h.

#define TAG_WIN_RIGHT   (TAG_USER+20)
 

Definition at line 80 of file Window.h.

Referenced by app_Init, and window_OpenWindowTL.

#define TAG_WIN_SKINNAME   ((TAG_USER+36)|TAGT_STRING)
 

Definition at line 96 of file Window.h.

Referenced by net_SerProcessMessage, and window_ChangeSkinTL.

#define TAG_WIN_SLEEP_PARENT   (TAG_USER+15)
 

Definition at line 75 of file Window.h.

#define TAG_WIN_TITLE   ((TAG_USER+1)|TAGT_STRING)
 

Definition at line 61 of file Window.h.

Referenced by app_Init, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_TOP   (TAG_USER+17)
 

Definition at line 77 of file Window.h.

Referenced by app_Init, and window_OpenWindowTL.

#define TAG_WIN_USERDATA   (TAG_USER+16)
 

Definition at line 76 of file Window.h.

Referenced by app_Init, client_CliSRq_OpenWindowTL, dropdown_input_event_handler, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_WINFLAGS   (TAG_USER+35)
 

Definition at line 95 of file Window.h.

Referenced by dropdown_input_event_handler, test_event_handler, and window_OpenWindowTL.

#define TAG_WIN_X   (TAG_USER+39)
 

Definition at line 99 of file Window.h.

Referenced by bordered_RenderImgOrCol, and window_AddMaskTL.

#define TAG_WIN_Y   (TAG_USER+40)
 

Definition at line 100 of file Window.h.

Referenced by bordered_RenderImgOrCol, and window_AddMaskTL.

#define WIN_FLAGS_NOBORDER   (1L<<1)
 

Definition at line 58 of file Window.h.

Referenced by dropdown_input_event_handler, test_event_handler, window_ChangeSkinTL, and window_OpenWindowTL.

#define WIN_FLAGS_SLEEPPARENT   (1L<<0)
 

Definition at line 57 of file Window.h.

Referenced by test_event_handler, window_CloseWindowTL, and window_OpenWindowTL.


Enumeration Type Documentation

enum window_functions
 

Enumeration values:
WINDOW_REFRESHWINDOW 
WINDOW_GETFOCUSEDGADGET 
WINDOW_SETFOCUSEDGADGET 
WINDOW_CLOSEWINDOW 
WINDOW_OPENWINDOW 
WINDOW_SETACTIVE 
WINDOW_GETACTIVE 
WINDOW_GETUSERDATA 
WINDOW_CHANGESKIN 
WINDOW_ADDMASK 
WINDOW_FUNC_DONE 

Definition at line 131 of file Window.h.


Function Documentation

u32 window_AddMask u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *
TAG_WIN_X  int
TAG_WIN_Y  int
TAG_WIN_BITMAP  Bitmap_t *

Definition at line 137 of file Window.c.

References WINDOW_GETACTIVE, WINDOW_GETUSERDATA, WINDOW_OPENWINDOW, and WINDOW_SETACTIVE.

u32 window_AddMaskTL tag   taglist
 

Definition at line 141 of file Window.c.

References WINDOW_ADDMASK, WINDOW_CHANGESKIN, and WINDOW_FUNC_DONE.

Referenced by window_AddMask.

u32 window_Call int    function,
u32    firsttag,
...   
 

Definition at line 738 of file Window.c.

u32 window_CallTL int    function,
tag   taglist
 

Definition at line 742 of file Window.c.

Referenced by window_Call.

u32 window_ChangeSkin u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *
TAG_WIN_SKINNAME  char *

Definition at line 290 of file Window.c.

Referenced by net_SerProcessMessage.

u32 window_ChangeSkinTL tag   taglist
 

Definition at line 294 of file Window.c.

Referenced by window_ChangeSkin.

void window_CleanUp void   
 

Definition at line 802 of file Window.c.

void window_CloseAllWindows gui_App_t   app
 

Definition at line 683 of file Window.c.

Referenced by gui_ServerMain.

u32 window_CloseWindow u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *

Definition at line 620 of file Window.c.

Referenced by net_SerProcessMessage, window_CloseAllWindows, and window_OpenWindowTL.

u32 window_CloseWindowTL tag   taglist
 

Definition at line 624 of file Window.c.

Referenced by window_CloseWindow.

int window_DamageWindow Window_t   win,
Rect_t   rect
 

Definition at line 671 of file Window.c.

Referenced by gui_Event.

u32 window_GetActive u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *

Definition at line 264 of file Window.c.

u32 window_GetActiveTL tag   taglist
 

Definition at line 268 of file Window.c.

Referenced by window_GetActive.

gui_App_t* window_GetApp Window_t   win
 

Definition at line 712 of file Window.c.

Referenced by gxml_StartElement.

u32 window_GetConnection Window_t   win
 

Definition at line 720 of file Window.c.

Referenced by gadget_SetFont, gui_LoadSubgadgetDescriptorTL, and net_ServerWindowEventHandler.

u32 window_GetFocusedGadget u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *

Definition at line 109 of file Window.c.

References u32.

u32 window_GetFocusedGadgetTL tag   taglist
 

Definition at line 113 of file Window.c.

References u32.

Referenced by window_GetFocusedGadget.

Bitmap_t* window_GetMask Window_t   win
 

Definition at line 716 of file Window.c.

Gadget_t* window_GetRootGadget Window_t   win
 

Definition at line 728 of file Window.c.

Referenced by gadget_SearchInWindowTL, and gui_Event.

Skin_t* window_GetSkin Window_t   win
 

Definition at line 708 of file Window.c.

Referenced by gadget_DeleteOne, gadget_GetExtentTL, gadget_GetFontTL, gadget_GetRectTL, gadget_InitColorTable, gadget_LayoutTL, gadget_NewTL, gadget_RenderCustomTL, and gadget_SuggestExtentTL.

List_t* window_GetTimerList Window_t   win
 

Definition at line 732 of file Window.c.

Referenced by gui_TimerDelete, and gui_TimerStartTL.

u32 window_GetUserdata u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *

Definition at line 239 of file Window.c.

Referenced by gui_Event.

u32 window_GetUserdataTL tag   taglist
 

Definition at line 243 of file Window.c.

Referenced by window_GetUserdata.

int window_Init void   
 

Definition at line 773 of file Window.c.

int window_IsSleep Window_t   win
 

Definition at line 724 of file Window.c.

Referenced by gui_Event.

u32 window_OpenWindow u32    firsttag,
...   
 

Parameters:
TAG_WIN_APP  gui_App_t *
TAG_WIN_NAME  char *
TAG_WIN_EVENT_HANDLER  int (*)(gui_App_t *,Window_t *,u32,int,u32)
TAG_WIN_FLAGS  u32
TAG_WIN_CHECKLIST  gadget_Check_t *
TAG_WIN_TITLE  char *
TAG_WIN_WINFLAGS  u32
TAG_WIN_PARENT  Window_t *
TAG_WIN_PARENTDATA  u32
TAG_WIN_NOBORDER  int
TAG_WIN_GUI_FILE  char *
TAG_WIN_USERDATA  u32
TAG_WIN_LEFT  int
TAG_WIN_RIGHT  int
TAG_WIN_TOP  int
TAG_WIN_BOTTOM  int
TAG_WIN_PXWIDTH  int
TAG_WIN_PXHEIGHT  int
TAG_WIN_PXTOP  int
TAG_WIN_PXLEFT  int

Definition at line 397 of file Window.c.

Referenced by net_SerProcessMessage.

u32 window_OpenWindowTL tag   taglist
 

Definition at line 401 of file Window.c.

Referenced by window_OpenWindow.

u32 window_RefreshWindow u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *

Definition at line 59 of file Window.c.

Referenced by gui_Event, window_ChangeSkinTL, and window_OpenWindowTL.

u32 window_RefreshWindowTL tag   taglist
 

Definition at line 63 of file Window.c.

Referenced by window_RefreshWindow.

u32 window_SetActive u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *
TAG_WIN_GADGET  Gadget_t *

Definition at line 206 of file Window.c.

u32 window_SetActiveTL tag   taglist
 

Definition at line 210 of file Window.c.

Referenced by window_SetActive.

u32 window_SetFocusedGadget u32    firsttag,
...   
 

Parameters:
TAG_WIN_OBJECT  Window_t *
TAG_WIN_GADGET  Gadget_t *

Definition at line 172 of file Window.c.

u32 window_SetFocusedGadgetTL tag   taglist
 

Definition at line 176 of file Window.c.

Referenced by window_SetFocusedGadget.

int window_WindowEvent Window_t   window,
u32    gadget_id,
int    event,
u32    event_data
 

Definition at line 701 of file Window.c.

Referenced by gadget_CallBackTL, gui_Event, net_SerProcessMessage, window_CloseWindowTL, and window_OpenWindowTL.


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