ROOT » GRAF2D » X11 » TGX11

class TGX11: public TVirtualX


TGX11

This class is the basic interface to the X11 graphics system. It is
an implementation of the abstract TVirtualX class. The companion
class for Win32 is TGWin32.

This code was initially developed in the context of HIGZ and PAW
by Olivier Couet (package X11INT).


Function Members (Methods)

public:
virtual~TGX11()
voidTObject::AbstractMethod(const char* method) const
virtual Int_tAddPixmap(ULong_t pixid, UInt_t w, UInt_t h)
virtual Int_tAddWindow(ULong_t qwid, UInt_t w, UInt_t h)
virtual Bool_tAllocColor(Colormap_t cmap, ColorStruct_t& color)
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTVirtualX::BeginModalSessionFor(Window_t window)
virtual voidBell(Int_t percent)
virtual voidTObject::Browse(TBrowser* b)
virtual voidChangeActivePointerGrab(Window_t, UInt_t, Cursor_t)
virtual voidChangeGC(GContext_t gc, GCValues_t* gval)
virtual voidChangeProperties(Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t* data, Int_t len)
virtual voidChangeProperty(Window_t id, Atom_t property, Atom_t type, UChar_t* data, Int_t len)
virtual voidChangeWindowAttributes(Window_t id, SetWindowAttributes_t* attr)
virtual Bool_tCheckEvent(Window_t id, EGEventType type, Event_t& ev)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTNamed::Clear(Option_t* option = "")
virtual voidClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidClearWindow()
virtual voidClearWindow(Window_t id)
virtual TObject*TNamed::Clone(const char* newname = "") const
virtual voidCloseDisplay()
virtual voidClosePixmap()
virtual voidCloseWindow()
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when)
virtual voidConvertSelection(Window_t, Atom_t&, Atom_t&, Atom_t&, Time_t&)
virtual voidTNamed::Copy(TObject& named) const
virtual voidCopyArea(Drawable_t src, Drawable_t dest, GContext_t gc, Int_t src_x, Int_t src_y, UInt_t width, UInt_t height, Int_t dest_x, Int_t dest_y)
virtual voidCopyGC(GContext_t org, GContext_t dest, Mask_t mask)
virtual voidCopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
virtual Pixmap_tCreateBitmap(Drawable_t id, const char* bitmap, UInt_t width, UInt_t height)
virtual Cursor_tCreateCursor(ECursor cursor)
virtual GContext_tCreateGC(Drawable_t id, GCValues_t* gval)
virtual Drawable_tCreateImage(UInt_t width, UInt_t height)
virtual voidTVirtualX::CreateOpenGLContext(Int_t wid = 0)
virtual Handle_tTVirtualX::CreateOpenGLContext(Window_t windowID, Handle_t sharedContext)
virtual Window_tTVirtualX::CreateOpenGLWindow(Window_t parentID, UInt_t width, UInt_t height, const vector<pair<UInt_t,Int_t> >& format)
virtual Bool_tCreatePictureFromData(Drawable_t id, char** data, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr)
virtual Bool_tCreatePictureFromFile(Drawable_t id, const char* filename, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr)
virtual Pixmap_tCreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
virtual Pixmap_tCreatePixmap(Drawable_t id, const char* bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth)
virtual Pixmap_tCreatePixmapFromData(unsigned char* bits, UInt_t width, UInt_t height)
virtual Region_tCreateRegion()
virtual Window_tCreateWindow(Window_t parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void* visual, SetWindowAttributes_t* attr, UInt_t wtype)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual voidDeleteFont(FontStruct_t fs)
virtual voidDeleteGC(GContext_t gc)
virtual voidDeleteImage(Drawable_t img)
virtual voidTVirtualX::DeleteOpenGLContext(Int_t wid = 0)
virtual voidDeletePictureData(void* data)
virtual voidDeletePixmap(Pixmap_t pmap)
virtual voidDeleteProperty(Window_t, Atom_t&)
virtual voidDestroyRegion(Region_t reg)
virtual voidDestroySubwindows(Window_t id)
virtual voidDestroyWindow(Window_t id)
virtual voidTVirtualX::DispatchClientMessage(UInt_t messageID)
virtual const char*DisplayName(const char* dpyName = 0)
Int_tTAttLine::DistancetoLine(Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidDrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, TVirtualX::EBoxMode mode)
virtual voidDrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t* ic)
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidDrawFillArea(Int_t n, TPoint* xy)
virtual voidDrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
virtual voidDrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
virtual voidDrawPolyLine(Int_t n, TPoint* xy)
virtual voidDrawPolyMarker(Int_t n, TPoint* xy)
virtual voidDrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidDrawSegments(Drawable_t id, GContext_t gc, Segment_t* seg, Int_t nseg)
virtual voidDrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char* s, Int_t len)
virtual voidDrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char* text, TVirtualX::ETextMode mode)
virtual voidDrawText(Int_t, Int_t, Float_t, Float_t, const wchar_t*, TVirtualX::ETextMode)
virtual voidTObject::Dump() constMENU
virtual Bool_tEmptyRegion(Region_t reg)
virtual Bool_tEqualRegion(Region_t rega, Region_t regb)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual Int_tEventsPending()
virtual UInt_tTVirtualX::ExecCommand(TGWin32Command* code)
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual voidTNamed::FillBuffer(char*& buffer)
virtual voidFillPolygon(Window_t id, GContext_t gc, Point_t* points, Int_t npnt)
virtual voidFillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Window_tFindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd)
virtual voidTVirtualX::FlushOpenGLBuffer(Handle_t ctx)
virtual voidFreeColor(Colormap_t cmap, ULong_t pixel)
virtual voidFreeFontNames(char** fontlist)
virtual voidFreeFontStruct(FontStruct_t fs)
virtual voidGetCharacterUp(Float_t& chupx, Float_t& chupy)
virtual unsigned char*GetColorBits(Drawable_t wid, Int_t x = 0, Int_t y = 0, UInt_t w = 0, UInt_t h = 0)
virtual Colormap_tGetColormap() const
virtual Handle_tTVirtualX::GetCurrentOpenGLContext()
virtual Window_tGetCurrentWindow() const
virtual Window_tGetDefaultRootWindow() const
virtual Int_tGetDepth() const
virtual Display_tGetDisplay() const
virtual Int_tGetDoubleBuffer(Int_t wid)
TVirtualX::EDrawModeTVirtualX::GetDrawMode()
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Color_tTAttFill::GetFillColor() const
virtual Style_tTAttFill::GetFillStyle() const
virtual Int_tTVirtualX::GetFontAscent() const
virtual Int_tTVirtualX::GetFontAscent(const char* mess) const
virtual Int_tTVirtualX::GetFontDescent() const
virtual Int_tTVirtualX::GetFontDescent(const char* mess) const
virtual FontH_tGetFontHandle(FontStruct_t fs)
virtual voidGetFontProperties(FontStruct_t font, Int_t& max_ascent, Int_t& max_descent)
virtual FontStruct_tGetFontStruct(FontH_t fh)
virtual FontStruct_tTVirtualX::GetGCFont(GContext_t gc)
virtual voidGetGCValues(GContext_t gc, GCValues_t& gval)
virtual voidGetGeometry(Int_t wid, Int_t& x, Int_t& y, UInt_t& w, UInt_t& h)
virtual const char*TObject::GetIconName() const
virtual voidGetImageSize(Drawable_t id, UInt_t& width, UInt_t& height)
virtual Window_tGetInputFocus()
virtual Color_tTAttLine::GetLineColor() const
virtual Style_tTAttLine::GetLineStyle() const
virtual Width_tTAttLine::GetLineWidth() const
virtual Color_tTAttMarker::GetMarkerColor() const
virtual Size_tTAttMarker::GetMarkerSize() const
virtual Style_tTAttMarker::GetMarkerStyle() const
virtual const char*TNamed::GetName() const
virtual Handle_tGetNativeEvent() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Double_tTVirtualX::GetOpenGLScalingFactor()
virtual Option_t*TObject::GetOption() const
virtual Window_tGetParent(Window_t id) const
virtual voidGetPasteBuffer(Window_t id, Atom_t atom, TString& text, Int_t& nchar, Bool_t del)
virtual ULong_tGetPixel(Color_t cindex)
virtual voidGetPlanes(Int_t& nplanes)
virtual Window_tGetPrimarySelectionOwner()
virtual Int_tGetProperty(Window_t, Atom_t, Long_t, Long_t, Bool_t, Atom_t, Atom_t*, Int_t*, ULong_t*, ULong_t*, unsigned char**)
virtual voidGetRegionBox(Region_t reg, Rectangle_t*)
virtual voidGetRGB(Int_t index, Float_t& r, Float_t& g, Float_t& b)
virtual Int_tGetScreen() const
virtual Short_tTAttText::GetTextAlign() const
virtual Float_tTAttText::GetTextAngle() const
virtual Color_tTAttText::GetTextColor() const
virtual voidGetTextExtent(UInt_t& w, UInt_t& h, char* mess)
virtual voidGetTextExtent(UInt_t&, UInt_t&, wchar_t*)
virtual Font_tTAttText::GetTextFont() const
virtual Float_tGetTextMagnitude()
virtual Float_tTAttText::GetTextSize() const
virtual const char*TNamed::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Visual_tGetVisual() const
virtual voidGetWindowAttributes(Window_t id, WindowAttributes_t& attr)
virtual Window_tGetWindowID(Int_t wid)
virtual voidGetWindowSize(Drawable_t id, Int_t& x, Int_t& y, UInt_t& w, UInt_t& h)
virtual voidGrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab = kTRUE)
virtual voidGrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE)
virtual voidGrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab = kTRUE, Bool_t owner_events = kTRUE)
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTNamed::Hash() const
virtual Bool_tHasTTFonts() const
virtual voidIconifyWindow(Window_t id)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual Bool_tInit(void* display)
virtual Int_tInitWindow(ULong_t window)
virtual voidTObject::Inspect() constMENU
static TVirtualX*&TVirtualX::Instance()
virtual Atom_tInternAtom(const char* atom_name, Bool_t only_if_exist)
virtual voidIntersectRegion(Region_t rega, Region_t regb, Region_t result)
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTVirtualX::IsCmdThread() const
virtual Bool_tIsDNDAware(Window_t win, Atom_t* typelist)
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
Bool_tTObject::IsZombie() const
virtual Int_tKeysymToKeycode(UInt_t keysym)
virtual char**ListFonts(const char* fontname, Int_t max, Int_t& count)
virtual FontStruct_tLoadQueryFont(const char* font_name)
virtual voidLookupString(Event_t* event, char* buf, Int_t buflen, UInt_t& keysym)
virtual voidLowerWindow(Window_t id)
virtual voidTNamed::ls(Option_t* option = "") const
virtual Bool_tTVirtualX::MakeOpenGLContextCurrent(Handle_t ctx, Window_t windowID)
virtual voidTVirtualX::MapGCFont(GContext_t, FontStruct_t)
virtual voidMapRaised(Window_t id)
virtual voidMapSubwindows(Window_t id)
virtual voidMapWindow(Window_t id)
voidTObject::MayNotUse(const char* method) const
virtual voidTAttLine::Modify()
virtual voidMoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidMoveWindow(Int_t wid, Int_t x, Int_t y)
virtual voidMoveWindow(Window_t id, Int_t x, Int_t y)
virtual Bool_tTVirtualX::NeedRedraw(ULong_t tgwindow, Bool_t force)
virtual voidNextEvent(Event_t& event)
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
Int_tOpenDisplay(void* display)
virtual Int_tOpenDisplay(const char* dpyName)
virtual Int_tOpenPixmap(UInt_t w, UInt_t h)
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TGX11&operator=(const TGX11&)
virtual voidTObject::Paint(Option_t* option = "")
virtual Bool_tParseColor(Colormap_t cmap, const char* cname, ColorStruct_t& color)
virtual Bool_tPointInRegion(Int_t x, Int_t y, Region_t reg)
virtual Region_tPolygonRegion(Point_t* points, Int_t np, Bool_t winding)
virtual voidTObject::Pop()
virtual voidTNamed::Print(Option_t* option = "") const
virtual voidPutImage(Drawable_t id, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidPutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
virtual voidQueryColor(Colormap_t cmap, ColorStruct_t& color)
virtual voidQueryPointer(Int_t& ix, Int_t& iy)
virtual voidQueryPointer(Window_t id, Window_t& rootw, Window_t& childw, Int_t& root_x, Int_t& root_y, Int_t& win_x, Int_t& win_y, UInt_t& mask)
virtual voidRaiseWindow(Window_t id)
virtual Int_tTObject::Read(const char* name)
virtual Pixmap_tReadGIF(Int_t x0, Int_t y0, const char* file, Window_t id = 0)
virtual Bool_tReadPictureDataFromFile(const char* filename, char*** ret_data)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidRemoveWindow(ULong_t qwid)
virtual voidReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y)
virtual Int_tRequestLocator(Int_t mode, Int_t ctyp, Int_t& x, Int_t& y)
virtual Int_tRequestString(Int_t x, Int_t y, char* text)
virtual voidRescaleWindow(Int_t wid, UInt_t w, UInt_t h)
virtual voidTAttFill::ResetAttFill(Option_t* option = "")
virtual voidTAttLine::ResetAttLine(Option_t* option = "")
virtual voidTAttMarker::ResetAttMarker(Option_t* toption = "")
virtual voidTAttText::ResetAttText(Option_t* toption = "")
voidTObject::ResetBit(UInt_t f)
virtual Int_tResizePixmap(Int_t wid, UInt_t w, UInt_t h)
virtual voidResizeWindow(Int_t wid)
virtual voidResizeWindow(Window_t id, UInt_t w, UInt_t h)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTAttFill::SaveFillAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1001)
virtual voidTAttLine::SaveLineAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t widdef = 1)
virtual voidTAttMarker::SaveMarkerAttributes(ostream& out, const char* name, Int_t coldef = 1, Int_t stydef = 1, Int_t sizdef = 1)
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
virtual voidTAttText::SaveTextAttributes(ostream& out, const char* name, Int_t alidef = 12, Float_t angdef = 0, Int_t coldef = 1, Int_t fondef = 61, Float_t sizdef = 1)
virtual UInt_tScreenWidthMM() const
virtual voidSelectInput(Window_t id, UInt_t evmask)
virtual voidTVirtualX::SelectPixmap(Int_t qpixid)
virtual voidSelectWindow(Int_t wid)
virtual voidSendEvent(Window_t id, Event_t* ev)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetCharacterUp(Float_t chupx, Float_t chupy)
virtual voidSetClassHints(Window_t id, char* className, char* resourceName)
virtual voidSetClipOFF(Int_t wid)
virtual voidSetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t* recs, Int_t n)
virtual voidSetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidSetCursor(Int_t win, ECursor cursor)
virtual voidSetCursor(Window_t id, Cursor_t curid)
virtual voidSetDashes(GContext_t gc, Int_t offset, const char* dash_list, Int_t n)
virtual voidSetDNDAware(Window_t, Atom_t*)
virtual voidSetDoubleBuffer(Int_t wid, Int_t mode)
virtual voidSetDoubleBufferOFF()
virtual voidSetDoubleBufferON()
virtual voidSetDrawMode(TVirtualX::EDrawMode mode)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidTAttFill::SetFillAttributes()MENU
virtual voidSetFillColor(Color_t cindex)
virtual voidTAttFill::SetFillColorAlpha(Color_t fcolor, Float_t falpha)
virtual voidSetFillStyle(Style_t style)
virtual voidSetForeground(GContext_t gc, ULong_t foreground)
virtual voidSetIconName(Window_t id, char* name)
virtual voidSetIconPixmap(Window_t id, Pixmap_t pic)
virtual voidSetInputFocus(Window_t id)
virtual voidSetKeyAutoRepeat(Bool_t on = kTRUE)
virtual voidTAttLine::SetLineAttributes()MENU
virtual voidSetLineColor(Color_t cindex)
virtual voidTAttLine::SetLineColorAlpha(Color_t lcolor, Float_t lalpha)
virtual voidSetLineStyle(Style_t linestyle)
virtual voidSetLineType(Int_t n, Int_t* dash)
virtual voidSetLineWidth(Width_t width)
virtual voidTAttMarker::SetMarkerAttributes()MENU
virtual voidSetMarkerColor(Color_t cindex)
virtual voidTAttMarker::SetMarkerColorAlpha(Color_t mcolor, Float_t malpha)
virtual voidSetMarkerSize(Float_t markersize)
virtual voidSetMarkerStyle(Style_t markerstyle)
virtual voidSetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
virtual voidTNamed::SetName(const char* name)MENU
virtual voidTNamed::SetNameTitle(const char* name, const char* title)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetOpacity(Int_t percent)
virtual voidSetPrimarySelectionOwner(Window_t id)
virtual voidSetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
virtual Bool_tSetSelectionOwner(Window_t, Atom_t&)
virtual voidSetTextAlign(Short_t talign = 11)
virtual voidTAttText::SetTextAngle(Float_t tangle = 0)MENU
virtual voidTAttText::SetTextAttributes()MENU
virtual voidSetTextColor(Color_t cindex)
virtual voidTAttText::SetTextColorAlpha(Color_t tcolor, Float_t talpha)
virtual voidSetTextFont(Font_t fontnumber)
virtual Int_tSetTextFont(char* fontname, TVirtualX::ETextSetMode mode)
virtual voidSetTextMagnitude(Float_t mgn = 1)
virtual voidSetTextSize(Float_t textsize)
virtual voidTAttText::SetTextSizePixels(Int_t npixels)
virtual voidTNamed::SetTitle(const char* title = "")MENU
virtual voidSetTypeList(Window_t win, Atom_t prop, Atom_t* typelist)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetWindowBackground(Window_t id, ULong_t color)
virtual voidSetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
virtual voidSetWindowName(Window_t id, char* name)
virtual voidSetWMPosition(Window_t id, Int_t x, Int_t y)
virtual voidSetWMSize(Window_t id, UInt_t w, UInt_t h)
virtual voidSetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
virtual voidSetWMState(Window_t id, EInitialState state)
virtual voidSetWMTransientHint(Window_t id, Window_t main_id)
virtual voidShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask)
virtual voidShowMembers(TMemberInspector& insp) const
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidSubtractRegion(Region_t rega, Region_t regb, Region_t result)
virtual Int_tSupportsExtension(const char* ext) const
virtual voidSync(Int_t mode)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual Int_tTextWidth(FontStruct_t font, const char* s, Int_t len)
TGX11()
TGX11(const TGX11& org)
TGX11(const char* name, const char* title)
virtual voidTranslateCoordinates(Window_t src, Window_t dest, Int_t src_x, Int_t src_y, Int_t& dest_x, Int_t& dest_y, Window_t& child)
virtual voidUnionRectWithRegion(Rectangle_t* rect, Region_t src, Region_t dest)
virtual voidUnionRegion(Region_t rega, Region_t regb, Region_t result)
virtual voidUnmapWindow(Window_t id)
virtual voidUpdate(Int_t mode = 0)
virtual voidUpdateWindow(Int_t mode)
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual voidWarp(Int_t ix, Int_t iy, Window_t id = 0)
virtual voidWMDeleteNotify(Window_t id)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
virtual Int_tWriteGIF(char* name)
virtual voidWritePixmap(Int_t wid, UInt_t w, UInt_t h, char* pxname)
virtual voidXorRegion(Region_t rega, Region_t regb, Region_t result)
protected:
Bool_tAllocColor(Colormap cmap, RXColor* color)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
XColor_t&GetColor(Int_t cid)
void*GetGC(Int_t which) const
voidTObject::MakeZombie()
voidQueryColors(Colormap cmap, RXColor* colors, Int_t ncolors)
private:
voidClearPixmap(Drawable* pix)
voidCloseWindow1()
voidCollectImageColors(ULong_t pixel, ULong_t*& orgcolors, Int_t& ncolors, Int_t& maxcolors)
voidCopyWindowtoPixmap(Drawable* pix, Int_t xpos, Int_t ypos)
voidFindBestVisual()
Int_tFindColor(ULong_t pixel, ULong_t* orgcolors, Int_t ncolors)
voidFindUsableVisual(RXVisualInfo* vlist, Int_t nitems)
voidImgPickPalette(RXImage* image, Int_t& ncol, Int_t*& R, Int_t*& G, Int_t*& B)
voidMakeOpaqueColors(Int_t percent, ULong_t* orgcolors, Int_t ncolors)
voidMapColorStruct(ColorStruct_t* color, RXColor& xcolor)
voidMapCursor(ECursor cursor, Int_t& xcursor)
voidMapEvent(Event_t& ev, void* xev, Bool_t tox = kTRUE)
voidMapEventMask(UInt_t& emask, UInt_t& xemask, Bool_t tox = kTRUE)
voidMapGCValues(GCValues_t& gval, ULong_t& xmask, RXGCValues& xgval, Bool_t tox = kTRUE)
voidMapKeySym(UInt_t& keysym, UInt_t& xkeysym, Bool_t tox = kTRUE)
voidMapModifierState(UInt_t& state, UInt_t& xstate, Bool_t tox = kTRUE)
voidMapPictureAttributes(PictureAttributes_t& attr, RXpmAttributes& xpmattr, Bool_t toxpm = kTRUE)
voidMapSetWindowAttributes(SetWindowAttributes_t* attr, ULong_t& xmask, RXSetWindowAttributes& xattr)
voidPutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx, Int_t ny, Int_t xmin, Int_t ymin, Int_t xmax, Int_t ymax, UChar_t* image, Drawable_t id)
voidRemovePixmap(Drawable* pix)
voidSetColor(void* gc, Int_t ci)
voidSetFillStyleIndex(Int_t style, Int_t fasi)
voidSetInput(Int_t inp)
voidSetMarkerType(Int_t type, Int_t n, RXPoint* xy)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TVirtualX::ETextSetModeTVirtualX::kCheck
static TVirtualX::ETextModeTVirtualX::kClear
static TVirtualX::EDrawModeTVirtualX::kCopy
static TVirtualX::EBoxModeTVirtualX::kFilled
static TObject::EStatusBitsTObject::kHasUUID
static TVirtualX::EBoxModeTVirtualX::kHollow
static TObject::EStatusBitsTObject::kInvalidObject
static TVirtualX::EDrawModeTVirtualX::kInvert
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static TVirtualX::ETextSetModeTVirtualX::kLoad
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TVirtualX::ETextModeTVirtualX::kOpaque
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TVirtualX::EDrawModeTVirtualX::kXor
static TObject::(anonymous)TObject::kZombie
protected:
ULong_tfBlackPixelValue of black pixel in colormap
Int_tfBlueDivBlue value divider
Int_tfBlueShiftBits to left shift blue
Float_tfCharacterUpXCharacter Up vector along X
Float_tfCharacterUpYCharacter Up vector along Y
ColormapfColormapDefault colormap, 0 if b/w
Int_tfDepthNumber of color planes
void*fDisplayPointer to display
TVirtualX::EDrawModeTVirtualX::fDrawModeDrawing mode
Color_tTAttFill::fFillColorfill area color
Style_tTAttFill::fFillStylefill area style
Int_tfGreenDivGreen value divider
Int_tfGreenShiftBits to left shift green
Bool_tfHasTTFontsTrue when TrueType fonts are used
Bool_tfHasXftTrue when XftFonts are used
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
Color_tTAttMarker::fMarkerColorMarker color index
Size_tTAttMarker::fMarkerSizeMarker size
Style_tTAttMarker::fMarkerStyleMarker style
TStringTNamed::fNameobject identifier
Int_tfRedDivRed value divider, -1 if no TrueColor visual
Int_tfRedShiftBits to left shift red, -1 if no TrueColor visual
DrawablefRootWinRoot window used as parent of all windows
Int_tfScreenNumberScreen number
Int_tfTextAlignText alignment (set in SetTextAlign)
Short_tTAttText::fTextAlignText alignment
Int_tfTextAlignHText Alignment Horizontal
Int_tfTextAlignVText Alignment Vertical
Float_tTAttText::fTextAngleText angle
Color_tTAttText::fTextColorText color index
Font_tTAttText::fTextFontText font number
Float_tfTextMagnitudeText Magnitude
Float_tTAttText::fTextSizeText size
TStringTNamed::fTitleobject title
DrawablefVisRootWinRoot window with fVisual to be used to create GC's and XImages
RVisual*fVisualPointer to visual used by all windows
ULong_tfWhitePixelValue of white pixel in colormap
private:
TExMap*fColorsHash list of colors
CursorfCursors[19]List of cursors
Int_tfMaxNumberOfWindowsMaximum number of windows
XWindow_t*fWindowsList of windows
void*fXEventCurrent native (X11) event

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGX11()
 Default constructor.
