Logo ROOT   6.16/01
Reference Guide
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 ! ! !
36#endif
37
39
40enum ESendClassCOPs {kSendClass=1, kSendWaitClass}; // Codes opeation to send class point between threads
41
47 };
48/* Codes to back the OpenGL commands
49**
50** ROOT_Control set
51*/
52
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
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
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
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
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
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
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
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
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
192 {
195 };
196
197static int Win32DrawMode[] = {R2_COPYPEN, R2_XORPEN, R2_NOT};
198
200
201#define GetWin32ApplicationImp() ((TWin32Application *)( gROOT->GetApplication()->GetApplicationImp()))
202
203#endif
L_ROOT_Input
@ IX_REQLO
@ IX_REQST
static int Win32DrawMode[]
L_ROOT_Text
@ IX_TEXT
@ IW_SETCH
@ IX_SETTA
@ IX_SETTC
@ IX_TXTL
@ IX_SETTF
Canvas_Child_Window_Ids
@ ID_STATUSBAR
@ ID_TOOLBAR
ROOT_Graphics_Msg
@ ROOT_Inquiry
@ ROOT_Control
@ ROOT_Pixmap
@ ROOT_Marker
@ ROOT_Primitive
@ ROOT_Text
@ ROOT_Attribute
@ ROOT_Input
@ ROOT_OpenGL
@ ROOT_Dummies
EListOfIcons
@ kOpenedFolderIcon
@ kCanvasIcon
@ kDocumentIcon
@ kBrowserIcon
@ kMainROOTIcon
@ kTotalNumOfICons
@ kClosedFolderIcon
L_ROOT_Pixmap
@ IX_UPDWI
@ IX_WIPX
@ IX_CLRPX
@ IX_OPNPX
@ IX_RMPX
@ IX_CLPX
@ IX_WRPX
@ IX_CPPX
L_ROOT_Marker
@ IX_SETMC
@ IX_SETMS
@ IX_SETFC
@ IX_SYNC
@ IX_SETFS
L_ROOT_Primitive
@ IX_BOX
@ IX_LINE
@ IX_CA
@ IX_MARKE
@ IX_FLARE
L_ROOT_OpenGL
@ GL_MAKECURRENT
L_ROOT_Dummies
@ IX_S2BUF
@ IX_SDSWI
ERoot_Msgs
@ ROOT_CMD
@ ROOT_HOOK
@ IX11_ROOT_MSG
@ IX11_ROOT_Input
@ ROOT_SYNCH_CMD
L_ROOT_Control
@ IX_OPNWI
@ IX_SETSTATUS
@ IX_NOCLI
@ IX_RSCWI
@ IX_SELWI
@ IX_CLSWI
@ IX_GETBUF
@ IX_OPNDS
@ IX_SETHN
@ IX_CLRWI
@ IX_CLSDS
@ IX_CLIP
@ IX_SETBUF
ESendClassCOPs
@ kSendWaitClass
@ kSendClass
L_ROOT_Attribute
@ IX_SETLC
@ IX_SETMENU
@ IX_DRMDE
@ IX_SETLN
@ IX_SETLS
@ IX_SETCO
L_ROOT_Inquiry
@ IX_GETPL
@ IX_GETGE
@ IX_GETWI
@ IX_GETCOL