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