XenevaOS
Loading...
Searching...
No Matches
window.h
Go to the documentation of this file.
1
30#ifndef __WINDOW_H__
31#define __WINDOW_H__
32
33#include <stdint.h>
34#include <widgets\list.h>
35#include "deodhai.h"
36
37#define WINDOW_FLAG_MOVABLE (1<<0)
38#define WINDOW_FLAG_STATIC (1<<1)
39#define WINDOW_FLAG_ALWAYS_ON_TOP (1<<2)
40#define WINDOW_FLAG_NON_RESIZABLE (1<<3)
41#define WINDOW_FLAG_BROADCAST_LISTENER (1<<4)
42#define WINDOW_FLAG_ANIMATED (1<<5)
43#define WINDOW_FLAG_BLOCKED (1<<6)
44#define WINDOW_FLAG_MESSAGEBOX (1<<7)
45#define WINDOW_FLAG_DIALOGBOX (1<<8)
46#define WINDOW_FLAG_ANIMATION_FADE_IN (1<<9)
47#define WINDOW_FLAG_ANIMATION_FADE_OUT (1<<10)
48#define WINDOW_FLAG_POPUP (1<<11)
49
50#ifdef SHADOW_ENABLED
51#define SHADOW_SIZE 11
52#define SHADOW_COLOR 0xFF827474
53#else
54#define SHADOW_SIZE 0 //11
55#define SHADOW_COLOR 0
56#endif
57
58//#pragma pack(push,1)
73//#pragma pack(pop)
74
99
100
101/*
102* CreateSharedWinSpace -- Create a shared window space
103* @param shkey -- location where to store the window key
104* @param ownerId -- owning process id
105*/
107
108/*
109* CreateNewBackBuffer --Create a back buffer window
110* @param ownerId -- owner id
111* @param sz -- Size of the buffer
112* @param key -- location where to store the buffer key
113*/
115/*
116* CreateWindow -- create a new window
117* @param x -- X position of the window
118* @param y -- Y position of the window
119* @param w -- Width of the window
120* @param h -- Height of the window
121* @param flags -- Flags for thr window
122* @param ownerId -- process owner id of the window
123* @param title -- title of the window
124*/
125extern Window* CreateWindow(int x, int y, int w, int h, uint16_t flags, uint16_t ownerId, char* title);
126#endif
uint32_t * CreateSharedWinSpace(uint16_t *shkey, uint16_t ownerId)
Definition window.cpp:47
struct _win_info_ WinSharedInfo
void * CreateNewBackBuffer(uint16_t ownerId, uint32_t sz, uint16_t *key)
Definition window.cpp:62
struct _win_ Window
Window * CreateWindow(int x, int y, int w, int h, uint16_t flags, uint16_t ownerId, char *title)
Definition window.cpp:92
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161
unsigned short int uint16_t
Definition acefiex.h:162
Definition deodhai.h:69
Definition window.h:75
uint16_t ownerId
Definition window.h:77
struct _win_ * parent
Definition window.h:95
struct _win_ * firstPopupWin
Definition window.h:93
int resz_h
Definition window.h:86
bool animdirection
Definition window.h:91
_win_ * prev
Definition window.h:97
uint16_t flags
Definition window.h:76
uint16_t shWinKey
Definition window.h:81
uint32_t * backBuffer
Definition window.h:78
int dragY
Definition window.h:85
struct _win_ * lastPopupWin
Definition window.h:94
int resz_b
Definition window.h:87
int animAlphaVal
Definition window.h:90
uint16_t backBufferKey
Definition window.h:82
uint32_t * shadowBuffers
Definition window.h:80
_win_ * next
Definition window.h:96
uint32_t handle
Definition window.h:83
bool markForClose
Definition window.h:88
int dragX
Definition window.h:84
char * title
Definition window.h:92
uint32_t * sharedInfo
Definition window.h:79
uint8_t animFrameCount
Definition window.h:89
Definition window.h:59
Rect rect[256]
Definition window.h:60
int height
Definition window.h:67
bool alpha
Definition window.h:68
uint32_t rect_count
Definition window.h:61
bool dirty
Definition window.h:62
int y
Definition window.h:65
bool updateEntireWindow
Definition window.h:63
int width
Definition window.h:66
double alphaValue
Definition window.h:70
bool hide
Definition window.h:69
int x
Definition window.h:64
bool windowReady
Definition window.h:71