Logo ROOT   6.12/07
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
TGClient Class Reference

Definition at line 46 of file TGClient.h.

Public Member Functions

 TGClient (const char *dpyName=0)
 Create a connection with the display sever on host dpyName and setup the complete GUI system, i.e., graphics contexts, fonts, etc. More...
 
virtual ~TGClient ()
 Closing down client: cleanup and close X connection. More...
 
void AddIdleHandler (TGIdleHandler *h)
 Add handler for idle events. More...
 
void AddUnknownWindowHandler (TGUnknownWindowHandler *h)
 Add handler for unknown (i.e. unregistered) windows. More...
 
void CancelRedraw (TGWindow *w)
 
void ForceRedraw ()
 
void FreeColor (Pixel_t color) const
 Free color. More...
 
void FreeFont (const TGFont *font)
 Free a font. More...
 
void FreeGC (const TGGC *gc)
 Free a graphics context. More...
 
void FreeGC (GContext_t gc)
 Free a graphics context. More...
 
void FreePicture (const TGPicture *pic)
 Free picture resource. More...
 
Bool_t GetColorByName (const char *name, Pixel_t &pixel) const
 Get a color by name. More...
 
Colormap_t GetDefaultColormap () const
 
const TGWindowGetDefaultRoot () const
 Returns the root (i.e. More...
 
UInt_t GetDisplayHeight () const
 Get display height. More...
 
UInt_t GetDisplayWidth () const
 Get display width. More...
 
TGFontGetFont (const char *font, Bool_t fixedDefault=kTRUE)
 Get a font from the font pool. More...
 
TGFontGetFont (const TGFont *font)
 Get again specified font. Will increase its usage count. More...
 
FontStruct_t GetFontByName (const char *name, Bool_t fixedDefault=kTRUE) const
 Get a font by name. More...
 
TGFontPoolGetFontPool () const
 
TGGCGetGC (GCValues_t *values, Bool_t rw=kFALSE)
 Get graphics context from the gc pool. More...
 
TGGCPoolGetGCPool () const
 
Pixel_t GetHilite (Pixel_t base_color) const
 Return pixel value of hilite color based on base_color. More...
 
TListGetListOfPopups () const
 
THashListGetListOfWindows () const
 
TGMimeTypesGetMimeTypeList () const
 
const TGPictureGetPicture (const char *name)
 Get picture from the picture pool. More...
 
const TGPictureGetPicture (const char *name, UInt_t new_width, UInt_t new_height)
 Get picture with specified size from pool (picture will be scaled if necessary). More...
 
TGPicturePoolGetPicturePool () const
 
const TGResourcePoolGetResourcePool () const
 
const TGWindowGetRoot () const
 Returns current root (i.e. More...
 
Pixel_t GetShadow (Pixel_t base_color) const
 Return pixel value of shadow color based on base_color. More...
 
UInt_t GetStyle () const
 
EGEventType GetWaitForEvent () const
 
Window_t GetWaitForWindow () const
 
TGWindowGetWindowById (Window_t sw) const
 Find a TGWindow via its handle. If window is not found return 0. More...
 
TGWindowGetWindowByName (const char *name) const
 Find a TGWindow via its name (unique name used in TGWindow::SavePrimitive). More...
 
Bool_t HandleEvent (Event_t *event)
 Handle a GUI event. More...
 
Bool_t HandleInput ()
 Handles input from the display server. More...
 
Bool_t HandleMaskEvent (Event_t *event, Window_t wid)
 Handle masked events only if window wid is the window for which the event was reported or if wid is a parent of the event window. More...
 
Bool_t IsEditable () const
 
Bool_t IsEditDisabled () const
 Returns kTRUE if edit/guibuilding is forbidden. More...
 
void NeedRedraw (TGWindow *w, Bool_t force=kFALSE)
 Set redraw flags. More...
 
void ProcessedEvent (Event_t *event, Window_t wid)
 Emits a signal when an event has been processed. More...
 
Bool_t ProcessEventsFor (TGWindow *w)
 Like gSystem->ProcessEvents() but then only allow events for w to be processed. More...
 
void ProcessLine (TString cmd, Long_t msg, Long_t parm1, Long_t parm2)
 Execute string "cmd" via the interpreter. More...
 
void RegisteredWindow (Window_t w)
 Emits a signal when a Window has been registered in TGClient. More...
 
void RegisterPopup (TGWindow *w)
 Add a popup menu to the list of popups. More...
 
void RegisterWindow (TGWindow *w)
 Add a TGWindow to the clients list of windows. More...
 
void RemoveIdleHandler (TGIdleHandler *h)
 Remove handler for idle events. More...
 
void RemoveUnknownWindowHandler (TGUnknownWindowHandler *h)
 Remove handler for unknown (i.e. unregistered) windows. More...
 
void ResetWaitFor (TGWindow *w)
 reset waiting More...
 
void SetEditDisabled (Bool_t on=kTRUE)
 If on is kTRUE editting/guibuilding is forbidden. More...
 
void SetRoot (TGWindow *root=0)
 Sets the current root (i.e. More...
 
void SetStyle (UInt_t newstyle)
 
void SetStyle (const char *style)
 Set the button style (modern or classic). More...
 
void SetWaitForWindow (Window_t wid)
 
void UnregisterPopup (TGWindow *w)
 Remove a popup menu from the list of popups. More...
 
void UnregisterWindow (TGWindow *w)
 Remove a TGWindow from the list of windows. More...
 
void WaitFor (TGWindow *w)
 Wait for window to be destroyed. More...
 
void WaitForUnmap (TGWindow *w)
 Wait for window to be unmapped. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
ULong_t CheckedHash ()
 Checked and record whether for this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Clear (Option_t *="")
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility. More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare abstract method. More...
 
virtual void Copy (TObject &object) const
 Copy this to obj. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
virtual Bool_t IsSortable () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. More...
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual void Print (Option_t *option="") const
 This method must be overridden when a class wants to print itself. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
- Public Member Functions inherited from TQObject
 TQObject ()
 TQObject Constructor. More...
 
virtual ~TQObject ()
 TQObject Destructor. More...
 
Bool_t AreSignalsBlocked () const
 
Bool_t BlockSignals (Bool_t b)
 
virtual void ChangedBy (const char *method)
 
void CollectClassSignalLists (TList &list, TClass *cls)
 Collect class signal lists from class cls and all its base-classes. More...
 
Bool_t Connect (const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Non-static method is used to connect from the signal of this object to the receiver slot. More...
 
virtual void Connected (const char *)
 
virtual void Destroyed ()
 
Bool_t Disconnect (const char *signal=0, void *receiver=0, const char *slot=0)
 Disconnects signal of this object from slot of receiver. More...
 
virtual void Disconnected (const char *)
 
template<typename T >
void Emit (const char *signal, const T &arg)
 Activate signal with single parameter. More...
 
void Emit (const char *signal)
 Acitvate signal without args. More...
 
template<typename... T>
void EmitVA (const char *signal_name, Int_t, const T &... params)
 Emit a signal with a varying number of arguments. More...
 
TListGetListOfClassSignals () const
 Returns pointer to list of signals of this class. More...
 
TListGetListOfConnections () const
 
TListGetListOfSignals () const
 
virtual Bool_t HasConnection (const char *signal_name) const
 Return true if there is any object connected to this signal. More...
 
virtual void HighPriority (const char *signal_name, const char *slot_name=0)
 
virtual void LowPriority (const char *signal_name, const char *slot_name=0)
 
virtual void Message (const char *msg)
 
virtual Int_t NumberOfConnections () const
 Return number of connections for this object. More...
 
virtual Int_t NumberOfSignals () const
 Return number of signals for this object. More...
 

Static Public Member Functions

static TGClientInstance ()
 Returns global gClient (initialize graphics first, if not already done) More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 
- Static Public Member Functions inherited from TQObject
static Bool_t AreAllSignalsBlocked ()
 Returns true if all signals are blocked. More...
 
static Bool_t BlockAllSignals (Bool_t b)
 Block or unblock all signals. Returns the previous block status. More...
 
static Bool_t Connect (TQObject *sender, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver. More...
 
static Bool_t Connect (const char *sender_class, const char *signal, const char *receiver_class, void *receiver, const char *slot)
 This method allows to make a connection from any object of the same class to a single slot. More...
 
static Bool_t Disconnect (TQObject *sender, const char *signal=0, void *receiver=0, const char *slot=0)
 Disconnects signal in object sender from slot_method in object receiver. More...
 
static Bool_t Disconnect (const char *class_name, const char *signal, void *receiver=0, const char *slot=0)
 Disconnects "class signal". More...
 

Protected Member Functions

 TGClient (const TGClient &)
 
Bool_t DoRedraw ()
 Redraw all windows that need redrawing. More...
 
TGClientoperator= (const TGClient &)
 
Bool_t ProcessIdleEvent ()
 Process one idle event. More...
 
Bool_t ProcessOneEvent ()
 Process one event. More...
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 
void MakeZombie ()
 
- Protected Member Functions inherited from TQObject
virtual voidGetSender ()
 
virtual const char * GetSenderClassName () const
 

Protected Attributes

Pixel_t fBackColor
 
Pixel_t fBlack
 
Colormap_t fDefaultColormap
 
TGWindowfDefaultRoot
 
TGFontPoolfFontPool
 
Bool_t fForceRedraw
 
Pixel_t fForeColor
 
TGGCPoolfGCPool
 
Bool_t fGlobalNeedRedraw
 
Pixel_t fHilite
 
TListfIdleHandlers
 
TGMimeTypesfMimeTypeList
 
TGPicturePoolfPicturePool
 
TListfPlist
 
TGResourcePoolfResourcePool
 
TGWindowfRoot
 
Pixel_t fSelBackColor
 
Pixel_t fSelForeColor
 
Pixel_t fShadow
 
UInt_t fStyle
 
TListfUWHandlers
 
EGEventType fWaitForEvent
 
Window_t fWaitForWindow
 
Pixel_t fWhite
 
THashListfWlist
 
Int_t fXfd
 
- Protected Attributes inherited from TQObject
TListfListOfConnections
 list of signals from this object More...
 
TListfListOfSignals
 
Bool_t fSignalsBlocked
 list of connections to this object More...
 

Friends

class TGCocoa
 

Additional Inherited Members

- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kInconsistent = 0x08000000,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5),
  kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
- Static Protected Member Functions inherited from TQObject
static Int_t CheckConnectArgs (TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot)
 Checking of consitency of sender/receiver methods/arguments. More...
 
static TString CompressName (const char *method_name)
 Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in the method signature. More...
 
static Bool_t ConnectToClass (TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 Create connection between sender and receiver. More...
 
static Bool_t ConnectToClass (const char *sender_class, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
 This method allows to make connection from any object of the same class to the receiver object. More...
 
- Static Protected Attributes inherited from TQObject
static Bool_t fgAllSignalsBlocked = kFALSE
 flag used for suppression of signals More...
 

#include <TGClient.h>

Inheritance diagram for TGClient:
[legend]

Constructor & Destructor Documentation

◆ TGClient() [1/2]

TGClient::TGClient ( const TGClient )
protected

◆ TGClient() [2/2]

TGClient::TGClient ( const char *  dpyName = 0)

Create a connection with the display sever on host dpyName and setup the complete GUI system, i.e., graphics contexts, fonts, etc.

for all widgets.

Definition at line 124 of file TGClient.cxx.

◆ ~TGClient()

TGClient::~TGClient ( )
virtual

Closing down client: cleanup and close X connection.

Definition at line 619 of file TGClient.cxx.

Member Function Documentation

◆ AddIdleHandler()

void TGClient::AddIdleHandler ( TGIdleHandler h)

Add handler for idle events.

Definition at line 570 of file TGClient.cxx.

◆ AddUnknownWindowHandler()

void TGClient::AddUnknownWindowHandler ( TGUnknownWindowHandler h)

Add handler for unknown (i.e. unregistered) windows.

Definition at line 549 of file TGClient.cxx.

◆ CancelRedraw()

void TGClient::CancelRedraw ( TGWindow w)

Definition at line 383 of file TGClient.cxx.

◆ DoRedraw()

Bool_t TGClient::DoRedraw ( )
protected

Redraw all windows that need redrawing.

Returns kFALSE if no redraw was needed, kTRUE otherwise. Only redraw the application's windows when the event queue does not contain expose event anymore.

Definition at line 792 of file TGClient.cxx.

◆ ForceRedraw()

void TGClient::ForceRedraw ( )
inline

Definition at line 107 of file TGClient.h.

◆ FreeColor()

void TGClient::FreeColor ( Pixel_t  color) const

Free color.

Definition at line 501 of file TGClient.cxx.

◆ FreeFont()

void TGClient::FreeFont ( const TGFont font)

Free a font.

Definition at line 362 of file TGClient.cxx.

◆ FreeGC() [1/2]

void TGClient::FreeGC ( const TGGC gc)

Free a graphics context.

Definition at line 326 of file TGClient.cxx.

◆ FreeGC() [2/2]

void TGClient::FreeGC ( GContext_t  gc)

Free a graphics context.

Definition at line 334 of file TGClient.cxx.

◆ FreePicture()

void TGClient::FreePicture ( const TGPicture pic)

Free picture resource.

Definition at line 306 of file TGClient.cxx.

◆ GetColorByName()

Bool_t TGClient::GetColorByName ( const char *  name,
Pixel_t pixel 
) const

Get a color by name.

If color is found return kTRUE and pixel is set to the color's pixel value, kFALSE otherwise.

Definition at line 392 of file TGClient.cxx.

◆ GetDefaultColormap()

Colormap_t TGClient::GetDefaultColormap ( ) const
inline

Definition at line 154 of file TGClient.h.

◆ GetDefaultRoot()

const TGWindow * TGClient::GetDefaultRoot ( ) const

Returns the root (i.e.

desktop) window. Should only be used as parent for frames that will never be embedded, like popups, message boxes, etc. (like TGToolTips, TGMessageBox, etc.).

Definition at line 232 of file TGClient.cxx.

◆ GetDisplayHeight()

UInt_t TGClient::GetDisplayHeight ( ) const

Get display height.

Definition at line 273 of file TGClient.cxx.

◆ GetDisplayWidth()

UInt_t TGClient::GetDisplayWidth ( ) const

Get display width.

Definition at line 260 of file TGClient.cxx.

◆ GetFont() [1/2]

TGFont * TGClient::GetFont ( const char *  font,
Bool_t  fixedDefault = kTRUE 
)

Get a font from the font pool.

Fonts must be freed via TGClient::FreeFont(). Returns 0 in case of error or if font does not exist. If fixedDefault is false the "fixed" font will not be substituted as fallback when the asked for font does not exist.

Definition at line 346 of file TGClient.cxx.

◆ GetFont() [2/2]

TGFont * TGClient::GetFont ( const TGFont font)

Get again specified font. Will increase its usage count.

Definition at line 354 of file TGClient.cxx.

◆ GetFontByName()

FontStruct_t TGClient::GetFontByName ( const char *  name,
Bool_t  fixedDefault = kTRUE 
) const

Get a font by name.

If font is not found, fixed font is returned, if fixed font also does not exist return 0 and print error. The loaded font needs to be freed using TVirtualX::DeleteFont(). If fixedDefault is false the "fixed" font will not be substituted as fallback when the asked for font does not exist.

Definition at line 422 of file TGClient.cxx.

◆ GetFontPool()

TGFontPool* TGClient::GetFontPool ( ) const
inline

Definition at line 145 of file TGClient.h.

◆ GetGC()

TGGC * TGClient::GetGC ( GCValues_t values,
Bool_t  rw = kFALSE 
)

Get graphics context from the gc pool.

Context must be freed via TGClient::FreeGC(). If rw is true a new read/write-able GC is returned, otherwise a shared read-only context is returned. For historical reasons it is also possible to create directly a TGGC object, but it is advised to use this new interface only.

Definition at line 318 of file TGClient.cxx.

◆ GetGCPool()

TGGCPool* TGClient::GetGCPool ( ) const
inline

Definition at line 140 of file TGClient.h.

◆ GetHilite()

Pixel_t TGClient::GetHilite ( Pixel_t  base_color) const

Return pixel value of hilite color based on base_color.

Definition at line 447 of file TGClient.cxx.

◆ GetListOfPopups()

TList* TGClient::GetListOfPopups ( ) const
inline

Definition at line 158 of file TGClient.h.

◆ GetListOfWindows()

THashList* TGClient::GetListOfWindows ( ) const
inline

Definition at line 157 of file TGClient.h.

◆ GetMimeTypeList()

TGMimeTypes* TGClient::GetMimeTypeList ( ) const
inline

Definition at line 155 of file TGClient.h.

◆ GetPicture() [1/2]

const TGPicture * TGClient::GetPicture ( const char *  name)

Get picture from the picture pool.

Picture must be freed using TGClient::FreePicture(). If picture is not found 0 is returned.

Definition at line 287 of file TGClient.cxx.

◆ GetPicture() [2/2]

const TGPicture * TGClient::GetPicture ( const char *  name,
UInt_t  new_width,
UInt_t  new_height 
)

Get picture with specified size from pool (picture will be scaled if necessary).

Picture must be freed using TGClient::FreePicture(). If picture is not found 0 is returned.

Definition at line 297 of file TGClient.cxx.

◆ GetPicturePool()

TGPicturePool* TGClient::GetPicturePool ( ) const
inline

Definition at line 135 of file TGClient.h.

◆ GetResourcePool()

const TGResourcePool* TGClient::GetResourcePool ( ) const
inline

Definition at line 133 of file TGClient.h.

◆ GetRoot()

const TGWindow * TGClient::GetRoot ( ) const

Returns current root (i.e.

base) window. By changing the root window one can change the window hierarchy, e.g. a top level frame (TGMainFrame) can be embedded in another window.

Definition at line 222 of file TGClient.cxx.

◆ GetShadow()

Pixel_t TGClient::GetShadow ( Pixel_t  base_color) const

Return pixel value of shadow color based on base_color.

Shadow is 60% of base_color intensity.

Definition at line 478 of file TGClient.cxx.

◆ GetStyle()

UInt_t TGClient::GetStyle ( ) const
inline

Definition at line 150 of file TGClient.h.

◆ GetWaitForEvent()

EGEventType TGClient::GetWaitForEvent ( ) const
inline

Definition at line 123 of file TGClient.h.

◆ GetWaitForWindow()

Window_t TGClient::GetWaitForWindow ( ) const
inline

Definition at line 124 of file TGClient.h.

◆ GetWindowById()

TGWindow * TGClient::GetWindowById ( Window_t  sw) const

Find a TGWindow via its handle. If window is not found return 0.

Definition at line 591 of file TGClient.cxx.

◆ GetWindowByName()

TGWindow * TGClient::GetWindowByName ( const char *  name) const

Find a TGWindow via its name (unique name used in TGWindow::SavePrimitive).

If window is not found return 0.

Definition at line 602 of file TGClient.cxx.

◆ HandleEvent()

Bool_t TGClient::HandleEvent ( Event_t event)

Handle a GUI event.

Definition at line 816 of file TGClient.cxx.

◆ HandleInput()

Bool_t TGClient::HandleInput ( )

Handles input from the display server.

Returns kTRUE if one or more events have been processed, kFALSE otherwise.

Definition at line 694 of file TGClient.cxx.

◆ HandleMaskEvent()

Bool_t TGClient::HandleMaskEvent ( Event_t event,
Window_t  wid 
)

Handle masked events only if window wid is the window for which the event was reported or if wid is a parent of the event window.

The not masked event are handled directly. The masked events are: kButtonPress, kButtonRelease, kKeyPress, kKeyRelease, kEnterNotify, kLeaveNotify, kMotionNotify.

Definition at line 853 of file TGClient.cxx.

◆ Instance()

TGClient * TGClient::Instance ( )
static

Returns global gClient (initialize graphics first, if not already done)

Definition at line 89 of file TGClient.cxx.

◆ IsEditable()

Bool_t TGClient::IsEditable ( ) const
inline

Definition at line 98 of file TGClient.h.

◆ IsEditDisabled()

Bool_t TGClient::IsEditDisabled ( ) const

Returns kTRUE if edit/guibuilding is forbidden.

Definition at line 932 of file TGClient.cxx.

◆ NeedRedraw()

void TGClient::NeedRedraw ( TGWindow w,
Bool_t  force = kFALSE 
)

Set redraw flags.

Definition at line 370 of file TGClient.cxx.

◆ operator=()

TGClient& TGClient::operator= ( const TGClient )
protected

◆ ProcessedEvent()

void TGClient::ProcessedEvent ( Event_t event,
Window_t  wid 
)

Emits a signal when an event has been processed.

Used in TRecorder.

Definition at line 949 of file TGClient.cxx.

◆ ProcessEventsFor()

Bool_t TGClient::ProcessEventsFor ( TGWindow w)

Like gSystem->ProcessEvents() but then only allow events for w to be processed.

For example to interrupt the processing and destroy the window, call gROOT->SetInterrupt() before destroying the window.

Definition at line 770 of file TGClient.cxx.

◆ ProcessIdleEvent()

Bool_t TGClient::ProcessIdleEvent ( )
protected

Process one idle event.

Definition at line 677 of file TGClient.cxx.

◆ ProcessLine()

void TGClient::ProcessLine ( TString  cmd,
Long_t  msg,
Long_t  parm1,
Long_t  parm2 
)

Execute string "cmd" via the interpreter.

Before executing replace in the command string the token $MSG, $PARM1 and $PARM2 by msg, parm1 and parm2, respectively. The function in cmd string must accept these as longs.

Definition at line 911 of file TGClient.cxx.

◆ ProcessOneEvent()

Bool_t TGClient::ProcessOneEvent ( )
protected

Process one event.

This method should only be called when there is a GUI event ready to be processed. If event has been processed kTRUE is returned. If processing of a specific event type for a specific window was requested kFALSE is returned when specific event has been processed, kTRUE otherwise. If no more pending events return kFALSE.

Definition at line 643 of file TGClient.cxx.

◆ RegisteredWindow()

void TGClient::RegisteredWindow ( Window_t  w)

Emits a signal when a Window has been registered in TGClient.

Used in TRecorder.

Definition at line 962 of file TGClient.cxx.

◆ RegisterPopup()

void TGClient::RegisterPopup ( TGWindow w)

Add a popup menu to the list of popups.

This list is used to pass events to popup menus that are popped up over a transient window which is waited for (see WaitFor()).

Definition at line 530 of file TGClient.cxx.

◆ RegisterWindow()

void TGClient::RegisterWindow ( TGWindow w)

Add a TGWindow to the clients list of windows.

Definition at line 509 of file TGClient.cxx.

◆ RemoveIdleHandler()

void TGClient::RemoveIdleHandler ( TGIdleHandler h)

Remove handler for idle events.

Definition at line 583 of file TGClient.cxx.

◆ RemoveUnknownWindowHandler()

void TGClient::RemoveUnknownWindowHandler ( TGUnknownWindowHandler h)

Remove handler for unknown (i.e. unregistered) windows.

Definition at line 562 of file TGClient.cxx.

◆ ResetWaitFor()

void TGClient::ResetWaitFor ( TGWindow w)

reset waiting

Definition at line 760 of file TGClient.cxx.

◆ SetEditDisabled()

void TGClient::SetEditDisabled ( Bool_t  on = kTRUE)

If on is kTRUE editting/guibuilding is forbidden.

Definition at line 940 of file TGClient.cxx.

◆ SetRoot()

void TGClient::SetRoot ( TGWindow root = 0)

Sets the current root (i.e.

base) window. By changing the root window one can change the window hierarchy, e.g. a top level frame (TGMainFrame) can be embedded in another window.

Definition at line 242 of file TGClient.cxx.

◆ SetStyle() [1/2]

void TGClient::SetStyle ( UInt_t  newstyle)
inline

Definition at line 151 of file TGClient.h.

◆ SetStyle() [2/2]

void TGClient::SetStyle ( const char *  style)

Set the button style (modern or classic).

Definition at line 250 of file TGClient.cxx.

◆ SetWaitForWindow()

void TGClient::SetWaitForWindow ( Window_t  wid)
inline

Definition at line 125 of file TGClient.h.

◆ UnregisterPopup()

void TGClient::UnregisterPopup ( TGWindow w)

Remove a popup menu from the list of popups.

Definition at line 541 of file TGClient.cxx.

◆ UnregisterWindow()

void TGClient::UnregisterWindow ( TGWindow w)

Remove a TGWindow from the list of windows.

Definition at line 520 of file TGClient.cxx.

◆ WaitFor()

void TGClient::WaitFor ( TGWindow w)

Wait for window to be destroyed.

Definition at line 706 of file TGClient.cxx.

◆ WaitForUnmap()

void TGClient::WaitForUnmap ( TGWindow w)

Wait for window to be unmapped.

Definition at line 734 of file TGClient.cxx.

Friends And Related Function Documentation

◆ TGCocoa

friend class TGCocoa
friend

Definition at line 48 of file TGClient.h.

Member Data Documentation

◆ fBackColor

Pixel_t TGClient::fBackColor
protected

Definition at line 51 of file TGClient.h.

◆ fBlack

Pixel_t TGClient::fBlack
protected

Definition at line 58 of file TGClient.h.

◆ fDefaultColormap

Colormap_t TGClient::fDefaultColormap
protected

Definition at line 67 of file TGClient.h.

◆ fDefaultRoot

TGWindow* TGClient::fDefaultRoot
protected

Definition at line 59 of file TGClient.h.

◆ fFontPool

TGFontPool* TGClient::fFontPool
protected

Definition at line 64 of file TGClient.h.

◆ fForceRedraw

Bool_t TGClient::fForceRedraw
protected

Definition at line 69 of file TGClient.h.

◆ fForeColor

Pixel_t TGClient::fForeColor
protected

Definition at line 52 of file TGClient.h.

◆ fGCPool

TGGCPool* TGClient::fGCPool
protected

Definition at line 63 of file TGClient.h.

◆ fGlobalNeedRedraw

Bool_t TGClient::fGlobalNeedRedraw
protected

Definition at line 68 of file TGClient.h.

◆ fHilite

Pixel_t TGClient::fHilite
protected

Definition at line 53 of file TGClient.h.

◆ fIdleHandlers

TList* TGClient::fIdleHandlers
protected

Definition at line 73 of file TGClient.h.

◆ fMimeTypeList

TGMimeTypes* TGClient::fMimeTypeList
protected

Definition at line 66 of file TGClient.h.

◆ fPicturePool

TGPicturePool* TGClient::fPicturePool
protected

Definition at line 65 of file TGClient.h.

◆ fPlist

TList* TGClient::fPlist
protected

Definition at line 71 of file TGClient.h.

◆ fResourcePool

TGResourcePool* TGClient::fResourcePool
protected

Definition at line 62 of file TGClient.h.

◆ fRoot

TGWindow* TGClient::fRoot
protected

Definition at line 60 of file TGClient.h.

◆ fSelBackColor

Pixel_t TGClient::fSelBackColor
protected

Definition at line 55 of file TGClient.h.

◆ fSelForeColor

Pixel_t TGClient::fSelForeColor
protected

Definition at line 56 of file TGClient.h.

◆ fShadow

Pixel_t TGClient::fShadow
protected

Definition at line 54 of file TGClient.h.

◆ fStyle

UInt_t TGClient::fStyle
protected

Definition at line 76 of file TGClient.h.

◆ fUWHandlers

TList* TGClient::fUWHandlers
protected

Definition at line 72 of file TGClient.h.

◆ fWaitForEvent

EGEventType TGClient::fWaitForEvent
protected

Definition at line 74 of file TGClient.h.

◆ fWaitForWindow

Window_t TGClient::fWaitForWindow
protected

Definition at line 75 of file TGClient.h.

◆ fWhite

Pixel_t TGClient::fWhite
protected

Definition at line 57 of file TGClient.h.

◆ fWlist

THashList* TGClient::fWlist
protected

Definition at line 70 of file TGClient.h.

◆ fXfd

Int_t TGClient::fXfd
protected

Definition at line 61 of file TGClient.h.

Libraries for TGClient:
[legend]

The documentation for this class was generated from the following files: