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
37#define DEODHAI_MESSAGE_CREATEWIN 50
38#define DEODHAI_MESSAGE_WINDESTROY 51
39#define DEODHAI_MESSAGE_BROADCAST_ICON 52
40#define DEODHAI_MESSAGE_WINDOW_BRING_FRONT 53
41#define DEODHAI_MESSAGE_WINDOW_HIDE 54
42#define DEODHAI_MESSAGE_GETWINDOW 55
43#define DEODHAI_MESSAGE_CLOSE_WINDOW 56
44#define DEODHAI_MESSAGE_SET_FLAGS 57
45#define DEODHAI_MESSAGE_CREATE_POPUP 58
46#define DEODHAI_MESSAGE_MOUSE_DBLCLK 59
47#define DEODHAI_MESSAGE_MOVE_WINDOW 60
48
49#define DEODHAI_REPLY_WINCREATED 150
50#define DEODHAI_REPLY_MOUSE_EVENT 151
51#define DEODHAI_REPLY_KEY_EVENT 152
52#define DEODHAI_REPLY_WINDOW_ID 153
53#define DEODHAI_REPLY_FOCUS_CHANGED 154
54#define DEODHAI_REPLY_WINDOW_CLOSED 156
55#define DEODHAI_REPLY_MOUSE_LEAVE 157
56#define DEODHAI_REPLY_TOUCH_EVENT 158
57
58#define DEODHAI_BROADCAST_WINCREATED 170
59#define DEODHAI_BROADCAST_WINDESTROYED 171
60#define DEODHAI_BROADCAST_ICON 174
61#define DEODHAI_BROADCAST_FOCUS_CHANGED 173
62
63#define HANDLE_TYPE_NORMAL_WINDOW 1
64#define HANDLE_TYPE_POPUP_WINDOW 2
65
66
67
68#pragma pack(push,1)
75#pragma pack(pop)
76
77#pragma pack(push,1)
78typedef struct _bmp_ {
79 unsigned short type;
80 unsigned int size;
81 unsigned short resv1;
82 unsigned short resv2;
83 unsigned int off_bits;
85
86typedef struct _info_ {
87 unsigned int biSize;
88 long biWidth;
89 long biHeight;
90 unsigned short biPlanes;
91 unsigned short biBitCount;
92 unsigned int biCompression;
93 unsigned int biSizeImage;
94 long biXPelsPerMeter;
95 long biYPelsPerMeter;
96 unsigned int biClrUsed;
97 unsigned int biClrImportant;
99#pragma pack(pop)
100
101#define AU_INPUT_MOUSE 1
102#define AU_INPUT_KEYBOARD 2
103#define AU_INPUT_TOUCH 3
104
105#ifdef ARCH_X64
106#pragma pack(push,1)
107#endif
108/* Copied from kernel*/
109typedef struct _au_input_msg_ {
119
120#ifdef ARCH_X64
121#pragma pack(pop)
122#endif
123
124/*
125* DeodhaiAllocateNewHandle -- get a new window handle
126*/
129/*
130 * DeodhaiUpdateBits -- update specific deodhai bits
131 */
132extern void DeodhaiUpdateBits(bool window_update, bool skip);
133#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:1624
struct _bmp_ BMP
uint32_t DeodhaiAllocateNewHandle()
Definition deomain.cpp:125
ChCanvas * DeodhaiGetMainCanvas()
Definition deomain.cpp:1582
struct _rect_ Rect
struct _info_ BMPInfo
struct _au_input_msg_ AuInputMessage
Definition chitralekha.h:43
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:34
unsigned short type
Definition bmp.h:35
unsigned int size
Definition bmp.h:36
unsigned short resv1
Definition bmp.h:37
unsigned int off_bits
Definition bmp.h:39
unsigned short resv2
Definition bmp.h:38
Definition bmp.h:42
unsigned int biClrUsed
Definition bmp.h:52
unsigned int biClrImportant
Definition bmp.h:53
long biWidth
Definition bmp.h:44
unsigned short biPlanes
Definition bmp.h:46
unsigned int biCompression
Definition bmp.h:48
unsigned int biSize
Definition bmp.h:43
unsigned short biBitCount
Definition bmp.h:47
unsigned int biSizeImage
Definition bmp.h:49
long biYPelsPerMeter
Definition bmp.h:51
long biHeight
Definition bmp.h:45
long biXPelsPerMeter
Definition bmp.h:50
Definition deodhai.h:69
int32_t w
Definition deodhai.h:72
int32_t h
Definition deodhai.h:73
int32_t x
Definition deodhai.h:70
int32_t y
Definition deodhai.h:71