XenevaOS
Loading...
Searching...
No Matches
deodhai.h
Go to the documentation of this file.
1
30#ifndef __DEODHAI_H__
31#define __DEODHAI_H__
32
33#include <stdint.h>
34#include <chitralekha.h>
35
36#define DEODHAI_MESSAGE_CREATEWIN 50
37#define DEODHAI_MESSAGE_WINDESTROY 51
38#define DEODHAI_MESSAGE_BROADCAST_ICON 52
39#define DEODHAI_MESSAGE_WINDOW_BRING_FRONT 53
40#define DEODHAI_MESSAGE_WINDOW_HIDE 54
41#define DEODHAI_MESSAGE_GETWINDOW 55
42#define DEODHAI_MESSAGE_CLOSE_WINDOW 56
43#define DEODHAI_MESSAGE_SET_FLAGS 57
44#define DEODHAI_MESSAGE_CREATE_POPUP 58
45#define DEODHAI_MESSAGE_MOUSE_DBLCLK 59
46#define DEODHAI_MESSAGE_MOVE_WINDOW 60
47
48#define DEODHAI_REPLY_WINCREATED 150
49#define DEODHAI_REPLY_MOUSE_EVENT 151
50#define DEODHAI_REPLY_KEY_EVENT 152
51#define DEODHAI_REPLY_WINDOW_ID 153
52#define DEODHAI_REPLY_FOCUS_CHANGED 154
53#define DEODHAI_REPLY_WINDOW_CLOSED 156
54#define DEODHAI_REPLY_MOUSE_LEAVE 157
55#define DEODHAI_REPLY_TOUCH_EVENT 158
56
57#define DEODHAI_BROADCAST_WINCREATED 170
58#define DEODHAI_BROADCAST_WINDESTROYED 171
59#define DEODHAI_BROADCAST_ICON 174
60#define DEODHAI_BROADCAST_FOCUS_CHANGED 173
61
62#define HANDLE_TYPE_NORMAL_WINDOW 1
63#define HANDLE_TYPE_POPUP_WINDOW 2
64
65#pragma pack(push, 1)
72#pragma pack(pop)
73
74#pragma pack(push, 1)
75typedef struct _bmp_ {
76 unsigned short type;
77 unsigned int size;
78 unsigned short resv1;
79 unsigned short resv2;
80 unsigned int off_bits;
82
83typedef struct _info_ {
84 unsigned int biSize;
85 long biWidth;
86 long biHeight;
87 unsigned short biPlanes;
88 unsigned short biBitCount;
89 unsigned int biCompression;
90 unsigned int biSizeImage;
91 long biXPelsPerMeter;
92 long biYPelsPerMeter;
93 unsigned int biClrUsed;
94 unsigned int biClrImportant;
96#pragma pack(pop)
97
98#define AU_INPUT_MOUSE 1
99#define AU_INPUT_KEYBOARD 2
100#define AU_INPUT_TOUCH 3
101
102#ifdef ARCH_X64
103#pragma pack(push, 1)
104#endif
105/* Copied from kernel*/
106typedef struct _au_input_msg_ {
116
117#ifdef ARCH_X64
118#pragma pack(pop)
119#endif
120
121/*
122* DeodhaiAllocateNewHandle -- get a new window handle
123*/
126/*
127 * DeodhaiUpdateBits -- update specific deodhai bits
128 */
129extern void DeodhaiUpdateBits(bool window_update, bool skip);
130#endif
int int32_t
Definition acefiex.h:160
unsigned int uint32_t
Definition acefiex.h:163
unsigned char uint8_t
Definition acefiex.h:161
void DeodhaiUpdateBits(bool window_update, bool skip)
Definition deomain.cpp:1649
struct _bmp_ BMP
uint32_t DeodhaiAllocateNewHandle()
DeodhaiAllocateNewHandle – get a new window handle.
Definition deomain.cpp:127
ChCanvas * DeodhaiGetMainCanvas()
Definition deomain.cpp:1607
struct _rect_ Rect
struct _info_ BMPInfo
struct _au_input_msg_ AuInputMessage
Definition chitralekha.h:40
Definition devinput.h:55
uint32_t code
Definition devinput.h:60
uint32_t code3
Definition devinput.h:62
int32_t xpos
Definition devinput.h:57
int32_t ypos
Definition devinput.h:58
uint32_t code4
Definition devinput.h:63
uint32_t code1
Definition devinput.h:61
uint8_t type
Definition devinput.h:56
uint8_t button_state
Definition devinput.h:59
Definition bmp.h:33
unsigned short type
Definition bmp.h:34
unsigned int size
Definition bmp.h:35
unsigned short resv1
Definition bmp.h:36
unsigned int off_bits
Definition bmp.h:38
unsigned short resv2
Definition bmp.h:37
Definition bmp.h:41
unsigned int biClrUsed
Definition bmp.h:51
unsigned int biClrImportant
Definition bmp.h:52
long biWidth
Definition bmp.h:43
unsigned short biPlanes
Definition bmp.h:45
unsigned int biCompression
Definition bmp.h:47
unsigned int biSize
Definition bmp.h:42
unsigned short biBitCount
Definition bmp.h:46
unsigned int biSizeImage
Definition bmp.h:48
long biYPelsPerMeter
Definition bmp.h:50
long biHeight
Definition bmp.h:44
long biXPelsPerMeter
Definition bmp.h:49
Definition deodhai.h:66
int32_t w
Definition deodhai.h:69
int32_t h
Definition deodhai.h:70
int32_t x
Definition deodhai.h:67
int32_t y
Definition deodhai.h:68