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