TGX11(const char* name, const char* title)
 Normal Constructor.
TGX11(const TGX11& org)
 Copy constructor. Currently only used by TGX11TTF.
~TGX11()
 Destructor.
Bool_t Init(void* display)
 Initialize X11 system. Returns kFALSE in case of failure.
Bool_t AllocColor(Colormap cmap, RXColor* color)
 Allocate color in colormap. If we are on an <= 8 plane machine
 we will use XAllocColor. If we are on a >= 15 (15, 16 or 24) plane
 true color machine we will calculate the pixel value using:
 for 15 and 16 bit true colors have 6 bits precision per color however
 only the 5 most significant bits are used in the color index.
 Except for 16 bits where green uses all 6 bits. I.e.:
   15 bits = rrrrrgggggbbbbb
   16 bits = rrrrrggggggbbbbb
 for 24 bits each r, g and b are represented by 8 bits.

 Since all colors are set with a max of 65535 (16 bits) per r, g, b
 we just right shift them by 10, 11 and 10 bits for 16 planes, and
 (10, 10, 10 for 15 planes) and by 8 bits for 24 planes.
 Returns kFALSE in case color allocation failed.
void QueryColors(Colormap cmap, RXColor* colors, Int_t ncolors)
 Returns the current RGB value for the pixel in the XColor structure.
