X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Finclude%2Fwm.h;h=d35a46242b123d6438984adc46b951e8def1a2dd;hb=cee7338738f1a68c7eb7b956cab8d9fb83f95714;hp=35e7e21211b08b06db688e53c290c21e957f8af1;hpb=086346323aae470047d375a12104872c899056d6;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/include/wm.h b/Usermode/Applications/axwin3_src/WM/include/wm.h index 35e7e212..d35a4624 100644 --- a/Usermode/Applications/axwin3_src/WM/include/wm.h +++ b/Usermode/Applications/axwin3_src/WM/include/wm.h @@ -8,6 +8,9 @@ #ifndef _WM_H_ #define _WM_H_ +#include +#include + #include "image.h" // === CONSTANTS === @@ -17,8 +20,10 @@ */ //! Render the window #define WINFLAG_SHOW 0x00000001 -//! Window isn't contained within the parent/owner -#define WINFLAG_NONNESTED 0x00000002 +//! Don't decoratate even if root +#define WINFLAG_NODECORATE 0x00000002 +//! Window takes up all of screen +#define WINFLAG_MAXIMIZED 0x00000005 //! Window contents are valid #define WINFLAG_CLEAN 0x00000040 //! All child windows are un-changed @@ -41,12 +46,14 @@ typedef struct sIPC_Client tIPC_Client; // --- Management extern tWindow *WM_CreateWindow(tWindow *Parent, tIPC_Client *Client, uint32_t ID, int Flags, const char *Renderer); extern void WM_Invalidate(tWindow *Window); +extern void WM_SetWindowTitle(tWindow *Window, const char *Title); +extern void WM_FocusWindow(tWindow *Destination); +extern void WM_RaiseWindow(tWindow *Window); extern void WM_ShowWindow(tWindow *Window, int bShow); +extern void WM_DecorateWindow(tWindow *Window, int bDecorate); extern int WM_ResizeWindow(tWindow *Window, int W, int H); extern int WM_MoveWindow(tWindow *Window, int X, int Y); extern int WM_SendMessage(tWindow *Source, tWindow *Dest, int MessageID, int Length, void *Data); -extern void WM_GiveFocus(tWindow *Destination); -extern void WM_RaiseWindow(tWindow *Window); // --- Rendering extern void WM_Render_FillRect(tWindow *Window, int X, int Y, int W, int H, tColour Colour); extern void WM_Render_DrawRect(tWindow *Window, int X, int Y, int W, int H, tColour Colour);