Usermode/AxWin4 - Starting work on client-side library
[tpg/acess2.git] / Usermode / Libraries / libaxwin4.so_src / wm.cpp
1 /*
2  * AxWin4 Interface Library
3  * - By John Hodge (thePowersGang)
4  *
5  * wm.cpp
6  * - Window Management
7  */
8 #include <axwin4/axwin.h>
9 #include "include/common.hpp"
10 #include <ipc_proto.hpp>
11
12 namespace AxWin {
13
14 extern "C" tAxWin4_Window *AxWin4_CreateWindow(const char *Name)
15 {
16         // Allocate a window ID
17         // Create window structure locally
18         // Request creation of window
19 }
20
21 extern "C" void AxWin4_ShowWindow(tAxWin4_Window *Window)
22 {
23         CSerialiser     message;
24         message.WriteU16(Window->m_id);
25         message.WriteU16(IPC_WINATTR_SHOW);
26         message.WriteU8(1);
27         ::AxWin::SendMessage(message);
28 }
29
30 extern "C" void AxWin4_SetTitle(tAxWin4_Window *Window, const char *Title)
31 {
32         CSerialiser     message;
33         message.WriteU16(Window->m_id);
34         message.WriteU16(IPC_WINATTR_TITLE);
35         message.WriteString(Title);
36         ::AxWin::SendMessage(message);
37 }
38
39 };      // namespace AxWin
40

UCC git Repository :: git.ucc.asn.au