Win32Constants.h

Go to the documentation of this file.
00001 /* @(#)root/win32gdk:$Id: Win32Constants.h 20882 2007-11-19 11:31:26Z rdm $ */
00002 
00003 /*************************************************************************
00004  * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
00005  * All rights reserved.                                                  *
00006  *                                                                       *
00007  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00008  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00009  *************************************************************************/
00010 #ifndef ROOT_Win32Constants
00011 #define ROOT_Win32Constants
00012 
00013 #ifndef ROOT_Windows4Root
00014 #include "Windows4Root.h"
00015 #endif
00016 
00017 #if 0
00018   #define ColorOffset 10
00019 #else
00020   #define ColorOffset 0
00021 #endif
00022 
00023 //#define ROOTColorIndex(ic) (fWin32Mother->fhdCommonPalette) ? PALETTEINDEX(ic+ColorOffset) \
00024 //                         : ((fWin32Mother->flpPalette->palPalEntry[ic]) & 0x00FFFFFF)
00025 
00026 
00027 
00028 #define ROOTColorIndex(ic) fWin32Mother->ColorIndex(ic)
00029 
00030 #define WHITE_ROOT_COLOR ROOTColorIndex(0)
00031 
00032 #ifndef ROOT_MSG
00033 #define ROOT_MSG
00034 // #define IX11_ROOT_MSG WM_USER+10 // ID of ROOT messages
00035                                     //   +10 because WM_USER is used
00036                                     //       by WIN32 itself ! ! !
00037 typedef enum {IX11_ROOT_MSG=WM_USER+10, IX11_ROOT_Input, ROOT_CMD, ROOT_SYNCH_CMD, ROOT_HOOK} ERoot_Msgs;
00038 #endif
00039 
00040 enum Canvas_Child_Window_Ids {ID_TOOLBAR = 1, ID_STATUSBAR};
00041 
00042 enum ESendClassCOPs {kSendClass=1, kSendWaitClass};  // Codes opeation to send class point between threads
00043 
00044 enum ROOT_Graphics_Msg {
00045                         ROOT_Control, ROOT_Primitive, ROOT_Text   , ROOT_Attribute,
00046                         ROOT_Marker , ROOT_Input    , ROOT_Inquiry, ROOT_Pixmap,
00047                         ROOT_OpenGL,
00048                         ROOT_Dummies
00049                        };
00050 /*     Codes to back the OpenGL commands
00051 **
00052 **               ROOT_Control set
00053 */
00054 
00055 enum    L_ROOT_OpenGL
00056      {
00057        GL_MAKECURRENT   // Make the the OpenGL  rendering context the current one
00058      };
00059 
00060 /*     Emulation of X11 control ROOT routines
00061 **
00062 **               ROOT_Control set
00063 */
00064 
00065 enum    L_ROOT_Control
00066      {
00067         IX_OPNDS,      // Open X11 display
00068         IX_OPNWI,      // Open X11 window
00069         IX_SELWI,      // Select the current X11 window
00070         IX_CLSWI,      // Close an X11 window
00071         IX_CLSDS,      // Close an X11 session
00072         IX_SETHN,      // Set X11 host name
00073         IX_SETBUF,     // Set Double buffered mode
00074         IX_SETSTATUS,  // Create the status child window
00075         IX_GETBUF,     // Set Double buffered mode
00076         IX_CLRWI,      // Clear an X11 window
00077         IX_RSCWI,      // Resize an X11 window
00078         IX_CLIP ,      // Define the X11 clipping rectangle
00079         IX_NOCLI       // Deactivate the X11 clipping rectangle
00080      };
00081 
00082 
00083 /*      X11 output primitives
00084 **
00085 **          ROOT_Primitive
00086 */
00087 
00088 enum    L_ROOT_Primitive
00089      {
00090         IX_LINE ,      // Draw a line through all points
00091         IX_MARKE,      // Draw a marker ar each point
00092         IX_FLARE,      // Fill area described by polygon
00093         IX_BOX  ,      // Draw a box
00094         IX_CA          // Draw a cell array
00095      };
00096 
00097 /*      X11 text
00098 **
00099 **          ROOT_Text
00100 */
00101 
00102 enum    L_ROOT_Text
00103      {
00104         IX_TEXT,       // Draw a text string using the current font
00105         IX_TXTL,       // Return the width and height of character string in the current font
00106         IX_SETTA,      // Set text alignment
00107         IX_SETTF,      // Set text font to specified name
00108         IX_SETTC,      // Set colour index for text
00109         IW_SETCH       // Set a height for the charatcter
00110      };
00111 
00112 
00113 /*     X11 output attributes
00114 **
00115 **          ROOT_Attribute
00116 */
00117 
00118 enum    L_ROOT_Attribute
00119      {
00120         IX_SETCO,      // Set the color intensities for given colour index
00121         IX_SETLN,      // Set the line width
00122         IX_SETLS,      // Set the line style
00123         IX_SETLC,      // Set the colour index for lines
00124         IX_DRMDE,      // Set the drawing mode
00125         IX_SETMENU     // Set the menu bar for the window
00126      };
00127 
00128 /*     X11 marker style
00129 **
00130 **       ROOT_Marker
00131 */
00132 
00133 enum    L_ROOT_Marker
00134      {
00135         IX_SETMS,      // Set market style
00136         IX_SETMC,      // Set colour indx for markers
00137         IX_SETFS,      // Set fill area style
00138         IX_SETFC,      // Set colour index for fill area
00139 
00140         IX_SYNC       // X11 synchronization
00141      };
00142 
00143 
00144 /*     X11 input functions
00145 **
00146 **         ROOT_Input
00147  */
00148 
00149 enum    L_ROOT_Input
00150      {
00151         IX_REQLO,      // Request locator input.
00152         IX_REQST       // Request a string input
00153      };
00154 
00155 
00156 /*      X11 inquiry routines
00157 **
00158 **         ROOT_Inquiry
00159  */
00160 
00161 enum     L_ROOT_Inquiry
00162       {
00163         IX_GETGE,      // Returns position and size of Window
00164         IX_GETWI,      // Returns the X11 window identifier
00165         IX_GETPL,      // Returns the maximal number of planes of the display
00166         IX_GETCOL      // Returns the X11 colour representation
00167       };
00168 
00169 
00170 /*      Pixmap manipulation
00171 **
00172 **         ROOT_Pixmap
00173  */
00174 
00175 enum    L_ROOT_Pixmap
00176      {
00177         IX_OPNPX,      // Open a new pixmap
00178         IX_CLPX ,      // Close the current opened pixmap
00179         IX_CPPX ,      // Copy the pixmap
00180         IX_CLRPX,      // Clear the pixmap
00181         IX_RMPX ,      // Remove the pixmap
00182         IX_UPDWI,      // Flush the double buffer of the window
00183         IX_WRPX ,      // Write the pixmap
00184         IX_WIPX        // Copy the area in the current window
00185      };
00186 
00187 
00188 /*             Dummies
00189 **
00190 **           ROOT_Dummies
00191  */
00192 
00193 enum    L_ROOT_Dummies
00194      {
00195         IX_S2BUF,
00196         IX_SDSWI
00197      };
00198 
00199 static int Win32DrawMode[] = {R2_COPYPEN, R2_XORPEN, R2_NOT};
00200 
00201 enum EListOfIcons {kMainROOTIcon, kCanvasIcon, kBrowserIcon, kClosedFolderIcon, kOpenedFolderIcon,  kDocumentIcon, kTotalNumOfICons };
00202 
00203 #define  GetWin32ApplicationImp() ((TWin32Application *)( gROOT->GetApplication()->GetApplicationImp()))
00204 
00205 #endif

Generated on Tue Jul 5 14:12:03 2011 for ROOT_528-00b_version by  doxygen 1.5.1