ROOT  6.06/09
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 #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 ! ! !
38 #endif
39 
41 
42 enum ESendClassCOPs {kSendClass=1, kSendWaitClass}; // Codes opeation to send class point between threads
43 
49  };
50 /* Codes to back the OpenGL commands
51 **
52 ** ROOT_Control set
53 */
54 
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 
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 
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 
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 
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 
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 
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 
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 
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 
194  {
197  };
198 
199 static int Win32DrawMode[] = {R2_COPYPEN, R2_XORPEN, R2_NOT};
200 
202 
203 #define GetWin32ApplicationImp() ((TWin32Application *)( gROOT->GetApplication()->GetApplicationImp()))
204 
205 #endif
static int Win32DrawMode[]
L_ROOT_Marker
L_ROOT_Input
L_ROOT_Primitive
EListOfIcons
ERoot_Msgs
ESendClassCOPs
L_ROOT_Control
L_ROOT_OpenGL
ROOT_Graphics_Msg
L_ROOT_Text
L_ROOT_Inquiry
L_ROOT_Pixmap
L_ROOT_Attribute
L_ROOT_Dummies
Canvas_Child_Window_Ids