void ClearPixmap(Drawable* pix)
 Clear the pixmap pix.
void ClearWindow()
 Clear current window.
void ClosePixmap()
 Delete current pixmap.
void CloseWindow()
 Delete current window.
void CloseWindow1()
 Delete current window.
void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
 Copy the pixmap wid at the position xpos, ypos in the current window.
void CopyWindowtoPixmap(Drawable* pix, Int_t xpos, Int_t ypos)
 Copy area of current window in the pixmap pix.
void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, TVirtualX::EBoxMode mode)
 Draw a box.
 mode=0 hollow  (kHollow)
 mode=1 solid   (kSolid)
void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t* ic)
 Draw a cell array.
 x1,y1        : left down corner
 x2,y2        : right up corner
 nx,ny        : array size
 ic           : array

 Draw a cell array. The drawing is done with the pixel presicion
 if (X2-X1)/NX (or Y) is not a exact pixel number the position of
 the top rigth corner may be wrong.
void DrawFillArea(Int_t n, TPoint* xy)
 Fill area described by polygon.
 n         : number of points
 xy(2,n)   : list of points
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draw a line.
 x1,y1        : begin of line
 x2,y2        : end of line
void DrawPolyLine(Int_t n, TPoint* xy)
 Draw a line through all points.
 n         : number of points
 xy        : list of points
