ROOT
6.08/07
Reference Guide
core
winnt
inc
Win32Constants.h
Go to the documentation of this file.
1
/* @(#)root/win32gdk:$Id$ */
2
3
/*************************************************************************
4
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
5
* All rights reserved. *
6
* *
7
* For the licensing terms see $ROOTSYS/LICENSE. *
8
* For the list of contributors see $ROOTSYS/README/CREDITS. *
9
*************************************************************************/
10
#ifndef ROOT_Win32Constants
11
#define ROOT_Win32Constants
12
13
#ifndef ROOT_Windows4Root
14
#include "
Windows4Root.h
"
15
#endif
16
17
#if 0
18
#define ColorOffset 10
19
#else
20
#define ColorOffset 0
21
#endif
22
23
//#define ROOTColorIndex(ic) (fWin32Mother->fhdCommonPalette) ? PALETTEINDEX(ic+ColorOffset) \
24
// : ((fWin32Mother->flpPalette->palPalEntry[ic]) & 0x00FFFFFF)
25
26
27
28
#define ROOTColorIndex(ic) fWin32Mother->ColorIndex(ic)
29
30
#define WHITE_ROOT_COLOR ROOTColorIndex(0)
31
32
#ifndef ROOT_MSG
33
#define ROOT_MSG
34
// #define IX11_ROOT_MSG WM_USER+10 // ID of ROOT messages
35
// +10 because WM_USER is used
36
// by WIN32 itself ! ! !
37
typedef
enum
{
IX11_ROOT_MSG
=WM_USER+10,
IX11_ROOT_Input
,
ROOT_CMD
,
ROOT_SYNCH_CMD
,
ROOT_HOOK
}
ERoot_Msgs
;
38
#endif
39
40
enum
Canvas_Child_Window_Ids
{
ID_TOOLBAR
= 1,
ID_STATUSBAR
};
41
42
enum
ESendClassCOPs
{
kSendClass
=1,
kSendWaitClass
};
// Codes opeation to send class point between threads
43
44
enum
ROOT_Graphics_Msg
{
45
ROOT_Control
,
ROOT_Primitive
,
ROOT_Text
,
ROOT_Attribute
,
46
ROOT_Marker
,
ROOT_Input
,
ROOT_Inquiry
,
ROOT_Pixmap
,
47
ROOT_OpenGL
,
48
ROOT_Dummies
49
};
50
/* Codes to back the OpenGL commands
51
**
52
** ROOT_Control set
53
*/
54
55
enum
L_ROOT_OpenGL
56
{
57
GL_MAKECURRENT
// Make the the OpenGL rendering context the current one
58
};
59
60
/* Emulation of X11 control ROOT routines
61
**
62
** ROOT_Control set
63
*/
64
65
enum
L_ROOT_Control
66
{
67
IX_OPNDS
,
// Open X11 display
68
IX_OPNWI
,
// Open X11 window
69
IX_SELWI
,
// Select the current X11 window
70
IX_CLSWI
,
// Close an X11 window
71
IX_CLSDS
,
// Close an X11 session
72
IX_SETHN
,
// Set X11 host name
73
IX_SETBUF
,
// Set Double buffered mode
74
IX_SETSTATUS
,
// Create the status child window
75
IX_GETBUF
,
// Set Double buffered mode
76
IX_CLRWI
,
// Clear an X11 window
77
IX_RSCWI
,
// Resize an X11 window
78
IX_CLIP
,
// Define the X11 clipping rectangle
79
IX_NOCLI
// Deactivate the X11 clipping rectangle
80
};
81
82
83
/* X11 output primitives
84
**
85
** ROOT_Primitive
86
*/
87
88
enum
L_ROOT_Primitive
89
{
90
IX_LINE
,
// Draw a line through all points
91
IX_MARKE
,
// Draw a marker ar each point
92
IX_FLARE
,
// Fill area described by polygon
93
IX_BOX
,
// Draw a box
94
IX_CA
// Draw a cell array
95
};
96
97
/* X11 text
98
**
99
** ROOT_Text
100
*/
101
102
enum
L_ROOT_Text
103
{
104
IX_TEXT
,
// Draw a text string using the current font
105
IX_TXTL
,
// Return the width and height of character string in the current font
106
IX_SETTA
,
// Set text alignment
107
IX_SETTF
,
// Set text font to specified name
108
IX_SETTC
,
// Set colour index for text
109
IW_SETCH
// Set a height for the charatcter
110
};
111
112
113
/* X11 output attributes
114
**
115
** ROOT_Attribute
116
*/
117
118
enum
L_ROOT_Attribute
119
{
120
IX_SETCO
,
// Set the color intensities for given colour index
121
IX_SETLN
,
// Set the line width
122
IX_SETLS
,
// Set the line style
123
IX_SETLC
,
// Set the colour index for lines
124
IX_DRMDE
,
// Set the drawing mode
125
IX_SETMENU
// Set the menu bar for the window
126
};
127
128
/* X11 marker style
129
**
130
** ROOT_Marker
131
*/
132
133
enum
L_ROOT_Marker
134
{
135
IX_SETMS
,
// Set market style
136
IX_SETMC
,
// Set colour indx for markers
137
IX_SETFS
,
// Set fill area style
138
IX_SETFC
,
// Set colour index for fill area
139
140
IX_SYNC
// X11 synchronization
141
};
142
143
144
/* X11 input functions
145
**
146
** ROOT_Input
147
*/
148
149
enum
L_ROOT_Input
150
{
151
IX_REQLO
,
// Request locator input.
152
IX_REQST
// Request a string input
153
};
154
155
156
/* X11 inquiry routines
157
**
158
** ROOT_Inquiry
159
*/
160
161
enum
L_ROOT_Inquiry
162
{
163
IX_GETGE
,
// Returns position and size of Window
164
IX_GETWI
,
// Returns the X11 window identifier
165
IX_GETPL
,
// Returns the maximal number of planes of the display
166
IX_GETCOL
// Returns the X11 colour representation
167
};
168
169
170
/* Pixmap manipulation
171
**
172
** ROOT_Pixmap
173
*/
174
175
enum
L_ROOT_Pixmap
176
{
177
IX_OPNPX
,
// Open a new pixmap
178
IX_CLPX
,
// Close the current opened pixmap
179
IX_CPPX
,
// Copy the pixmap
180
IX_CLRPX
,
// Clear the pixmap
181
IX_RMPX
,
// Remove the pixmap
182
IX_UPDWI
,
// Flush the double buffer of the window
183
IX_WRPX
,
// Write the pixmap
184
IX_WIPX
// Copy the area in the current window
185
};
186
187
188
/* Dummies
189
**
190
** ROOT_Dummies
191
*/
192
193
enum
L_ROOT_Dummies
194
{
195
IX_S2BUF
,
196
IX_SDSWI
197
};
198
199
static
int
Win32DrawMode
[] = {R2_COPYPEN, R2_XORPEN, R2_NOT};
200
201
enum
EListOfIcons
{
kMainROOTIcon
,
kCanvasIcon
,
kBrowserIcon
,
kClosedFolderIcon
,
kOpenedFolderIcon
,
kDocumentIcon
,
kTotalNumOfICons
};
202
203
#define GetWin32ApplicationImp() ((TWin32Application *)( gROOT->GetApplication()->GetApplicationImp()))
204
205
#endif
IX_FLARE
Definition:
Win32Constants.h:92
Win32DrawMode
static int Win32DrawMode[]
Definition:
Win32Constants.h:199
IX_GETBUF
Definition:
Win32Constants.h:75
IX_SETTA
Definition:
Win32Constants.h:106
IX_TXTL
Definition:
Win32Constants.h:105
IX_TEXT
Definition:
Win32Constants.h:104
L_ROOT_Marker
L_ROOT_Marker
Definition:
Win32Constants.h:133
ROOT_Control
Definition:
Win32Constants.h:45
L_ROOT_Input
L_ROOT_Input
Definition:
Win32Constants.h:149
IX_SETFC
Definition:
Win32Constants.h:138
IX_WIPX
Definition:
Win32Constants.h:184
IX_CLRWI
Definition:
Win32Constants.h:76
L_ROOT_Primitive
L_ROOT_Primitive
Definition:
Win32Constants.h:88
IX_MARKE
Definition:
Win32Constants.h:91
kSendClass
Definition:
Win32Constants.h:42
ROOT_HOOK
Definition:
Win32Constants.h:37
ROOT_CMD
Definition:
Win32Constants.h:37
IX_OPNDS
Definition:
Win32Constants.h:67
IX_SETTC
Definition:
Win32Constants.h:108
IX_SETMS
Definition:
Win32Constants.h:135
IX_SETLN
Definition:
Win32Constants.h:121
ID_STATUSBAR
Definition:
Win32Constants.h:40
EListOfIcons
EListOfIcons
Definition:
Win32Constants.h:201
IX_SETSTATUS
Definition:
Win32Constants.h:74
IX_OPNPX
Definition:
Win32Constants.h:177
IX_SETMC
Definition:
Win32Constants.h:136
IX_SETLC
Definition:
Win32Constants.h:123
IX_SETCO
Definition:
Win32Constants.h:120
IX_BOX
Definition:
Win32Constants.h:93
ERoot_Msgs
ERoot_Msgs
Definition:
Win32Constants.h:37
IX_DRMDE
Definition:
Win32Constants.h:124
kClosedFolderIcon
Definition:
Win32Constants.h:201
IX_CA
Definition:
Win32Constants.h:94
ESendClassCOPs
ESendClassCOPs
Definition:
Win32Constants.h:42
L_ROOT_Control
L_ROOT_Control
Definition:
Win32Constants.h:65
ROOT_Input
Definition:
Win32Constants.h:46
IX_CPPX
Definition:
Win32Constants.h:179
IX_CLSWI
Definition:
Win32Constants.h:70
IX_RMPX
Definition:
Win32Constants.h:181
IX_GETCOL
Definition:
Win32Constants.h:166
IX_REQLO
Definition:
Win32Constants.h:151
ROOT_Marker
Definition:
Win32Constants.h:46
L_ROOT_OpenGL
L_ROOT_OpenGL
Definition:
Win32Constants.h:55
IX_NOCLI
Definition:
Win32Constants.h:79
IX_CLSDS
Definition:
Win32Constants.h:71
ROOT_Graphics_Msg
ROOT_Graphics_Msg
Definition:
Win32Constants.h:44
kMainROOTIcon
Definition:
Win32Constants.h:201
L_ROOT_Text
L_ROOT_Text
Definition:
Win32Constants.h:102
IX_SETFS
Definition:
Win32Constants.h:137
IX_GETGE
Definition:
Win32Constants.h:163
Windows4Root.h
ROOT_OpenGL
Definition:
Win32Constants.h:47
kSendWaitClass
Definition:
Win32Constants.h:42
IX_SETBUF
Definition:
Win32Constants.h:73
IX_SETLS
Definition:
Win32Constants.h:122
IX11_ROOT_MSG
Definition:
Win32Constants.h:37
IX_RSCWI
Definition:
Win32Constants.h:77
L_ROOT_Inquiry
L_ROOT_Inquiry
Definition:
Win32Constants.h:161
ID_TOOLBAR
Definition:
Win32Constants.h:40
L_ROOT_Pixmap
L_ROOT_Pixmap
Definition:
Win32Constants.h:175
ROOT_Primitive
Definition:
Win32Constants.h:45
IX11_ROOT_Input
Definition:
Win32Constants.h:37
IX_SETHN
Definition:
Win32Constants.h:72
IX_SETMENU
Definition:
Win32Constants.h:125
IX_CLIP
Definition:
Win32Constants.h:78
kCanvasIcon
Definition:
Win32Constants.h:201
ROOT_Dummies
Definition:
Win32Constants.h:48
GL_MAKECURRENT
Definition:
Win32Constants.h:57
ROOT_Attribute
Definition:
Win32Constants.h:45
IX_CLRPX
Definition:
Win32Constants.h:180
IX_LINE
Definition:
Win32Constants.h:90
IX_SETTF
Definition:
Win32Constants.h:107
kDocumentIcon
Definition:
Win32Constants.h:201
IW_SETCH
Definition:
Win32Constants.h:109
IX_REQST
Definition:
Win32Constants.h:152
IX_SDSWI
Definition:
Win32Constants.h:196
IX_S2BUF
Definition:
Win32Constants.h:195
kOpenedFolderIcon
Definition:
Win32Constants.h:201
kBrowserIcon
Definition:
Win32Constants.h:201
IX_GETWI
Definition:
Win32Constants.h:164
IX_SELWI
Definition:
Win32Constants.h:69
IX_CLPX
Definition:
Win32Constants.h:178
IX_SYNC
Definition:
Win32Constants.h:140
IX_WRPX
Definition:
Win32Constants.h:183
ROOT_SYNCH_CMD
Definition:
Win32Constants.h:37
L_ROOT_Attribute
L_ROOT_Attribute
Definition:
Win32Constants.h:118
IX_GETPL
Definition:
Win32Constants.h:165
L_ROOT_Dummies
L_ROOT_Dummies
Definition:
Win32Constants.h:193
ROOT_Inquiry
Definition:
Win32Constants.h:46
IX_OPNWI
Definition:
Win32Constants.h:68
ROOT_Text
Definition:
Win32Constants.h:45
IX_UPDWI
Definition:
Win32Constants.h:182
Canvas_Child_Window_Ids
Canvas_Child_Window_Ids
Definition:
Win32Constants.h:40
ROOT_Pixmap
Definition:
Win32Constants.h:46
kTotalNumOfICons
Definition:
Win32Constants.h:201