//*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, Fons Rademakers. *
* For list of contributors see $ROOTSYS/AA_CREDITS. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation for non-commercial purposes is hereby granted without *
* fee, provided that the above copyright notice appears in all copies *
* and that both the copyright notice and this permission notice appear *
* in the supporting documentation. The authors make no claims about the *
* suitability of this software for any purpose. It is provided "as is" *
* without express or implied warranty. *
*************************************************************************/
//*KEND.
//////////////////////////////////////////////////////////////////////////
// //
// TGXW //
// //
// Semi-Abstract base class defining a generic interface to the //
// underlying, low level, graphics system (X11, Win32, MacOS). //
// An instance of TGXW itself defines a batch interface to the graphics //
// system. //
// //
//////////////////////////////////////////////////////////////////////////
//*KEEP,TGXW.
#include "TGXW.h"
//*KEEP,TString.
#include "TString.h"
//*KEND.
Atom_t gWM_DELETE_WINDOW;
Atom_t gMOTIF_WM_HINTS;
Atom_t gROOT_MESSAGE;
TGXW *gGXW; //Global pointer to the current graphics interface
TGXW *gGXBatch; //Global pointer to batch graphics interface
ClassImp(TGXW)
//______________________________________________________________________________
TGXW::TGXW(Text_t *name, 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 TGXW::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 TGXW::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 TGXW::AllocColor(Colormap_t, ColorStruct_t &color)
{
// Set pixel value. Let system think we could alocate color.
color.fPixel = 0;
return kTRUE;
}
//______________________________________________________________________________
void TGXW::QueryColor(Colormap_t, ColorStruct_t &color)
{
// Set color components to default.
color.fRed = color.fGreen = color.fBlue = 0;
}
//______________________________________________________________________________
void TGXW::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 TGXW::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.