XenevaOS
Loading...
Searching...
No Matches
XenevaOS
Process
Deodhai
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)
59
typedef
struct
_win_info_
{
60
Rect
rect
[256];
61
uint32_t
rect_count
;
62
bool
dirty
;
63
bool
updateEntireWindow
;
64
int
x
;
65
int
y
;
66
int
width
;
67
int
height
;
68
bool
alpha
;
69
bool
hide
;
70
double
alphaValue
;
71
bool
windowReady
;
72
}
WinSharedInfo
;
73
//#pragma pack(pop)
74
75
typedef
struct
_win_
{
76
uint16_t
flags
;
77
uint16_t
ownerId
;
78
uint32_t
*
backBuffer
;
79
uint32_t
*
sharedInfo
;
80
uint32_t
*
shadowBuffers
;
81
uint16_t
shWinKey
;
82
uint16_t
backBufferKey
;
83
uint32_t
handle
;
84
int
dragX
;
85
int
dragY
;
86
int
resz_h
;
87
int
resz_b
;
88
bool
markForClose
;
89
uint8_t
animFrameCount
;
90
int
animAlphaVal
;
91
bool
animdirection
;
92
char
*
title
;
93
struct
_win_
*
firstPopupWin
;
94
struct
_win_
*
lastPopupWin
;
95
struct
_win_
*
parent
;
96
_win_
*
next
;
97
_win_
*
prev
;
98
}
Window
;
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
*/
106
extern
uint32_t
*
CreateSharedWinSpace
(
uint16_t
*shkey,
uint16_t
ownerId
);
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
*/
114
extern
void
*
CreateNewBackBuffer
(
uint16_t
ownerId
,
uint32_t
sz,
uint16_t
*key);
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
*/
125
extern
Window
*
CreateWindow
(
int
x,
int
y,
int
w,
int
h,
uint16_t
flags
,
uint16_t
ownerId
,
char
*
title
);
126
#endif
list.h
CreateSharedWinSpace
uint32_t * CreateSharedWinSpace(uint16_t *shkey, uint16_t ownerId)
Definition
window.cpp:47
WinSharedInfo
struct _win_info_ WinSharedInfo
CreateNewBackBuffer
void * CreateNewBackBuffer(uint16_t ownerId, uint32_t sz, uint16_t *key)
Definition
window.cpp:62
Window
struct _win_ Window
CreateWindow
Window * CreateWindow(int x, int y, int w, int h, uint16_t flags, uint16_t ownerId, char *title)
Definition
window.cpp:92
uint32_t
unsigned int uint32_t
Definition
acefiex.h:163
uint8_t
unsigned char uint8_t
Definition
acefiex.h:161
uint16_t
unsigned short int uint16_t
Definition
acefiex.h:162
deodhai.h
_rect_
Definition
deodhai.h:69
_win_
Definition
window.h:75
_win_::ownerId
uint16_t ownerId
Definition
window.h:77
_win_::parent
struct _win_ * parent
Definition
window.h:95
_win_::firstPopupWin
struct _win_ * firstPopupWin
Definition
window.h:93
_win_::resz_h
int resz_h
Definition
window.h:86
_win_::animdirection
bool animdirection
Definition
window.h:91
_win_::prev
_win_ * prev
Definition
window.h:97
_win_::flags
uint16_t flags
Definition
window.h:76
_win_::shWinKey
uint16_t shWinKey
Definition
window.h:81
_win_::backBuffer
uint32_t * backBuffer
Definition
window.h:78
_win_::dragY
int dragY
Definition
window.h:85
_win_::lastPopupWin
struct _win_ * lastPopupWin
Definition
window.h:94
_win_::resz_b
int resz_b
Definition
window.h:87
_win_::animAlphaVal
int animAlphaVal
Definition
window.h:90
_win_::backBufferKey
uint16_t backBufferKey
Definition
window.h:82
_win_::shadowBuffers
uint32_t * shadowBuffers
Definition
window.h:80
_win_::next
_win_ * next
Definition
window.h:96
_win_::handle
uint32_t handle
Definition
window.h:83
_win_::markForClose
bool markForClose
Definition
window.h:88
_win_::dragX
int dragX
Definition
window.h:84
_win_::title
char * title
Definition
window.h:92
_win_::sharedInfo
uint32_t * sharedInfo
Definition
window.h:79
_win_::animFrameCount
uint8_t animFrameCount
Definition
window.h:89
_win_info_
Definition
window.h:59
_win_info_::rect
Rect rect[256]
Definition
window.h:60
_win_info_::height
int height
Definition
window.h:67
_win_info_::alpha
bool alpha
Definition
window.h:68
_win_info_::rect_count
uint32_t rect_count
Definition
window.h:61
_win_info_::dirty
bool dirty
Definition
window.h:62
_win_info_::y
int y
Definition
window.h:65
_win_info_::updateEntireWindow
bool updateEntireWindow
Definition
window.h:63
_win_info_::width
int width
Definition
window.h:66
_win_info_::alphaValue
double alphaValue
Definition
window.h:70
_win_info_::hide
bool hide
Definition
window.h:69
_win_info_::x
int x
Definition
window.h:64
_win_info_::windowReady
bool windowReady
Definition
window.h:71
Generated by
1.9.8