166#define gClient (TGClient::Instance())
#define ClassDef(name, id)
const TGWindow * GetDefaultRoot() const
Returns the root (i.e.
Bool_t IsEditable() const
const TGWindow * GetRoot() const
Returns current root (i.e.
EGEventType fWaitForEvent
Bool_t ProcessIdleEvent()
Process one idle event.
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...
void FreeColor(Pixel_t color) const
Free color.
void CancelRedraw(TGWindow *w)
void ProcessLine(TString cmd, Long_t msg, Long_t parm1, Long_t parm2)
Execute string "cmd" via the interpreter.
static TGClient * Instance()
Returns global gClient (initialize graphics first, if not already done)
virtual ~TGClient()
Closing down client: cleanup and close X connection.
void RegisterPopup(TGWindow *w)
Add a popup menu to the list of popups.
void WaitForUnmap(TGWindow *w)
Wait for window to be unmapped.
void UnregisterPopup(TGWindow *w)
Remove a popup menu from the list of popups.
void ResetWaitFor(TGWindow *w)
reset waiting
TGGC * GetGC(GCValues_t *values, Bool_t rw=kFALSE)
Get graphics context from the gc pool.
Colormap_t fDefaultColormap
TGResourcePool * fResourcePool
TGFont * GetFont(const char *font, Bool_t fixedDefault=kTRUE)
Get a font from the font pool.
void FreeGC(const TGGC *gc)
Free a graphics context.
void AddUnknownWindowHandler(TGUnknownWindowHandler *h)
Add handler for unknown (i.e. unregistered) windows.
void SetStyle(UInt_t newstyle)
Colormap_t GetDefaultColormap() const
void RemoveUnknownWindowHandler(TGUnknownWindowHandler *h)
Remove handler for unknown (i.e. unregistered) windows.
void AddIdleHandler(TGIdleHandler *h)
Add handler for idle events.
const TGResourcePool * GetResourcePool() const
void SetRoot(TGWindow *root=0)
Sets the current root (i.e.
TGMimeTypes * GetMimeTypeList() const
void FreeFont(const TGFont *font)
Free a font.
void SetEditDisabled(Bool_t on=kTRUE)
If on is kTRUE editting/guibuilding is forbidden.
TList * GetListOfPopups() const
Bool_t ProcessEventsFor(TGWindow *w)
Like gSystem->ProcessEvents() but then only allow events for w to be processed.
Bool_t HandleEvent(Event_t *event)
Handle a GUI event.
Bool_t ProcessOneEvent()
Process one event.
void SetWaitForWindow(Window_t wid)
void ProcessedEvent(Event_t *event, Window_t wid)
Emits a signal when an event has been processed.
TGMimeTypes * fMimeTypeList
Bool_t DoRedraw()
Redraw all windows that need redrawing.
UInt_t GetDisplayHeight() const
Get display height.
void WaitFor(TGWindow *w)
Wait for window to be destroyed.
void RegisterWindow(TGWindow *w)
Add a TGWindow to the clients list of windows.
TGWindow * GetWindowById(Window_t sw) const
Find a TGWindow via its handle. If window is not found return 0.
void RegisteredWindow(Window_t w)
Emits a signal when a Window has been registered in TGClient.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
Window_t GetWaitForWindow() const
TGGCPool * GetGCPool() const
Bool_t GetColorByName(const char *name, Pixel_t &pixel) const
Get a color by name.
TGClient(const TGClient &)
void RemoveIdleHandler(TGIdleHandler *h)
Remove handler for idle events.
Bool_t IsEditDisabled() const
Returns kTRUE if edit/guibuilding is forbidden.
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
Pixel_t GetHilite(Pixel_t base_color) const
Return pixel value of hilite color based on base_color.
FontStruct_t GetFontByName(const char *name, Bool_t fixedDefault=kTRUE) const
Get a font by name.
EGEventType GetWaitForEvent() const
TGPicturePool * fPicturePool
TGPicturePool * GetPicturePool() const
Bool_t HandleInput()
Handles input from the display server.
UInt_t GetDisplayWidth() const
Get display width.
TGClient & operator=(const TGClient &)
TGFontPool * GetFontPool() const
Pixel_t GetShadow(Pixel_t base_color) const
Return pixel value of shadow color based on base_color.
void FreePicture(const TGPicture *pic)
Free picture resource.
void UnregisterWindow(TGWindow *w)
Remove a TGWindow from the list of windows.
THashList * GetListOfWindows() const
TGWindow * GetWindowByName(const char *name) const
Find a TGWindow via its name (unique name used in TGWindow::SavePrimitive).
This class implements TVirtualX interface for MacOS X, using Cocoa and Quartz 2D.
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
Mother of all ROOT objects.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....