ROOT
v6-28
Reference Guide
Loading...
Searching...
No Matches
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 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
L_ROOT_Input
L_ROOT_Input
Definition
Win32Constants.h:148
IX_REQLO
@ IX_REQLO
Definition
Win32Constants.h:149
IX_REQST
@ IX_REQST
Definition
Win32Constants.h:150
Win32DrawMode
static int Win32DrawMode[]
Definition
Win32Constants.h:197
L_ROOT_Text
L_ROOT_Text
Definition
Win32Constants.h:101
IX_TEXT
@ IX_TEXT
Definition
Win32Constants.h:102
IW_SETCH
@ IW_SETCH
Definition
Win32Constants.h:107
IX_SETTA
@ IX_SETTA
Definition
Win32Constants.h:104
IX_SETTC
@ IX_SETTC
Definition
Win32Constants.h:106
IX_TXTL
@ IX_TXTL
Definition
Win32Constants.h:103
IX_SETTF
@ IX_SETTF
Definition
Win32Constants.h:105
Canvas_Child_Window_Ids
Canvas_Child_Window_Ids
Definition
Win32Constants.h:38
ID_STATUSBAR
@ ID_STATUSBAR
Definition
Win32Constants.h:38
ID_TOOLBAR
@ ID_TOOLBAR
Definition
Win32Constants.h:38
ROOT_Graphics_Msg
ROOT_Graphics_Msg
Definition
Win32Constants.h:42
ROOT_Inquiry
@ ROOT_Inquiry
Definition
Win32Constants.h:44
ROOT_Control
@ ROOT_Control
Definition
Win32Constants.h:43
ROOT_Pixmap
@ ROOT_Pixmap
Definition
Win32Constants.h:44
ROOT_Marker
@ ROOT_Marker
Definition
Win32Constants.h:44
ROOT_Primitive
@ ROOT_Primitive
Definition
Win32Constants.h:43
ROOT_Text
@ ROOT_Text
Definition
Win32Constants.h:43
ROOT_Attribute
@ ROOT_Attribute
Definition
Win32Constants.h:43
ROOT_Input
@ ROOT_Input
Definition
Win32Constants.h:44
ROOT_OpenGL
@ ROOT_OpenGL
Definition
Win32Constants.h:45
ROOT_Dummies
@ ROOT_Dummies
Definition
Win32Constants.h:46
EListOfIcons
EListOfIcons
Definition
Win32Constants.h:199
kOpenedFolderIcon
@ kOpenedFolderIcon
Definition
Win32Constants.h:199
kCanvasIcon
@ kCanvasIcon
Definition
Win32Constants.h:199
kDocumentIcon
@ kDocumentIcon
Definition
Win32Constants.h:199
kBrowserIcon
@ kBrowserIcon
Definition
Win32Constants.h:199
kMainROOTIcon
@ kMainROOTIcon
Definition
Win32Constants.h:199
kTotalNumOfICons
@ kTotalNumOfICons
Definition
Win32Constants.h:199
kClosedFolderIcon
@ kClosedFolderIcon
Definition
Win32Constants.h:199
L_ROOT_Pixmap
L_ROOT_Pixmap
Definition
Win32Constants.h:174
IX_UPDWI
@ IX_UPDWI
Definition
Win32Constants.h:180
IX_WIPX
@ IX_WIPX
Definition
Win32Constants.h:182
IX_CLRPX
@ IX_CLRPX
Definition
Win32Constants.h:178
IX_OPNPX
@ IX_OPNPX
Definition
Win32Constants.h:175
IX_RMPX
@ IX_RMPX
Definition
Win32Constants.h:179
IX_CLPX
@ IX_CLPX
Definition
Win32Constants.h:176
IX_WRPX
@ IX_WRPX
Definition
Win32Constants.h:181
IX_CPPX
@ IX_CPPX
Definition
Win32Constants.h:177
L_ROOT_Marker
L_ROOT_Marker
Definition
Win32Constants.h:132
IX_SETMC
@ IX_SETMC
Definition
Win32Constants.h:134
IX_SETMS
@ IX_SETMS
Definition
Win32Constants.h:133
IX_SETFC
@ IX_SETFC
Definition
Win32Constants.h:136
IX_SYNC
@ IX_SYNC
Definition
Win32Constants.h:138
IX_SETFS
@ IX_SETFS
Definition
Win32Constants.h:135
L_ROOT_Primitive
L_ROOT_Primitive
Definition
Win32Constants.h:87
IX_BOX
@ IX_BOX
Definition
Win32Constants.h:91
IX_LINE
@ IX_LINE
Definition
Win32Constants.h:88
IX_CA
@ IX_CA
Definition
Win32Constants.h:92
IX_MARKE
@ IX_MARKE
Definition
Win32Constants.h:89
IX_FLARE
@ IX_FLARE
Definition
Win32Constants.h:90
L_ROOT_OpenGL
L_ROOT_OpenGL
Definition
Win32Constants.h:54
GL_MAKECURRENT
@ GL_MAKECURRENT
Definition
Win32Constants.h:55
L_ROOT_Dummies
L_ROOT_Dummies
Definition
Win32Constants.h:192
IX_S2BUF
@ IX_S2BUF
Definition
Win32Constants.h:193
IX_SDSWI
@ IX_SDSWI
Definition
Win32Constants.h:194
ERoot_Msgs
ERoot_Msgs
Definition
Win32Constants.h:35
ROOT_CMD
@ ROOT_CMD
Definition
Win32Constants.h:35
ROOT_HOOK
@ ROOT_HOOK
Definition
Win32Constants.h:35
IX11_ROOT_MSG
@ IX11_ROOT_MSG
Definition
Win32Constants.h:35
IX11_ROOT_Input
@ IX11_ROOT_Input
Definition
Win32Constants.h:35
ROOT_SYNCH_CMD
@ ROOT_SYNCH_CMD
Definition
Win32Constants.h:35
L_ROOT_Control
L_ROOT_Control
Definition
Win32Constants.h:64
IX_OPNWI
@ IX_OPNWI
Definition
Win32Constants.h:66
IX_SETSTATUS
@ IX_SETSTATUS
Definition
Win32Constants.h:72
IX_NOCLI
@ IX_NOCLI
Definition
Win32Constants.h:77
IX_RSCWI
@ IX_RSCWI
Definition
Win32Constants.h:75
IX_SELWI
@ IX_SELWI
Definition
Win32Constants.h:67
IX_CLSWI
@ IX_CLSWI
Definition
Win32Constants.h:68
IX_GETBUF
@ IX_GETBUF
Definition
Win32Constants.h:73
IX_OPNDS
@ IX_OPNDS
Definition
Win32Constants.h:65
IX_SETHN
@ IX_SETHN
Definition
Win32Constants.h:70
IX_CLRWI
@ IX_CLRWI
Definition
Win32Constants.h:74
IX_CLSDS
@ IX_CLSDS
Definition
Win32Constants.h:69
IX_CLIP
@ IX_CLIP
Definition
Win32Constants.h:76
IX_SETBUF
@ IX_SETBUF
Definition
Win32Constants.h:71
ESendClassCOPs
ESendClassCOPs
Definition
Win32Constants.h:40
kSendWaitClass
@ kSendWaitClass
Definition
Win32Constants.h:40
kSendClass
@ kSendClass
Definition
Win32Constants.h:40
L_ROOT_Attribute
L_ROOT_Attribute
Definition
Win32Constants.h:117
IX_SETLC
@ IX_SETLC
Definition
Win32Constants.h:121
IX_SETMENU
@ IX_SETMENU
Definition
Win32Constants.h:123
IX_DRMDE
@ IX_DRMDE
Definition
Win32Constants.h:122
IX_SETLN
@ IX_SETLN
Definition
Win32Constants.h:119
IX_SETLS
@ IX_SETLS
Definition
Win32Constants.h:120
IX_SETCO
@ IX_SETCO
Definition
Win32Constants.h:118
L_ROOT_Inquiry
L_ROOT_Inquiry
Definition
Win32Constants.h:160
IX_GETPL
@ IX_GETPL
Definition
Win32Constants.h:163
IX_GETGE
@ IX_GETGE
Definition
Win32Constants.h:161
IX_GETWI
@ IX_GETWI
Definition
Win32Constants.h:162
IX_GETCOL
@ IX_GETCOL
Definition
Win32Constants.h:164
Windows4Root.h
core
winnt
inc
Win32Constants.h
ROOT v6-28 - Reference Guide Generated on Thu Oct 24 2024 01:49:06 (GVA Time) using Doxygen 1.9.8