//*CMZ :  2.23/02 02/09/99  15.54.25  by  Rene Brun
//*CMZ :  2.23/01 26/08/99  11.59.06  by  Rene Brun
//*CMZ :  2.00/00 08/01/98  20.24.17  by  Fons Rademakers
//*CMZ :  1.00/06 23/03/97  11.17.21  by  Rene Brun
//*-- Author :    Fons Rademakers   3/12/95

//*KEEP,CopyRight,T=C.
/*************************************************************************
 * Copyright(c) 1995-1999, The ROOT System, All rights reserved.         *
 * Authors: Rene Brun and Fons Rademakers.                               *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/AA_LICENSE.                      *
 * For the list of contributors see $ROOTSYS/AA_CREDITS.                 *
 *************************************************************************/
//*KEND.

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TVirtualX                                                            //
//                                                                      //
// Semi-Abstract base class defining a generic interface to the         //
// underlying, low level, graphics system (X11, Win32, MacOS).          //
// An instance of TVirtualX itself defines a batch interface to the     //
// graphics system.                                                     //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

//*KEEP,TVirtualX.
#include "TVirtualX.h"
//*KEEP,TString.
#include "TString.h"
//*KEND.


Atom_t    gWM_DELETE_WINDOW;
Atom_t    gMOTIF_WM_HINTS;
Atom_t    gROOT_MESSAGE;

TVirtualX     *gVirtualX;      //Global pointer to the current graphics interface
TVirtualX     *gGXBatch;  //Global pointer to batch graphics interface

ClassImp(TVirtualX)

//______________________________________________________________________________
 TVirtualX::TVirtualX(const Text_t *name, const Text_t *title) : TNamed(name, title),
      TAttLine(1,1,1),TAttFill(1,1),TAttText(11,0,1,62,0.01), TAttMarker(1,1,1)
{
   // Ctor of ABC
}

//______________________________________________________________________________
 void TVirtualX::GetWindowAttributes(Window_t, WindowAttributes_t &attr)
{
   // Set WindowAttributes_t structure to defaults.

   attr.fX = attr.fY = 0;
   attr.fWidth = attr.fHeight = 0;
   attr.fVisual   = 0;
   attr.fMapState = kIsUnmapped;
   attr.fScreen   = 0;
}

//______________________________________________________________________________
 Bool_t TVirtualX::ParseColor(Colormap_t, const char *, ColorStruct_t &color)
{
   // Set ColorStruct_t structure to default. Let system think we could
   // parse color.

   color.fPixel = 0;
   color.fRed   = 0;
   color.fGreen = 0;
   color.fBlue  = 0;
   color.fMask  = kDoRed | kDoGreen | kDoBlue;

   return kTRUE;
}

//______________________________________________________________________________
 Bool_t TVirtualX::AllocColor(Colormap_t, ColorStruct_t &color)
{
   // Set pixel value. Let system think we could alocate color.

   color.fPixel = 0;
   return kTRUE;
}

//______________________________________________________________________________
 void TVirtualX::QueryColor(Colormap_t, ColorStruct_t &color)
{
   // Set color components to default.

   color.fRed = color.fGreen = color.fBlue = 0;
}

//______________________________________________________________________________
 void TVirtualX::NextEvent(Event_t &event)
{
   // Set to default event. This method however, should never be called.

   event.fType   = kButtonPress;
   event.fWindow = 0;
   event.fTime   = 0;
   event.fX      = 0;
   event.fY      = 0;
   event.fXRoot  = 0;
   event.fYRoot  = 0;
   event.fState  = 0;
   event.fCode   = 0;
   event.fWidth  = 0;
   event.fHeight = 0;
   event.fCount  = 0;
}

//______________________________________________________________________________
 void TVirtualX::GetPasteBuffer(Window_t, Atom_t, TString &text, Int_t &nchar, Bool_t)
{
   // Get paste buffer. By default always empty.

   text = "";
   nchar = 0;
}


ROOT page - Class index - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.