XenevaOS
Loading...
Searching...
No Matches
base.h
Go to the documentation of this file.
1
32#ifndef __CH_WIDGET_BASE_H__
33#define __CH_WIDGET_BASE_H__
34
35#include <stdint.h>
36#include <sys\_keipcpostbox.h>
37#include "..\font.h"
38#include <_xeneva.h>
39
40 /* commands to deodhai */
41#define DEODHAI_MESSAGE_CREATEWIN 50
42#define DEODHAI_MESSAGE_WINDESTROY
43#define DEODHAI_MESSAGE_BROADCAST_ICON 52
44#define DEODHAI_MESSAGE_WINDOW_BRING_FRONT 53
45#define DEODHAI_MESSAGE_WINDOW_HIDE 54
46#define DEODHAI_MESSAGE_GETWINDOW 55
47#define DEODHAI_MESSAGE_CLOSE_WINDOW 56
48#define DEODHAI_MESSAGE_SET_FLAGS 57
49#define DEODHAI_MESSAGE_CREATE_POPUP 58
50#define DEODHAI_MESSAGE_MOUSE_DBLCLK 59
51#define DEODHAI_MESSAGE_MOVE_WINDOW 60
52
53#define DEODHAI_REPLY_WINCREATED 150
54#define DEODHAI_REPLY_MOUSE_EVENT 151
55#define DEODHAI_REPLY_KEY_EVENT 152
56#define DEODHAI_REPLY_WINDOW_ID 153
57#define DEODHAI_REPLY_FOCUS_CHANGED 154
58#define DEODHAI_REPLY_WINDOW_CLOSED 156
59#define DEODHAI_REPLY_MOUSE_LEAVE 157
60#define DEODHAI_REPLY_TOUCH_EVENT 158
61
62 /* deodhai broadcast definitions, reply from
63 * deodhai */
64#define DEODHAI_BROADCAST_WINCREATED 170
65#define DEODHAI_BROADCAST_WINDESTROYED 171
66#define DEODHAI_BROADCAST_ICON 174
67#define DEODHAI_BROADCAST_FOCUS_CHANGED 173
68
69#define DEODHAI_MOUSE_MSG_SCROLL_UP 0x05
70#define DEODHAI_MOUSE_MSG_SCROLL_DOWN 0x06
71
72
86
87#ifdef __cplusplus
89#endif
90
94 XE_LIB ChitralekhaApp* ChitralekhaStartApp(int argc, char* argv[]);
95
100
105
106#ifdef __cplusplus
107}
108#endif
109
110#endif
#define XE_LIB
Definition _xeneva.h:55
#define XE_EXTERN
Definition _xeneva.h:50
unsigned int uint32_t
Definition acefiex.h:163
unsigned short int uint16_t
Definition acefiex.h:162
XE_LIB ChitralekhaApp * ChitralekhaStartApp(int argc, char *argv[])
ChitralekhaStartApp – start an application instance.
Definition base.cpp:44
XE_LIB ChitralekhaApp * ChitralekhaGetApp()
ChitralekhaGetApp – return running application instance.
Definition base.cpp:92
XE_LIB ChitralekhaApp * ChitralekhaStartSubApp(ChitralekhaApp *parent)
ChitralekhaStartApp – start an application instance.
Definition base.cpp:79
struct _ChApp_ ChitralekhaApp
Definition base.h:73
struct _ChApp_ * parent
Definition base.h:84
int buffer_height
Definition base.h:80
int postboxfd
Definition base.h:74
void * shwinbuf
Definition base.h:78
uint16_t currentID
Definition base.h:83
int sharedWinkey
Definition base.h:75
int backbufkey
Definition base.h:76
int buffer_width
Definition base.h:79
ChFont * baseFont
Definition base.h:82
void * fb
Definition base.h:77
uint32_t windowHandle
Definition base.h:81
Definition font.h:62