ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 54 of file TGClient.h.

Public Member Functions

 TGClient (const char *dpyName=0)
 
virtual ~TGClient ()
 Closing down client: cleanup and close X connection. More...
 
const TGWindowGetRoot () const
 Returns current root (i.e. More...
 
const TGWindowGetDefaultRoot () const
 Returns the root (i.e. More...
 
void SetRoot (TGWindow *root=0)
 Sets the current root (i.e. More...
 
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...
 
UInt_t GetDisplayWidth () const
 Get display width. More...
 
UInt_t GetDisplayHeight () const
 Get display height. More...
 
Bool_t IsEditable () const
 
Bool_t IsEditDisabled () const
 Returns kTRUE if edit/guibuilding is forbidden. More...
 
void SetEditDisabled (Bool_t on=kTRUE)
 If on is kTRUE editting/guibuilding is forbidden. More...
 
FontStruct_t GetFontByName (const char *name, Bool_t fixedDefault=kTRUE) const
 Get a font by name. More...
 
Bool_t GetColorByName (const char *name, Pixel_t &pixel) const
 Get a color by name. More...
 
Pixel_t GetHilite (Pixel_t base_color) const
 Return pixel value of hilite color based on base_color. More...
 
Pixel_t GetShadow (Pixel_t base_color) const
 Return pixel value of shadow color based on base_color. More...
 
void FreeColor (Pixel_t color) const
 Free color. More...
 
void ForceRedraw ()
 
void NeedRedraw (TGWindow *w, Bool_t force=kFALSE)
 Set redraw flags. More...
 
void CancelRedraw (TGWindow *w)
 
void RegisterWindow (TGWindow *w)
 Add a TGWindow to the clients list of windows. More...
 
void UnregisterWindow (TGWindow *w)
 Remove a TGWindow from the list of windows. More...
 
void RegisterPopup (TGWindow *w)
 Add a popup menu to the list of popups. More...
 
void UnregisterPopup (TGWindow *w)
 Remove a popup menu from the list of popups. More...
 
void AddUnknownWindowHandler (TGUnknownWindowHandler *h)
 Add handler for unknown (i.e. unregistered) windows. More...
 
void RemoveUnknownWindowHandler (TGUnknownWindowHandler *h)
 Remove handler for unknown (i.e. unregistered) windows. More...
 
void AddIdleHandler (TGIdleHandler *h)
 Add handler for idle events. More...
 
void RemoveIdleHandler (TGIdleHandler *h)
 Remove handler for idle events. More...
 
Bool_t HandleInput ()
 Handles input from the display server. More...
 
void ProcessLine (TString cmd, Long_t msg, Long_t parm1, Long_t parm2)
 Execute string "cmd" via the interpreter. More...
 
void WaitFor (TGWindow *w)
 Wait for window to be destroyed. More...
 
void WaitForUnmap (TGWindow *w)
 Wait for window to be unmapped. More...
 
void ResetWaitFor (TGWindow *w)
 reset waiting More...
 
EGEventType GetWaitForEvent () const
 
Window_t GetWaitForWindow () const
 
void SetWaitForWindow (Window_t wid)
 
Bool_t ProcessEventsFor (TGWindow *w)
 Like gSystem->ProcessEvents() but then only allow events for w to be processed. More...
 
Bool_t HandleEvent (Event_t *event)
 Handle a GUI event. 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...
 
void RegisteredWindow (Window_t w)
 Emits a signal when a Window has been registered in TGClient. More...
 
void ProcessedEvent (Event_t *event, Window_t wid)
 Emits a signal when an event has been processed. More...
 
const TGResourcePoolGetResourcePool () const
 
TGPicturePoolGetPicturePool () 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...
 
void FreePicture (const TGPicture *pic)
 Free picture resource. More...
 
TGGCPoolGetGCPool () const
 
TGGCGetGC (GCValues_t *values, Bool_t rw=kFALSE)
 Get graphics context from the gc pool. More...
 
void FreeGC (const TGGC *gc)
 Free a graphics context. More...
 
void FreeGC (GContext_t gc)
 Free a graphics context. More...
 
TGFontPoolGetFontPool () const
 
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...
 
void FreeFont (const TGFont *font)
 Free a font. More...
 
UInt_t GetStyle () const
 
void SetStyle (UInt_t newstyle)
 
void SetStyle (const char *style)
 Set the button style (modern or classic). More...
 
Colormap_t GetDefaultColormap () const
 
TGMimeTypesGetMimeTypeList () const
 
THashListGetListOfWindows () const
 
TListGetListOfPopups () const
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. 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...
 
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 pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. 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 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 UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual const char * GetTitle () const
 Returns title of object. 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...
 
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...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
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 IsSortable () const
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
virtual void ls (Option_t *option="") const
 The ls function lists the contents of a class on stdout. 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...
 
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...
 
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 UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. 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...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. 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)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. 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...
 
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...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
- Public Member Functions inherited from TQObject
 TQObject ()
 TQObject Constructor. More...
 
virtual ~TQObject ()
 TQObject Destructor. More...
 
TListGetListOfClassSignals () const
 Returns pointer to list of signals of this class. More...
 
TListGetListOfSignals () const
 
TListGetListOfConnections () const
 
Bool_t AreSignalsBlocked () const
 
Bool_t BlockSignals (Bool_t b)
 
void CollectClassSignalLists (TList &list, TClass *cls)
 Collect class signal lists from class cls and all its base-classes. More...
 
template<typename... T>
void EmitVA (const char *signal_name, Int_t, const T &...params)
 
void EmitVA (const char *signal, Int_t nargs, va_list va)=delete
 
void Emit (const char *signal)
 Acitvate signal without args. More...
 
void Emit (const char *signal, Long_t *paramArr)
 Emit a signal with a varying number of arguments, paramArr is an array of the parameters. More...
 
void Emit (const char *signal, const char *params)
 Activate signal with parameter text string. More...
 
void Emit (const char *signal, Double_t param)
 Activate signal with single parameter. More...
 
void Emit (const char *signal, Long_t param)
 Activate signal with single parameter. More...
 
void Emit (const char *signal, Long64_t param)
 Activate signal with single parameter. More...
 
void Emit (const char *signal, Bool_t param)
 
void Emit (const char *signal, Char_t param)
 
void Emit (const char *signal, UChar_t param)
 
void Emit (const char *signal, Short_t param)
 
void Emit (const char *signal, UShort_t param)
 
void Emit (const char *signal, Int_t param)
 
void Emit (const char *signal, UInt_t param)
 
void Emit (const char *signal, ULong_t param)
 
void Emit (const char *signal, ULong64_t param)
 
void Emit (const char *signal, Float_t param)
 
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...
 
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 HighPriority (const char *signal_name, const char *slot_name=0)
 
virtual void LowPriority (const char *signal_name, const char *slot_name=0)
 
virtual Bool_t HasConnection (const char *signal_name) const
 Return true if there is any object connected to this signal. More...
 
virtual Int_t NumberOfSignals () const
 Return number of signals for this object. More...
 
virtual Int_t NumberOfConnections () const
 Return number of connections for this object. More...
 
virtual void Connected (const char *)
 
virtual void Disconnected (const char *)
 
virtual void Destroyed ()
 
virtual void ChangedBy (const char *method)
 
virtual void Message (const char *msg)
 

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 void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat 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 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...
 
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...
 

Protected Member Functions

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

Protected Attributes

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

Friends

class TGCocoa
 

Additional Inherited Members

- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
- Static Protected Member Functions inherited from TQObject
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 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)
 
- 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::TGClient ( const TGClient )
protected
TGClient::TGClient ( const char *  dpyName = 0)
TGClient::~TGClient ( )
virtual

Closing down client: cleanup and close X connection.

Definition at line 619 of file TGClient.cxx.

Member Function Documentation

void TGClient::AddIdleHandler ( TGIdleHandler h)

Add handler for idle events.

Definition at line 570 of file TGClient.cxx.

void TGClient::AddUnknownWindowHandler ( TGUnknownWindowHandler h)

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

Definition at line 549 of file TGClient.cxx.

void TGClient::CancelRedraw ( TGWindow w)

Definition at line 383 of file TGClient.cxx.

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.

Referenced by ProcessOneEvent().

void TGClient::ForceRedraw ( )
inline

Definition at line 115 of file TGClient.h.

void TGClient::FreeColor ( Pixel_t  color) const

Free color.

Definition at line 501 of file TGClient.cxx.

void TGClient::FreeFont ( const TGFont font)

Free a font.

Definition at line 362 of file TGClient.cxx.

Referenced by TGHtml::GetFont(), TGLabel::SetTextFont(), TGHtml::~TGHtml(), and TGMdiMainFrame::~TGMdiMainFrame().

void TGClient::FreeGC ( const TGGC gc)

Free a graphics context.

Definition at line 326 of file TGClient.cxx.

Referenced by TGLineLBEntry::Update(), TGedSelect::~TGedSelect(), TGFontDialog::~TGFontDialog(), and TGLineLBEntry::~TGLineLBEntry().

void TGClient::FreeGC ( GContext_t  gc)

Free a graphics context.

Definition at line 334 of file TGClient.cxx.

void TGClient::FreePicture ( const TGPicture pic)
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.

Referenced by GetHilite(), TGProgressBar::SetBarColor(), TestDialog::TestDialog(), TestMsgBox::TestMsgBox(), and TNewChainDlg::TNewChainDlg().

Colormap_t TGClient::GetDefaultColormap ( ) const
inline

Definition at line 162 of file TGClient.h.

Referenced by TGHtml::AllocColor(), and TGPicturePool::GetPicture().

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.

Referenced by TGFileContainer::AddFile(), TGMenuBar::AddPopup(), TGTextEditor::Build(), TSessionViewer::Build(), TGuiBldDragManager::ChangeImage(), TGuiBldDragManager::ChangePicture(), TGuiBldDragManager::CheckTargetAtPoint(), TRootBrowserLite::CreateBrowser(), TRootCanvas::CreateCanvas(), TGLSAViewer::CreateMenus(), TGuiBldDragManager::DeleteFrame(), TH1Editor::DoApply(), TH2Editor::DoApply(), TH1Editor::DoBinPressed(), TH2Editor::DoBinPressed(), TGuiBldDragManager::DoResize(), TGuiBldDragManager::DrawLasso(), TGuiBldDragManager::Drop(), TGuiBldDragManager::FindCompositeFrame(), TRootGuiBuilder::FindEditableMdiFrame(), TGContainer::FindFrameByName(), TGuiBldDragManager::FindLayoutFrame(), TGuiBldDragManager::FindMdiFrame(), TGMdiMainFrame::FreeSize(), TGuiBldDragManager::GetBtnEnableParent(), TGuiBldDragManager::GetEditableParent(), TGWindow::GetMainFrame(), TGuiBldNameFrame::GetMdi(), TGuiBldDragManager::GetMovableParent(), TGuiBldDragManager::GetResizableParent(), TGTextEditor::Goto(), TGuiBldDragManager::GrabFrame(), TGuiBldDragManager::HandleAction(), TGuiBldDragManager::HandleAlignment(), TGVSplitter::HandleButton(), TGHSplitter::HandleButton(), TGTextEntry::HandleButton(), TGuiBldDragManager::HandleClientMessage(), TGuiBldDragManager::HandleCopy(), TGuiBldDragManager::HandleDelete(), TGuiBldDragManager::HandleGrid(), TGTextEdit::HandleKey(), TGuiBldDragManager::HandleKey(), TGuiBldDragManager::HandlePaste(), TGuiBldDragManager::HandleReturn(), TGuiBldDragManager::InEditable(), TGTextEdit::Init(), TGComboBox::Init(), TGTextEditor::LoadFile(), TRootGuiBuilder::OpenProject(), TGuiBldDragManager::PlaceFrame(), TGTextEdit::Print(), TGWindow::Print(), TRootCanvas::PrintCanvas(), TGTextEditor::PrintText(), TGTextEdit::ProcessMessage(), TRootCanvas::ProcessMessage(), TRootBrowserLite::ProcessMessage(), TGuiBldDragManager::RecognizeGesture(), TEveGListTreeEditorFrame::ReconfToHorizontal(), TEveGListTreeEditorFrame::ReconfToVertical(), TEveCompositeFrame::RelinquishEveWindow(), TGPack::RemoveFrameInternal(), TGuiBldDragManager::ReparentFrames(), TGContainer::RepeatSearch(), TGuiBldDragManager::Save(), TGTextEdit::SaveFile(), TGTextEditor::SaveFileAs(), TGuiBldDragManager::SaveFrame(), TGMainFrame::SaveFrameAsCodeOrImage(), TRootGuiBuilder::SaveProject(), TGTextEdit::Search(), TGContainer::Search(), TGListTree::Search(), TGuiBldDragManager::SelectFrame(), TGButton::SetToolTipText(), TGImageMap::SetToolTipText(), TGTextEntry::SetToolTipText(), TGListTree::SetToolTipText(), TRootCanvas::ShowEditor(), TSessionViewer::ShowEnabledPackages(), TSessionViewer::ShowLog(), TSessionViewer::ShowPackages(), TSessionViewer::ShowStatus(), TGedNameFrame::TGedNameFrame(), TGMainFrame::TGMainFrame(), TGMdiTitleIcon::TGMdiTitleIcon(), TGSelectedPicture::TGSelectedPicture(), TNewChainDlg::TNewChainDlg(), TNewQueryDlg::TNewQueryDlg(), TUploadDataSetDlg::TUploadDataSetDlg(), TGDockableFrame::UndockContainer(), TGuiBldNameFrame::UpdateName(), and TGWindow::~TGWindow().

UInt_t TGClient::GetDisplayHeight ( ) const

Get display height.

Definition at line 273 of file TGClient.cxx.

Referenced by TGTransientFrame::CenterOnParent(), TGToolTip::HandleTimer(), and TRootCanvas::ShowStatusBar().

UInt_t TGClient::GetDisplayWidth ( ) const
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.

Referenced by TGSpeedo::Build(), TGHtml::GetFont(), TGFontDialog::GetFontName(), TGTextEditor::ProcessMessage(), TGTableCell::SetFont(), TGTextEntry::SetFont(), TGTextButton::SetFont(), TGSplitButton::SetFont(), TGLabel::SetTextFont(), TGGroupFrame::SetTextFont(), and TGMdiTitleBar::SetTitleBarColors().

TGFont * TGClient::GetFont ( const TGFont font)

Get again specified font. Will increase its usage count.

Definition at line 354 of file TGClient.cxx.

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.

Referenced by TGFontPool::GetNativeFont().

TGFontPool* TGClient::GetFontPool ( ) const
inline
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.

Referenced by TGFontTypeComboBox::TGFontTypeComboBox(), and TGLineLBEntry::TGLineLBEntry().

TGGCPool* TGClient::GetGCPool ( ) const
inline
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.

TList* TGClient::GetListOfPopups ( ) const
inline

Definition at line 166 of file TGClient.h.

Referenced by TGuiBldDragManager::UnmapAllPopups().

THashList* TGClient::GetListOfWindows ( ) const
inline

Definition at line 165 of file TGClient.h.

TGMimeTypes* TGClient::GetMimeTypeList ( ) const
inline
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.

Referenced by TRootGuiBuilder::AddAction(), TGToolBar::AddButton(), TGuiBldDragManager::AddClassMenuMethods(), TGuiBldDragManager::AddDialogMethods(), TestShutter::AddShutterItem(), TSessionFrame::Build(), TSessionViewer::Build(), TGToolBar::ChangeIcon(), TGuiBldDragManager::ChangePicture(), TSessionViewer::ChangeRightLogo(), TGSlider::ChangeSliderPic(), ClassImp(), TGFileBrowser::DoubleClicked(), TTreeViewer::Empty(), TTVLVContainer::EmptyAll(), TGMimeTypes::GetIcon(), TGContainer::GetObjPicture(), TTVLVContainer::HandleButton(), TGListTree::HandleMotion(), TGComboBox::Init(), TGCheckButton::Init(), TGRadioButton::Init(), TRootGuiBuilder::InitMenu(), TGuiBldDragManager::Menu4Frame(), TGuiBldDragManager::Menu4Lasso(), TSessionFrame::OnBtnAddClicked(), TSessionFrame::OnBtnDownClicked(), TSessionFrame::OnBtnRemoveClicked(), TSessionFrame::OnBtnUpClicked(), TSessionFrame::OnDisablePackages(), TSessionFrame::OnEnablePackages(), TSessionFrame::OnUploadPackages(), TGListTreeItemStd::SetCheckBoxPictures(), TTVLVEntry::SetCutType(), TTVLVEntry::SetExpression(), TGMainFrame::SetIconPixmap(), TGListTreeItemStd::SetPictures(), TRootGuiBuilder::SwitchToolbarButton(), TestMsgBox::TestMsgBox(), TestShutter::TestShutter(), TGDoubleHSlider::TGDoubleHSlider(), TGDoubleVSlider::TGDoubleVSlider(), TGeoManagerEditor::TGeoManagerEditor(), TGeoMediumEditor::TGeoMediumEditor(), TGeoNodeEditor::TGeoNodeEditor(), TGeoVolumeEditor::TGeoVolumeEditor(), TGFileContainer::TGFileContainer(), TGFileDialog::TGFileDialog(), TGFSComboBox::TGFSComboBox(), TGHScrollBar::TGHScrollBar(), TGHSlider::TGHSlider(), TGHSplitter::TGHSplitter(), TGLVEntry::TGLVEntry(), TGMdiButtons::TGMdiButtons(), TGMdiTitleBar::TGMdiTitleBar(), TGMsgBox::TGMsgBox(), TGPictureButton::TGPictureButton(), TGPrintDialog::TGPrintDialog(), TGTripleHSlider::TGTripleHSlider(), TGVScrollBar::TGVScrollBar(), TGVSlider::TGVSlider(), TGVSplitter::TGVSplitter(), TRootGuiBuilder::TRootGuiBuilder(), TGFSComboBox::Update(), TGListTree::UpdateChecked(), TSessionFrame::UpdateListOfDataSets(), and TSessionFrame::UpdatePackages().

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.

TGPicturePool* TGClient::GetPicturePool ( ) const
inline
const TGResourcePool* TGClient::GetResourcePool ( ) const
inline
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.

Referenced by TGedEditor::ActivateEditor(), TUploadDataSetDlg::BrowseFiles(), TTreeViewer::BuildInterface(), TGuiBldDragManager::ChangeImage(), TGuiBldDragManager::ChangePicture(), TSessionViewer::CleanupSession(), TGuiBldDragManager::CloneEditable(), TFunctionParametersDialog::CloseWindow(), TFitParametersDialog::CloseWindow(), TRootGuiBuilder::CloseWindow(), TGuiBldDragManager::Compact(), TRootBrowser::CreateBrowser(), TGLSAViewer::CreateFrames(), TGuiBldDragManager::CreatePropertyEditor(), TSessionViewer::DeleteQuery(), TFitEditor::DoAdvancedOptions(), TFitEditor::DoDataSet(), TFitEditor::DoEnteredFunction(), TTreeViewer::DoError(), TFitEditor::DoFit(), TFitParametersDialog::DoParBound(), TFunctionParametersDialog::DoParMaxLimit(), TFitParametersDialog::DoParMaxLimit(), TFunctionParametersDialog::DoParMinLimit(), TFitParametersDialog::DoParMinLimit(), TGuiBldDragManager::DoRedraw(), TGuiBldDragManager::DoReplace(), TGuiBldDragManager::DoResize(), TFitEditor::DoUserDialog(), TGuiBldDragManager::DrawLasso(), TTreeViewer::EditExpression(), TRootGuiBuilder::ExecuteAction(), TGTextEditor::ExecuteMacro(), TGeoTabManager::GetEditors(), TGeoTransientPanel::GetEditors(), TFitEditor::GetFitFunction(), TGuiBldDragManager::GetFramesInside(), TGuiBldDragManager::HandleAction(), TGuiBldDragManager::HandleAlignment(), TGuiBldDragManager::HandleButtonRelease(), TGuiBldDragManager::HandleClientMessage(), TGuiBldDragManager::HandleDelete(), TGTextView::HandleDNDDrop(), TGCompositeFrame::HandleDragEnter(), TGCompositeFrame::HandleDragLeave(), TGuiBldDragManager::HandleGrid(), TGuiBldDragManager::HandleKey(), TGuiBldDragManager::HandleLayoutOrder(), TRootGuiBuilder::HandleMenu(), TGuiBldDragManager::HandlePaste(), TGuiBldDragManager::HandleReturn(), TGuiBldDragManager::InEditable(), TGWindow::IsEditable(), TGCompositeFrame::IsEditable(), TGTextEditor::IsSaved(), TGTextEditor::LoadFile(), TRootGuiBuilder::NewProject(), TNewQueryDlg::OnBrowseChain(), TEditQueryFrame::OnBrowseChain(), TNewQueryDlg::OnBrowseSelector(), TEditQueryFrame::OnBrowseSelector(), TSessionServerFrame::OnBtnAddClicked(), TSessionFrame::OnBtnAddClicked(), TNewQueryDlg::OnBtnCloseClicked(), TSessionServerFrame::OnBtnDeleteClicked(), TSessionQueryFrame::OnBtnSubmit(), TSessionServerFrame::OnConfigFileClicked(), TRootGuiBuilder::OpenProject(), TGuiBldDragManager::PlaceFrame(), TGHtmlBrowser::ProcessMessage(), TGTextEditor::ProcessMessage(), TGFileDialog::ProcessMessage(), TestMainFrame::ProcessMessage(), TGPrintDialog::ProcessMessage(), TestMsgBox::ProcessMessage(), TTreeViewer::ProcessMessage(), TSessionViewer::ProcessMessage(), TSessionViewer::ResetSession(), TGuiBldGeometryFrame::ResizeSelected(), TGuiBldDragManager::Save(), TGTextEditor::SaveFile(), TGuiBldDragManager::SaveFrame(), TRootGuiBuilder::SaveProject(), TGuiBldDragManager::SetCursorType(), TGuiBldDragManager::SetEditable(), TGMainFrame::SetMWMHints(), TGuiBldHintsEditor::SetPosition(), TTVLVEntry::SetToolTipText(), TGMainFrame::SetWMPosition(), TGMainFrame::SetWMSize(), TGMainFrame::SetWMSizeHints(), TGMainFrame::SetWMState(), TRootCanvas::ShowEditor(), TSessionFrame::ShutdownSession(), TestMainFrame::TestMainFrame(), TEveGedEditor::TEveGedEditor(), TGColorDialog::TGColorDialog(), TGMainFrame::TGMainFrame(), and TUploadDataSetDlg::UploadDataSet().

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.

Referenced by TGShutterItem::TGShutterItem().

UInt_t TGClient::GetStyle ( ) const
inline

Definition at line 158 of file TGClient.h.

EGEventType TGClient::GetWaitForEvent ( ) const
inline
Window_t TGClient::GetWaitForWindow ( ) const
inline

Definition at line 132 of file TGClient.h.

TGWindow * TGClient::GetWindowById ( Window_t  sw) const
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.

Bool_t TGClient::HandleEvent ( Event_t event)

Handle a GUI event.

Definition at line 816 of file TGClient.cxx.

Referenced by ProcessOneEvent().

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.

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.

Referenced by ProcessOneEvent().

TGClient * TGClient::Instance ( )
static

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

Definition at line 89 of file TGClient.cxx.

Bool_t TGClient::IsEditable ( ) const
inline

Definition at line 106 of file TGClient.h.

Referenced by TGMainFrame::BindKey(), TRootGuiBuilder::CloseWindow(), TGuiBldDragManager::Compact(), TRootContextMenu::CreateMenu(), TRootContextMenu::DisplayPopup(), TGuiBldDragManager::DoMove(), TGColorDialog::DoPreview(), TGuiBldDragManager::DoRedraw(), TGuiBldDragManager::DoResize(), TGuiBldDragManager::DrawGrabRectangles(), TGuiBldDragManager::DrawLasso(), TRootGuiBuilder::ExecuteAction(), TGFrame::GetDragType(), TGuiBldDragManager::GrabFrame(), TGuiBldDragManager::HandleAction(), TGuiBldDragManager::HandleAlignment(), TGTextEdit::HandleButton(), TGHScrollBar::HandleButton(), TGVScrollBar::HandleButton(), TGLBContainer::HandleButton(), TRootGuiBuilder::HandleButtons(), TGuiBldDragManager::HandleDelete(), TGCompositeFrame::HandleDragDrop(), TGCompositeFrame::HandleDragEnter(), TGCompositeFrame::HandleDragLeave(), TRootGuiBuilder::HandleMenu(), TGuiBldDragManager::HandleReturn(), TGuiBldDragManager::HandleTimerEvent(), TRootGuiBuilder::HandleWindowClosed(), TGuiBldDragManager::IgnoreEvent(), TGuiBldDragManager::IsSelectedVisible(), TRootGuiBuilder::MaybeCloseWindow(), TGuiBldDragManager::PlaceFrame(), TGComboBoxPopup::PlacePopup(), TGColorPopup::PreviewAlphaColor(), TGColorPopup::PreviewColor(), TGColorDialog::ProcessMessage(), TGuiBldDragManager::RecognizeGesture(), TGuiBldDragManager::ReparentFrames(), TGIcon::Reset(), TGuiBldDragManager::Save(), TGuiBldDragManager::SaveFrame(), TGuiBldDragManager::SelectFrame(), TGuiBldDragManager::SetCursorType(), TGuiBldDragManager::SetEditable(), TGMainFrame::SetMWMHints(), TGMainFrame::SetWMPosition(), TGMainFrame::SetWMSize(), TGMainFrame::SetWMSizeHints(), TGMainFrame::SetWMState(), TRootGuiBuilder::SwitchToolbarButton(), TGColorDialog::TGColorDialog(), TGColorSelect::TGColorSelect(), TGHSlider::TGHSlider(), TGMainFrame::TGMainFrame(), TGVSlider::TGVSlider(), and TRootGuiBuilder::Update().

Bool_t TGClient::IsEditDisabled ( ) const

Returns kTRUE if edit/guibuilding is forbidden.

Definition at line 932 of file TGClient.cxx.

Referenced by TGFrame::HandleEvent().

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

Set redraw flags.

Definition at line 370 of file TGClient.cxx.

Referenced by TUploadDataSetDlg::AddFiles(), TRootGuiBuilder::AddMacro(), TTreeViewer::AppendTree(), TGFrame::ChangeBackground(), TGuiBldDragManager::ChangeBackgroundColor(), TGuiBldNameFrame::ChangeSelected(), TGuiBldHintsEditor::ChangeSelected(), TGuiBldEditor::ChangeSelected(), TGCompositeFrame::ChangeSubframesBackground(), TGTab::ChangeTab(), TSessionViewer::CleanupSession(), TUploadDataSetDlg::ClearFiles(), TGContainer::ClearViewPort(), TGCanvas::ClearViewPort(), TGuiBldDragManager::Compact(), TGListTree::DeleteItem(), TSessionViewer::DeleteQuery(), TGLabel::Disable(), TGedSelect::Disable(), TGColorSelect::Disable(), TGSpeedo::DisableThreshold(), TH1Editor::DoBinMoved(), TH2Editor::DoBinMoved(), TH1Editor::DoBinReleased1(), TH2Editor::DoBinReleased1(), TH1Editor::DoOffsetMoved(), TH2Editor::DoOffsetMoved(), TFitParametersDialog::DoParBound(), TFunctionParametersDialog::DoParMaxLimit(), TFitParametersDialog::DoParMaxLimit(), TFunctionParametersDialog::DoParMinLimit(), TFitParametersDialog::DoParMinLimit(), TFunctionParametersDialog::DoParValue(), TFitParametersDialog::DoParValue(), TGuiBldDragManager::DoRedraw(), TGuiBldDragManager::DoResize(), TH1Editor::DoSliderMoved(), TF1Editor::DoSliderXMoved(), TH2Editor::DoSliderXMoved(), TF1Editor::DoSliderXPressed(), TF1Editor::DoSliderXReleased(), TH2Editor::DoSliderYMoved(), TGTableHeaderFrame::DrawRegion(), TGContainer::DrawRegion(), TGLabel::Enable(), TGedSelect::Enable(), TGColorSelect::Enable(), TRootBrowserLite::ExecuteDefaultAction(), TGProgressBar::Format(), TGFontDialog::GetFontName(), TGuiBldDragManager::HandleAction(), TGComboBox::HandleButton(), TGVSlider::HandleButton(), TGHSlider::HandleButton(), TGLVContainer::HandleButton(), TGuiBldDragManager::HandleButtonPress(), TRootGuiBuilder::HandleButtons(), TGSplitFrame::HandleConfigureNotify(), TGVSlider::HandleConfigureNotify(), TGHSlider::HandleConfigureNotify(), TGDockButton::HandleCrossing(), TGWindow::HandleExpose(), TGView::HandleExpose(), TGContainer::HandleExpose(), TGTextEdit::HandleFocusChange(), TGTextEntry::HandleFocusChange(), TGTextEntry::HandleKey(), TGuiBldDragManager::HandleKey(), TGTripleVSlider::HandleMotion(), TGTripleHSlider::HandleMotion(), TGVSlider::HandleMotion(), TGHSlider::HandleMotion(), TGDoubleVSlider::HandleMotion(), TGDoubleHSlider::HandleMotion(), TGTextEdit::HandleSelection(), TGTextEntry::HandleSelectionClear(), TGuiBldDragManager::HandleTimerEvent(), TGuiBldDragManager::HandleUpdateSelected(), TGuiBldDragManager::HighlightCompositeFrame(), TRootBrowserLite::HistoryBackward(), TRootBrowserLite::HistoryForward(), TRootBrowserLite::IconBoxAction(), TGLabel::Layout(), TGHScrollBar::Layout(), TGVScrollBar::Layout(), TGTextButton::Layout(), TGSplitButton::Layout(), TGuiBldHintsEditor::MatrixLayout(), TRootGuiBuilder::NewProject(), TSessionServerFrame::OnBtnAddClicked(), TSessionFrame::OnBtnAddClicked(), TSessionServerFrame::OnBtnConnectClicked(), TSessionServerFrame::OnBtnDeleteClicked(), TSessionFrame::OnBtnDisconnectClicked(), TSessionFrame::OnBtnDownClicked(), TSessionFrame::OnBtnGetQueriesClicked(), TSessionServerFrame::OnBtnNewServerClicked(), TSessionFrame::OnBtnRemoveClicked(), TSessionQueryFrame::OnBtnRetrieve(), TEditQueryFrame::OnBtnSave(), TNewQueryDlg::OnBtnSaveClicked(), TSessionFrame::OnBtnUpClicked(), TSessionFrame::OnClearPackages(), TSessionFrame::OnDisablePackages(), TSessionFrame::OnEnablePackages(), TSessionViewer::OnListTreeClicked(), TSessionFrame::OnUploadPackages(), TRootGuiBuilder::OpenProject(), TGTextEntry::PastePrimary(), TGProgressBar::Percent(), TGComboBox::ProcessMessage(), TGFileDialog::ProcessMessage(), TRootBrowserLite::ProcessMessage(), TestSliders::ProcessMessage(), TTreeViewer::ProcessMessage(), TSessionViewer::QueryResultReady(), TSessionViewer::ReadConfiguration(), TRootBrowserLite::Refresh(), TGComboBox::RemoveAll(), TGComboBox::RemoveEntry(), TUploadDataSetDlg::RemoveFile(), TGProgressBar::Reset(), TGSpeedo::ResetPeakVal(), TSessionViewer::ResetSession(), TGuiBldGeometryFrame::ResizeSelected(), TRootGuiBuilder::SaveProject(), TGuiBldNameFrame::SelectFrameByItem(), TGLabel::Set3DStyle(), TGFontDialog::SetAlign(), TGTextEntry::SetAlignment(), TGProgressBar::SetBarColor(), TGProgressBar::SetBarType(), TGFontDialog::SetColor(), TEveCompositeFrame::SetCurrent(), TEveCompositeFrameInTab::SetCurrent(), TGTextEntry::SetEchoMode(), TGScrollBarElement::SetEnabled(), TGTab::SetEnabled(), TGComboBox::SetEnabled(), TGProgressBar::SetFillType(), TGTextView::SetFont(), TGTextEntry::SetFont(), TGSplitButton::SetFont(), TGProgressBar::SetForegroundColor(), TGTextEntry::SetFrameDrawn(), TGIcon::SetImage(), TGTextEntry::SetInsertMode(), TTVLVEntry::SetItemName(), TGuiBldHintsEditor::SetMatrixSep(), TGSpeedo::SetMeanValue(), TF1Editor::SetModel(), TGIcon::SetPicture(), TGPictureButton::SetPicture(), TGTripleVSlider::SetPointerPos(), TGTripleHSlider::SetPointerPos(), TGuiBldHintsEditor::SetPosition(), TGSlider::SetPosition(), TGDoubleSlider::SetPosition(), TGHScrollBar::SetPosition(), TGVScrollBar::SetPosition(), TGHScrollBar::SetRange(), TGVScrollBar::SetRange(), TGScrollBarElement::SetState(), TGSlider::SetState(), TGTextEntry::SetState(), TGMenuTitle::SetState(), TGTextEntry::SetText(), TGTabElement::SetText(), TGLabel::SetTextColor(), TGTextEntry::SetTextColor(), TGTextButton::SetTextColor(), TGGroupFrame::SetTextColor(), TGGroupFrame::SetTextFont(), TGGroupFrame::SetTitle(), TGMdiTitleBar::SetTitleBarColors(), TTreeViewer::SetTree(), TTreeViewer::SetTreeName(), TGFileItem::SetViewMode(), TGLVEntry::SetViewMode(), TGMdiDecorFrame::SetWindowIcon(), TGButtonGroup::Show(), TSessionViewer::ShowInfo(), TGProgressBar::ShowPos(), TGHProgressBar::ShowPosition(), TSessionFrame::ShutdownSession(), TGuiBldEditor::SwitchLayout(), TGuiBldDragManager::SwitchLayout(), TRootGuiBuilder::SwitchToolbarButton(), TRootBrowserLite::ToSystemDirectory(), TGTreeLBEntry::Update(), TRootGuiBuilder::Update(), TGuiBldEditor::UpdateBackground(), TGuiBldEditor::UpdateBorder(), TGuiBldEditor::UpdateForeground(), TSessionQueryFrame::UpdateInfos(), TNewChainDlg::UpdateList(), TSessionFrame::UpdateListOfDataSets(), TGuiBldNameFrame::UpdateName(), TSessionFrame::UpdatePackages(), and TGView::UpdateRegion().

TGClient& TGClient::operator= ( const TGClient )
protected
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.

Referenced by HandleEvent(), and HandleMaskEvent().

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.

Bool_t TGClient::ProcessIdleEvent ( )
protected

Process one idle event.

Definition at line 677 of file TGClient.cxx.

Referenced by ProcessOneEvent().

void TGClient::ProcessLine ( TString  cmd,
Long_t  msg,
Long_t  parm1,
Long_t  parm2 
)
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.

Referenced by HandleInput().

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.

Referenced by RegisterPopup(), and RegisterWindow().

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.

Referenced by TGPopupMenu::PlaceMenu(), and TGComboBoxPopup::PlacePopup().

void TGClient::RegisterWindow ( TGWindow w)

Add a TGWindow to the clients list of windows.

Definition at line 509 of file TGClient.cxx.

Referenced by TGWindow::TGWindow().

void TGClient::RemoveIdleHandler ( TGIdleHandler h)

Remove handler for idle events.

Definition at line 583 of file TGClient.cxx.

Referenced by ProcessIdleEvent(), and TGIdleHandler::~TGIdleHandler().

void TGClient::RemoveUnknownWindowHandler ( TGUnknownWindowHandler h)

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

Definition at line 562 of file TGClient.cxx.

void TGClient::ResetWaitFor ( TGWindow w)

reset waiting

Definition at line 760 of file TGClient.cxx.

Referenced by TGuiBldDragManager::UnmapAllPopups().

void TGClient::SetEditDisabled ( Bool_t  on = kTRUE)

If on is kTRUE editting/guibuilding is forbidden.

Definition at line 940 of file TGClient.cxx.

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.

Referenced by TGedEditor::ActivateEditor(), TGLSAViewer::CreateFrames(), TGeoTabManager::GetEditors(), TGeoTransientPanel::GetEditors(), TGWindow::SetEditable(), TGuiBldDragManager::SetEditable(), TGCompositeFrame::SetEditable(), and TEveGedEditor::TEveGedEditor().

void TGClient::SetStyle ( UInt_t  newstyle)
inline

Definition at line 159 of file TGClient.h.

void TGClient::SetStyle ( const char *  style)

Set the button style (modern or classic).

Definition at line 250 of file TGClient.cxx.

void TGClient::SetWaitForWindow ( Window_t  wid)
inline

Definition at line 133 of file TGClient.h.

void TGClient::UnregisterPopup ( TGWindow w)

Remove a popup menu from the list of popups.

Definition at line 541 of file TGClient.cxx.

void TGClient::UnregisterWindow ( TGWindow w)

Remove a TGWindow from the list of windows.

Definition at line 520 of file TGClient.cxx.

Referenced by TGuiBldDragManager::DeleteFrame(), TGuiBldDragManager::TGuiBldDragManager(), and TGWindow::~TGWindow().

void TGClient::WaitFor ( TGWindow w)
void TGClient::WaitForUnmap ( TGWindow w)

Friends And Related Function Documentation

friend class TGCocoa
friend

Definition at line 56 of file TGClient.h.

Member Data Documentation

Pixel_t TGClient::fBackColor
protected

Definition at line 59 of file TGClient.h.

Pixel_t TGClient::fBlack
protected

Definition at line 66 of file TGClient.h.

Colormap_t TGClient::fDefaultColormap
protected

Definition at line 75 of file TGClient.h.

Referenced by FreeColor(), and GetDefaultColormap().

TGWindow* TGClient::fDefaultRoot
protected

Definition at line 67 of file TGClient.h.

Referenced by GetDefaultRoot(), IsEditable(), IsEditDisabled(), SetEditDisabled(), and SetRoot().

TGFontPool* TGClient::fFontPool
protected

Definition at line 72 of file TGClient.h.

Referenced by FreeFont(), GetFont(), and GetFontPool().

Bool_t TGClient::fForceRedraw
protected

Definition at line 77 of file TGClient.h.

Referenced by DoRedraw(), ForceRedraw(), and ProcessOneEvent().

Pixel_t TGClient::fForeColor
protected

Definition at line 60 of file TGClient.h.

TGGCPool* TGClient::fGCPool
protected

Definition at line 71 of file TGClient.h.

Referenced by FreeGC(), GetGC(), and GetGCPool().

Bool_t TGClient::fGlobalNeedRedraw
protected

Definition at line 76 of file TGClient.h.

Referenced by DoRedraw(), and NeedRedraw().

Pixel_t TGClient::fHilite
protected

Definition at line 61 of file TGClient.h.

TList* TGClient::fIdleHandlers
protected

Definition at line 81 of file TGClient.h.

Referenced by AddIdleHandler(), ProcessIdleEvent(), RemoveIdleHandler(), and ~TGClient().

TGMimeTypes* TGClient::fMimeTypeList
protected

Definition at line 74 of file TGClient.h.

Referenced by GetMimeTypeList().

TGPicturePool* TGClient::fPicturePool
protected

Definition at line 73 of file TGClient.h.

Referenced by FreePicture(), GetPicture(), and GetPicturePool().

TList* TGClient::fPlist
protected
TGResourcePool* TGClient::fResourcePool
protected

Definition at line 70 of file TGClient.h.

Referenced by GetResourcePool(), and ~TGClient().

TGWindow* TGClient::fRoot
protected
Pixel_t TGClient::fSelBackColor
protected

Definition at line 63 of file TGClient.h.

Pixel_t TGClient::fSelForeColor
protected

Definition at line 64 of file TGClient.h.

Pixel_t TGClient::fShadow
protected

Definition at line 62 of file TGClient.h.

UInt_t TGClient::fStyle
protected

Definition at line 84 of file TGClient.h.

Referenced by GetStyle(), and SetStyle().

TList* TGClient::fUWHandlers
protected
EGEventType TGClient::fWaitForEvent
protected

Definition at line 82 of file TGClient.h.

Referenced by GetWaitForEvent(), ProcessEventsFor(), ProcessOneEvent(), WaitFor(), and WaitForUnmap().

Window_t TGClient::fWaitForWindow
protected
Pixel_t TGClient::fWhite
protected

Definition at line 65 of file TGClient.h.

THashList* TGClient::fWlist
protected
Int_t TGClient::fXfd
protected

Definition at line 69 of file TGClient.h.

Collaboration diagram for TGClient:
[legend]

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