Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

Client.h

Go to the documentation of this file.
00001 /*
00002  *    gui - [gega user interface] the flexible solution for user interface problems
00003  *    Copyright (C) 2002  Gergely Gati
00004  *
00005  *    This program is free software; you can redistribute it and/or modify
00006  *    it under the terms of the GNU General Public License as published by
00007  *    the Free Software Foundation; version 2 of the License.
00008  *
00009  *    This program is distributed in the hope that it will be useful,
00010  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *    GNU General Public License for more details.
00013  *
00014  *    You should have received a copy of the GNU General Public License
00015  *    along with this program; if not, write to the Free Software
00016  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  *    Gergely Gati
00019  *      email:           g.gati@freemail.hu
00020  *      AIM screenname:  GatiGergely
00021  *      ICQ number:      93131690
00022  *
00023  */
00024 #ifndef __CLIENT_H
00025 #define __CLIENT_H
00026 
00027 #include "Gui.h"
00028 #include "Window.h"
00029 
00030 
00031 #define CLIENT_DISCARD_EVENT    (~0L)
00032 
00033 
00034 int client_Init(u32 conn, int *byteorder);
00035 
00036 u32 client_CallSGadget(gui_App_t *app, Window_t *window, u32 gadget_id, u32 method, u32 firsttag, ...);
00037 u32 client_CallSGadgetTL(gui_App_t *app, Window_t *window, u32 gadget_id, u32 method, tag *taglist);
00038 u32 client_CallAGadget(gui_App_t *app, Window_t *window, u32 gadget_id, u32 method, u32 firsttag, ...);
00039 u32 client_CallAGadgetTL(gui_App_t *app, Window_t *window, u32 gadget_id, u32 method, tag *taglist);
00040 void client_SendCloseApp(u32 conn, gui_App_t *app);
00041 void client_WinSleep(gui_App_t *app, Window_t *win);
00042 void client_WinAwake(gui_App_t *app, Window_t *win);
00043 
00044 int client_ChangeSkin(gui_App_t *app, Window_t *win, char *skinname);
00045 
00046 int client_ChangeServer(gui_App_t *app, char *new_server);
00047 
00048 u32 client_TimerStart(gui_App_t *app, Window_t *win, u32 millisec, int flags, u32 userdata, int (*callback)(Window_t *,u32));
00049 void client_TimerHandler(u32 timer, u32 userdata);
00050 
00051 void client_CloseWindow(gui_App_t *app, Window_t *win);
00052 
00053 Window_t *client_OpenWindow(gui_App_t *app, Rect_t *rect, char *window_name, int (*event_handler)(gui_App_t *,Window_t *,u32,int,u32), u32 flags, u32 firsttag, ...);
00054 Window_t *client_OpenWindowTL(gui_App_t *app, Rect_t *rect, char *window_name, int (*event_handler)(gui_App_t *,Window_t *,u32,int,u32), u32 flags, tag *taglist);
00055 
00056 
00057 int client_CliProcessMessage(u32 conn, u32 userdata, struct glw_SockMsg *messg);
00058 
00059 #endif

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