2 * Acess2 GUIv4 (AxWin4)
3 * - By John Hodge (thePowersGang)
6 * - Client library interface header
8 #ifndef _LIBAXWIN4_AXWIN4_AXWIN_H_
9 #define _LIBAXWIN4_AXWIN4_AXWIN_H_
17 #include <acess/sys.h>
19 typedef struct sAxWin4_Window tAxWin4_Window;
21 // - Abstractions of core IPC methods
22 extern bool AxWin4_Connect(const char *URI);
24 extern bool AxWin4_WaitEventQueue(uint64_t Timeout);
25 extern bool AxWin4_WaitEventQueueSelect(int nFDs, fd_set *rfds, fd_set *wfds, fd_set *efds, uint64_t Timeout);
27 extern void AxWin4_GetScreenDimensions(unsigned int ScreenIndex, unsigned int *Width, unsigned int *Height);
29 extern tAxWin4_Window *AxWin4_CreateWindow(const char *Name);
30 extern void AxWin4_DestroyWindow(tAxWin4_Window *Window);
31 extern void AxWin4_ShowWindow(tAxWin4_Window *Window, bool Shown);
32 extern void AxWin4_SetWindowFlags(tAxWin4_Window *Window, unsigned int NewFlags);
33 extern void AxWin4_SetTitle(tAxWin4_Window *Window, const char *Title);
34 extern void AxWin4_MoveWindow(tAxWin4_Window *Window, int X, int Y);
35 extern void AxWin4_ResizeWindow(tAxWin4_Window *Window, unsigned int W, unsigned int H);
37 extern void AxWin4_DamageRect(tAxWin4_Window *Window, unsigned int X, unsigned int Y, unsigned int W, unsigned int H);
38 extern void* AxWin4_GetWindowBuffer(tAxWin4_Window *Window);
40 extern void AxWin4_DrawBitmap(tAxWin4_Window *Window, int X, int Y, unsigned int W, unsigned int H, void *Data);
42 #include "definitions.h"