void DrawPolyMarker(Int_t n, TPoint* xy)
 Draw n markers with the current attributes at position x, y.
 n    : number of markers to draw
 xy   : x,y coordinates of markers
void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char* text, TVirtualX::ETextMode mode)
 Draw a text string using current font.
 mode       : drawing mode
 mode=0     : the background is not drawn (kClear)
 mode=1     : the background is drawn (kOpaque)
 x,y        : text position
 angle      : text angle
 mgn        : magnification factor
 text       : text string
void FindBestVisual()
 Find best visual, i.e. the one with the most planes and TrueColor or
 DirectColor. Sets fVisual, fDepth, fRootWin, fColormap, fBlackPixel
 and fWhitePixel.
void FindUsableVisual(RXVisualInfo* vlist, Int_t nitems)
 Check if visual is usable, if so set fVisual, fDepth, fColormap,
 fBlackPixel and fWhitePixel.
void GetCharacterUp(Float_t& chupx, Float_t& chupy)
 Return character up vector.
XColor_t & GetColor(Int_t cid)
 Return reference to internal color structure associated
 to color index cid.
Window_t GetCurrentWindow() const
 Return current window pointer. Protected method used by TGX11TTF.
void * GetGC(Int_t which) const
 Return desired Graphics Context ("which" maps directly on gGCList[]).
 Protected method used by TGX11TTF.
