00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
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