/usr/include/root/TGObject.h is in libroot-gui-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | // @(#)root/gui:$Id$
// Author: Fons Rademakers 27/12/97
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TGObject
#define ROOT_TGObject
//////////////////////////////////////////////////////////////////////////
// //
// TGObject //
// //
// This class is the baseclass for all ROOT GUI widgets. //
// The ROOT GUI components emulate the Win95 look and feel and the code //
// is based on the XClass'95 code (see Copyleft in source). //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TObject
#include "TObject.h"
#endif
#ifndef ROOT_GuiTypes
#include "GuiTypes.h"
#endif
class TGClient;
class TGObject : public TObject {
protected:
Handle_t fId; // X11/Win32 Window identifier
TGClient *fClient; // Connection to display server
TGObject& operator=(const TGObject& tgo)
{if(this!=&tgo) { TObject::operator=(tgo); fId=tgo.fId;
fClient=tgo.fClient; } return *this; }
public:
TGObject(): fId(0), fClient(0) { }
TGObject(const TGObject& tgo): TObject(tgo), fId(tgo.fId), fClient(tgo.fClient) { }
virtual ~TGObject() { }
Handle_t GetId() const { return fId; }
TGClient *GetClient() const { return fClient; }
ULong_t Hash() const { return (ULong_t) fId >> 0; }
Bool_t IsEqual(const TObject *obj) const { return fId == ((const TGObject *) obj)->fId; }
virtual void SaveAs(const char* filename = "", Option_t* option = "") const;
ClassDef(TGObject,0) //ROOT GUI base class
};
#endif
|