Int_t GetDoubleBuffer(Int_t wid)
 Query the double buffer value for the window wid.
void GetGeometry(Int_t wid, Int_t& x, Int_t& y, UInt_t& w, UInt_t& h)
 Return position and size of window wid.
 wid        : window identifier
 x,y        : window position (output)
 w,h        : window size (output)
 if wid < 0 the size of the display is returned
const char * DisplayName(const char* dpyName = 0)
 Return hostname on which the display is opened.
ULong_t GetPixel(Color_t cindex)
 Return pixel value associated to specified ROOT color number.
void GetPlanes(Int_t& nplanes)
 Get maximum number of planes.
void GetRGB(Int_t index, Float_t& r, Float_t& g, Float_t& b)
 Get rgb values for color "index".
void GetTextExtent(UInt_t& w, UInt_t& h, char* mess)
 Return the size of a character string.
 iw          : text width
 ih          : text height
 mess        : message
Window_t GetWindowID(Int_t wid)
 Return the X11 window identifier.
 wid      : Workstation identifier (input)
void MoveWindow(int wid, int x, int y)
 Move the window wid.
 wid  : Window identifier.
 x    : x new window position
 y    : y new window position
Int_t OpenDisplay(void* display)
 Open the display. Return -1 if the opening fails, 0 when ok.
Int_t OpenPixmap(UInt_t w, UInt_t h)
 Open a new pixmap.
 w,h : Width and height of the pixmap.
Int_t InitWindow(ULong_t window)
 Open window and return window number.
 Return -1 if window initialization fails.
Int_t AddWindow(ULong_t qwid, UInt_t w, UInt_t h)
 Register a window created by Qt as a ROOT window (like InitWindow()).
void RemoveWindow(ULong_t qwid)
 Remove a window created by Qt (like CloseWindow1()).
void QueryPointer(Int_t& ix, Int_t& iy)
 Query pointer position.
 ix       : X coordinate of pointer
 iy       : Y coordinate of pointer
 (both coordinates are relative to the origin of the root window)
void RemovePixmap(Drawable* pix)
 Remove the pixmap pix.
Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t& x, Int_t& y)
 Request Locator position.
 x,y       : cursor position at moment of button press (output)
 ctyp      : cursor type (input)
   ctyp=1 tracking cross
   ctyp=2 cross-hair
   ctyp=3 rubber circle
   ctyp=4 rubber band
   ctyp=5 rubber rectangle

 mode      : input mode
   mode=0 request
   mode=1 sample

 Request locator:
 return button number  1 = left is pressed
                       2 = middle is pressed
                       3 = right is pressed
        in sample mode:
                      11 = left is released
                      12 = middle is released
                      13 = right is released
                      -1 = nothing is pressed or released
                      -2 = leave the window
                    else = keycode (keyboard is pressed)
Int_t RequestString(Int_t x, Int_t y, char* text)
 Request a string.
 x,y         : position where text is displayed
 text        : text displayed (input), edited text (output)

 Request string:
 text is displayed and can be edited with Emacs-like keybinding
 return termination code (0 for ESC, 1 for RETURN)
void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
 Rescale the window wid.
 wid  : Window identifier
 w    : Width
 h    : Heigth
int ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
 Resize a pixmap.
 wid : pixmap to be resized
 w,h : Width and height of the pixmap
void ResizeWindow(Int_t wid)
 Resize the current window if necessary.
void SelectWindow(Int_t wid)
 Select window to which subsequent output is directed.
void SetCharacterUp(Float_t chupx, Float_t chupy)
 Set character up vector.
void SetClipOFF(Int_t wid)
 Turn off the clipping for the window wid.
void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Set clipping region for the window wid.
 wid        : Window indentifier
 x,y        : origin of clipping rectangle
 w,h        : size of clipping rectangle;
void SetColor(void* gc, Int_t ci)
 Set the foreground color in GC.
void SetCursor(Int_t win, ECursor cursor)
 Set the cursor.
void SetDoubleBuffer(Int_t wid, Int_t mode)
 Set the double buffer on/off on window wid.
 wid  : Window identifier.
        999 means all the opened windows.
 mode : 1 double buffer is on
        0 double buffer is off
void SetDoubleBufferOFF()
 Turn double buffer mode off.
void SetDoubleBufferON()
 Turn double buffer mode on.
void SetDrawMode(TVirtualX::EDrawMode mode)
 Set the drawing mode.
 mode : drawing mode
   mode=1 copy
   mode=2 xor
   mode=3 invert
   mode=4 set the suitable mode for cursor echo according to
          the vendor
void SetFillColor(Color_t cindex)
 Set color index for fill areas.
void SetFillStyle(Style_t style)
 Set fill area style.
 fstyle   : compound fill area interior style
    fstyle = 1000*interiorstyle + styleindex
void SetFillStyleIndex(Int_t style, Int_t fasi)
 Set fill area style index.
void SetInput(Int_t inp)
 Set input on or off.
void SetLineColor(Color_t cindex)
 Set color index for lines.
void SetLineType(Int_t n, Int_t* dash)
 Set line type.
 n         : length of dash list
 dash(n)   : dash segment lengths

 if n <= 0 use solid lines
 if n >  0 use dashed lines described by DASH(N)
    e.g. N=4,DASH=(6,3,1,3) gives a dashed-dotted line with dash length 6
    and a gap of 7 between dashes
void SetLineStyle(Style_t linestyle)
 Set line style.
void SetLineWidth(Width_t width)
 Set line width.
 width   : line width in pixels
void SetMarkerColor(Color_t cindex)
 Set color index for markers.
void SetMarkerSize(Float_t markersize)
 Set marker size index.
 msize  : marker scale factor
void SetMarkerType(Int_t type, Int_t n, RXPoint* xy)
 Set marker type.
 type      : marker type
 n         : length of marker description
 xy        : list of points describing marker shape

 if n == 0 marker is a single point
 if TYPE == 0 marker is hollow circle of diameter N
 if TYPE == 1 marker is filled circle of diameter N
 if TYPE == 2 marker is a hollow polygon describe by line XY
 if TYPE == 3 marker is a filled polygon describe by line XY
 if TYPE == 4 marker is described by segmented line XY
   e.g. TYPE=4,N=4,XY=(-3,0,3,0,0,-3,0,3) sets a plus shape of 7x7 pixels
void SetMarkerStyle(Style_t markerstyle)
 Set marker style.
void SetOpacity(Int_t percent)
 Set opacity of a window. This image manipulation routine works
 by adding to a percent amount of neutral to each pixels RGB.
 Since it requires quite some additional color map entries is it
 only supported on displays with more than > 8 color planes (> 256
 colors).
void CollectImageColors(ULong_t pixel, ULong_t*& orgcolors, Int_t& ncolors, Int_t& maxcolors)
 Collect in orgcolors all different original image colors.
void MakeOpaqueColors(Int_t percent, ULong_t* orgcolors, Int_t ncolors)
 Get RGB values for orgcolors, add percent neutral to the RGB and
 allocate fNewColors.
Int_t FindColor(ULong_t pixel, ULong_t* orgcolors, Int_t ncolors)
 Returns index in orgcolors (and fNewColors) for pixel.
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
 Set color intensities for given color index.
 cindex     : color index
 r,g,b      : red, green, blue intensities between 0.0 and 1.0
void SetTextAlign(Short_t talign = 11)
 Set text alignment.
 txalh   : horizontal text alignment
 txalv   : vertical text alignment
void SetTextColor(Color_t cindex)
 Set color index for text.
Int_t SetTextFont(char* fontname, TVirtualX::ETextSetMode mode)
 Set text font to specified name.
 mode       : loading flag
 mode=0     : search if the font exist (kCheck)
 mode=1     : search the font and load it if it exists (kLoad)
 font       : font name

 Set text font to specified name. This function returns 0 if
 the specified font is found, 1 if not.
void SetTextFont(Font_t fontnumber)
 Set current text font number.
void SetTextSize(Float_t textsize)
 Set current text size.
void Sync(Int_t mode)
 Set synchronisation on or off.
 mode : synchronisation on/off
    mode=1  on
    mode<>0 off
void UpdateWindow(Int_t mode)
 Update display.
 mode : (1) update
        (0) sync

 Synchronise client and server once (not permanent).
 Copy the pixmap gCws->fDrawing on the window gCws->fWindow
 if the double buffer is on.
void Warp(Int_t ix, Int_t iy, Window_t id = 0)
 Set pointer position.
 ix       : New X coordinate of pointer
 iy       : New Y coordinate of pointer
 Coordinates are relative to the origin of the window id
 or to the origin of the current window if id == 0.
void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char* pxname)
 Write the pixmap wid in the bitmap file pxname.
 wid         : Pixmap address
 w,h         : Width and height of the pixmap.
 lenname     : pixmap name length
 pxname      : pixmap name
void ImgPickPalette(RXImage* image, Int_t& ncol, Int_t*& R, Int_t*& G, Int_t*& B)
 Returns in R G B the ncol colors of the palette used by the image.
 The image pixels are changed to index values in these R G B arrays.
 This produces a colormap with only the used colors (so even on displays
 with more than 8 planes we will be able to create GIF's when the image
 contains no more than 256 different colors). If it does contain more
 colors we will have to use GIFquantize to reduce the number of colors.
 The R G B arrays must be deleted by the caller.
Int_t WriteGIF(char* name)
 Writes the current window into GIF file. Returns 1 in case of success,
 0 otherwise.
void PutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx, Int_t ny, Int_t xmin, Int_t ymin, Int_t xmax, Int_t ymax, UChar_t* image, Drawable_t id)
 Draw image.
Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char* file, Window_t id = 0)
 If id is NULL - loads the specified gif file at position [x0,y0] in the
 current window. Otherwise creates pixmap from gif file
unsigned char * GetColorBits(Drawable_t wid, Int_t x = 0, Int_t y = 0, UInt_t w = 0, UInt_t h = 0)
 Returns an array of pixels created from a part of drawable (defined by x, y, w, h)
 in format:
 b1, g1, r1, 0,  b2, g2, r2, 0 ... bn, gn, rn, 0 ..

 Pixels are numbered from left to right and from top to bottom.
 By default all pixels from the whole drawable are returned.

 Note that return array is 32-bit aligned
Pixmap_t CreatePixmapFromData(unsigned char* bits, UInt_t width, UInt_t height)
 create pixmap from RGB data. RGB data is in format :
 b1, g1, r1, 0,  b2, g2, r2, 0 ... bn, gn, rn, 0 ..

 Pixels are numbered from left to right and from top to bottom.
 Note that data must be 32-bit aligned
Int_t AddPixmap(ULong_t pixid, UInt_t w, UInt_t h)
 Register pixmap created by gVirtualGL
 w,h : Width and height of the pixmap.
register new pixmap
Int_t SupportsExtension(const char* ext) const
 Returns 1 if window system server supports extension given by the
 argument, returns 0 in case extension is not supported and returns -1
 in case of error (like server not initialized).
 Examples:
   "Apple-WM" - does server run on MacOS X;
   "XINERAMA" - does server support Xinerama.
 See also the output of xdpyinfo.
void PutImage(Int_t offset, Int_t itran, Int_t x0, Int_t y0, Int_t nx, Int_t ny, Int_t xmin, Int_t ymin, Int_t xmax, Int_t ymax, UChar_t* image, Drawable_t id)
void MapGCValues(GCValues_t& gval, ULong_t& xmask, RXGCValues& xgval, Bool_t tox = kTRUE)
Private methods used for GUI
void MapSetWindowAttributes(SetWindowAttributes_t* attr, ULong_t& xmask, RXSetWindowAttributes& xattr)
void MapColorStruct(ColorStruct_t* color, RXColor& xcolor)
void MapPictureAttributes(PictureAttributes_t& attr, RXpmAttributes& xpmattr, Bool_t toxpm = kTRUE)
void MapEvent(Event_t& ev, void* xev, Bool_t tox = kTRUE)
 void MapEvent(Event_t &ev, XEvent &xev, Bool_t tox = kTRUE);
void MapEventMask(UInt_t& emask, UInt_t& xemask, Bool_t tox = kTRUE)
void MapKeySym(UInt_t& keysym, UInt_t& xkeysym, Bool_t tox = kTRUE)
Bool_t AllocColor(Colormap cmap, RXColor* color)
 needed by TGX11TTF
void ClearWindow()
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, const char* text, TVirtualX::ETextMode mode)
Handle_t GetNativeEvent() const
{ return (Handle_t) fXEvent; }
void GetTextExtent(UInt_t& w, UInt_t& h, char* mess)
Float_t GetTextMagnitude()
{ return fTextMagnitude; }
Bool_t HasTTFonts() const
{ return fHasTTFonts; }
void MoveWindow(Int_t wid, Int_t x, Int_t y)
Int_t OpenDisplay(void* display)
void QueryPointer(Int_t& ix, Int_t& iy)
void ResizeWindow(Int_t wid)
void SetCursor(Int_t win, ECursor cursor)
void SetTextMagnitude(Float_t mgn = 1)
{ fTextMagnitude = mgn;}
void GetWindowAttributes(Window_t id, WindowAttributes_t& attr)
Methods used for GUI
void MapWindow(Window_t id)
void MapSubwindows(Window_t id)
void MapRaised(Window_t id)
void UnmapWindow(Window_t id)
void DestroyWindow(Window_t id)
void DestroySubwindows(Window_t id)
void RaiseWindow(Window_t id)
void LowerWindow(Window_t id)
void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
void IconifyWindow(Window_t id)
void ReparentWindow(Window_t id, Window_t pid, Int_t x, Int_t y)
void SetWindowBackground(Window_t id, ULong_t color)
void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
Window_t CreateWindow(Window_t parent, Int_t x, Int_t y, UInt_t w, UInt_t h, UInt_t border, Int_t depth, UInt_t clss, void* visual, SetWindowAttributes_t* attr, UInt_t wtype)
void CloseDisplay()
Display_t GetDisplay() const
Visual_t GetVisual() const
Int_t GetScreen() const
Int_t GetDepth() const
Colormap_t GetColormap() const
Atom_t InternAtom(const char* atom_name, Bool_t only_if_exist)
Window_t GetDefaultRootWindow() const
Window_t GetParent(Window_t id) const
FontStruct_t LoadQueryFont(const char* font_name)
FontH_t GetFontHandle(FontStruct_t fs)
void DeleteFont(FontStruct_t fs)
GContext_t CreateGC(Drawable_t id, GCValues_t* gval)
void ChangeGC(GContext_t gc, GCValues_t* gval)
void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
void DeleteGC(GContext_t gc)
Cursor_t CreateCursor(ECursor cursor)
Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
Pixmap_t CreatePixmap(Drawable_t id, const char* bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth)
Pixmap_t CreateBitmap(Drawable_t id, const char* bitmap, UInt_t width, UInt_t height)
Bool_t CreatePictureFromFile(Drawable_t id, const char* filename, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr)
Bool_t ReadPictureDataFromFile(const char* filename, char*** ret_data)
void DeletePictureData(void* data)
void SetDashes(GContext_t gc, Int_t offset, const char* dash_list, Int_t n)
Bool_t ParseColor(Colormap_t cmap, const char* cname, ColorStruct_t& color)
void QueryColor(Colormap_t cmap, ColorStruct_t& color)
void FreeColor(Colormap_t cmap, ULong_t pixel)
Int_t EventsPending()
void NextEvent(Event_t& event)
void Bell(Int_t percent)
void CopyArea(Drawable_t src, Drawable_t dest, GContext_t gc, Int_t src_x, Int_t src_y, UInt_t width, UInt_t height, Int_t dest_x, Int_t dest_y)
void ChangeProperty(Window_t id, Atom_t property, Atom_t type, UChar_t* data, Int_t len)
void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
Bool_t CheckEvent(Window_t id, EGEventType type, Event_t& ev)
void SendEvent(Window_t id, Event_t* ev)
void WMDeleteNotify(Window_t id)
void SetKeyAutoRepeat(Bool_t on = kTRUE)
void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE)
void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab = kTRUE)
void SetWindowName(Window_t id, char* name)
void SetIconName(Window_t id, char* name)
void SetIconPixmap(Window_t id, Pixmap_t pic)
void SetClassHints(Window_t id, char* className, char* resourceName)
void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
void SetWMPosition(Window_t id, Int_t x, Int_t y)
void SetWMSize(Window_t id, UInt_t w, UInt_t h)
void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
void SetWMTransientHint(Window_t id, Window_t main_id)
void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, const char* s, Int_t len)
void GetFontProperties(FontStruct_t font, Int_t& max_ascent, Int_t& max_descent)
void GetGCValues(GContext_t gc, GCValues_t& gval)
FontStruct_t GetFontStruct(FontH_t fh)
void FreeFontStruct(FontStruct_t fs)
Int_t KeysymToKeycode(UInt_t keysym)
void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
void DrawSegments(Drawable_t id, GContext_t gc, Segment_t* seg, Int_t nseg)
void SelectInput(Window_t id, UInt_t evmask)
Window_t GetInputFocus()
void SetInputFocus(Window_t id)
Window_t GetPrimarySelectionOwner()
void SetPrimarySelectionOwner(Window_t id)
void ConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when)
void LookupString(Event_t* event, char* buf, Int_t buflen, UInt_t& keysym)
void GetPasteBuffer(Window_t id, Atom_t atom, TString& text, Int_t& nchar, Bool_t del)
void GetWindowSize(Drawable_t id, Int_t& x, Int_t& y, UInt_t& w, UInt_t& h)
void FillPolygon(Window_t id, GContext_t gc, Point_t* points, Int_t npnt)
void SetForeground(GContext_t gc, ULong_t foreground)
void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t* recs, Int_t n)
void Update(Int_t mode = 0)
Region_t CreateRegion()
void DestroyRegion(Region_t reg)
void UnionRectWithRegion(Rectangle_t* rect, Region_t src, Region_t dest)
Region_t PolygonRegion(Point_t* points, Int_t np, Bool_t winding)
void UnionRegion(Region_t rega, Region_t regb, Region_t result)
void IntersectRegion(Region_t rega, Region_t regb, Region_t result)
void SubtractRegion(Region_t rega, Region_t regb, Region_t result)
void XorRegion(Region_t rega, Region_t regb, Region_t result)
Bool_t EmptyRegion(Region_t reg)
Bool_t PointInRegion(Int_t x, Int_t y, Region_t reg)
Bool_t EqualRegion(Region_t rega, Region_t regb)
void GetRegionBox(Region_t reg, Rectangle_t* )
char ** ListFonts(const char* fontname, Int_t max, Int_t& count)
void FreeFontNames(char** fontlist)
Drawable_t CreateImage(UInt_t width, UInt_t height)
void GetImageSize(Drawable_t id, UInt_t& width, UInt_t& height)
void PutPixel(Drawable_t id, Int_t x, Int_t y, ULong_t pixel)
void DeleteImage(Drawable_t img)
void ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask)
UInt_t ScreenWidthMM() const
void DeleteProperty(Window_t , Atom_t& )
Int_t GetProperty(Window_t , Atom_t , Long_t , Long_t , Bool_t , Atom_t , Atom_t* , Int_t* , ULong_t* , ULong_t* , unsigned char** )
void ConvertSelection(Window_t , Atom_t& , Atom_t& , Atom_t& , Time_t& )
Bool_t SetSelectionOwner(Window_t , Atom_t& )
void ChangeProperties(Window_t id, Atom_t property, Atom_t type, Int_t format, UChar_t* data, Int_t len)
void SetTypeList(Window_t win, Atom_t prop, Atom_t* typelist)
Window_t FindRWindow(Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd)
Bool_t IsDNDAware(Window_t win, Atom_t* typelist)