library: libGQt
#include "TGQt.h"

TGQt


class description - header file - source file
viewCVS header - viewCVS source

class TGQt: public TVirtualX

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGQt()
TGQt(const TGQt& vx)
TGQt(const Text_t* name, const Text_t* title)
virtual~TGQt()
voidTObject::AbstractMethod(const char* method) const
virtual Int_tTVirtualX::AddPixmap(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 voidBell(Int_t percent)
virtual voidTObject::Browse(TBrowser* b)
virtual voidChangeGC(GContext_t gc, GCValues_t* gval)
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()
static intCoinFlag()
virtual Int_tTNamed::Compare(const TObject* obj) const
virtual voidConvertPrimarySelection(Window_t id, Atom_t clipboard, Time_t when)
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 voidCreateOpenGLContext(Int_t wid = 0)
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)
static TQtApplication*CreateQtApplicationImp()
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 = "")
virtual voidDeleteFont(FontStruct_t fs)
virtual voidDeleteGC(GContext_t gc)
virtual voidDeleteImage(Drawable_t img)
virtual voidDeleteOpenGLContext(Int_t wid = 0)
virtual voidDeletePictureData(void* data)
virtual voidDeletePixmap(Pixmap_t pmap)
virtual voidDestroyRegion(Region_t reg)
virtual voidTVirtualX::DestroySubwindows(Window_t id)
virtual voidDestroyWindow(Window_t id)
virtual const char*DisplayName(const char* = "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() const
virtual TObject*TObject::DrawClone(Option_t* option = "") const
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 voidTObject::Dump() const
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_tExecCommand(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 voidFreeColor(Colormap_t cmap, ULong_t pixel)
virtual voidFreeFontNames(char** fontlist)
virtual voidFreeFontStruct(FontStruct_t fs)
virtual Float_tGetAlpha(Int_t cindex)
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 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 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 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 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 voidGetRegionBox(Region_t reg, Rectangle_t* rect)
virtual voidGetRGB(Int_t index, Float_t& r, Float_t& g, Float_t& b)
virtual voidGetRGBA(Int_t cindex, Float_t& r, Float_t& g, Float_t& b, Float_t& a)
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 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 = 0)
virtual Int_tInitWindow(ULong_t window)
virtual voidTObject::Inspect() const
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
static Int_tIsCoinLoaded()
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tIsHandleValid(Window_t id)
Bool_tTObject::IsOnHeap() const
virtual Bool_tTNamed::IsSortable() const
virtual Bool_tTAttFill::IsTransparent() const
Bool_tTObject::IsZombie() const
static Int_tiwid(QPaintDevice* wid)
static QPaintDevice*iwid(Int_t wid)
static QPaintDevice*iwid(Window_t wid)
virtual Int_tKeysymToKeycode(UInt_t keysym)
virtual char**ListFonts(const char* fontname, Int_t max, Int_t& count)
virtual Int_tLoadQt(const char* shareLibFileName)
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 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 voidNextEvent(Event_t& event)
virtual Bool_tTObject::Notify()
virtual Int_tOpenDisplay(const char* dpyName)
virtual Int_tOpenPixmap(UInt_t w, UInt_t h)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static 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)
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()
static voidPostQtEvent(QObject* receiver, QEvent* event)
virtual voidTNamed::Print(Option_t* option = "") const
virtual Int_tprocessQtEvents(Int_t maxtime = 300)
virtual voidPutByte(Byte_t b)
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 voidTVirtualX::ReparentWindow(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 = "") const
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 voidSelectInput(Window_t id, UInt_t evmask)
virtual voidSelectPixmap(Int_t qpixid)
virtual voidSelectWindow(Int_t wid)
virtual voidSendEvent(Window_t id, Event_t* ev)
virtual voidSetAlpha(Int_t cindex, Float_t a)
virtual voidSetBackground(GContext_t gc, ULong_t background)
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)
static voidSetCoinFlag(int flag)
static voidSetCoinLoaded()
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 voidSetDoubleBuffer(Int_t wid, Int_t mode)
virtual voidSetDoubleBufferOFF()
virtual voidSetDoubleBufferON()
virtual voidSetDrawMode(TVirtualX::EDrawMode mode)
virtual voidTObject::SetDrawOption(Option_t* option = "")
static voidTObject::SetDtorOnly(void* obj)
virtual voidTAttFill::SetFillAttributes()
virtual voidSetFillColor(Color_t cindex)
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 pix)
virtual voidSetInputFocus(Window_t id)
virtual voidSetKeyAutoRepeat(Bool_t on = kTRUE)
virtual voidTAttLine::SetLineAttributes()
virtual voidSetLineColor(Color_t cindex)
virtual voidSetLineStyle(Style_t linestyle)
virtual voidSetLineType(Int_t n, Int_t* dash)
virtual voidSetLineWidth(Width_t width)
virtual voidTAttMarker::SetMarkerAttributes()
virtual voidSetMarkerColor(Color_t cindex)
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)
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 voidSetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b, Float_t a)
virtual voidSetTextAlign(Short_t talign = 11)
virtual voidTAttText::SetTextAngle(Float_t tangle = 0)
virtual voidTAttText::SetTextAttributes()
virtual voidSetTextColor(Color_t cindex)
virtual voidSetTextFont(Font_t fontnumber)
virtual Int_tSetTextFont(char* fontname, TVirtualX::ETextSetMode mode)
virtual voidSetTextMagnitude(Float_t mgn)
virtual voidSetTextSize(Float_t textsize)
virtual voidTAttText::SetTextSizePixels(Int_t npixels)
virtual voidTNamed::SetTitle(const char* title = "")
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 voidTVirtualX::ShapeCombineMask(Window_t id, Int_t x, Int_t y, Pixmap_t mask)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTNamed::Sizeof() const
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidSubtractRegion(Region_t rega, Region_t regb, Region_t result)
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)
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)
virtual voidWarp(Int_t ix, Int_t iy, Window_t id)
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:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
private:
static Bool_tIsRegistered(QPaintDevice* wid)
TGQt&operator=(const TGQt&)
static Int_tRegisterWid(QPaintDevice* wid)
static Int_tUnRegisterWid(QPaintDevice* wid)

Data Members

public:
enum TVirtualX::EDrawMode { kCopy
kXor
kInvert
};
enum TVirtualX::EBoxMode { kHollow
kFilled
};
enum TVirtualX::ETextMode { kClear
kOpaque
};
enum TVirtualX::ETextSetMode { kCheck
kLoad
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TVirtualX::EDrawModeTVirtualX::fDrawModeDrawing mode
TStringTNamed::fNameobject identifier
TStringTNamed::fTitleobject title
Color_tTAttLine::fLineColorline color
Style_tTAttLine::fLineStyleline style
Width_tTAttLine::fLineWidthline width
Color_tTAttFill::fFillColorfill area color
Style_tTAttFill::fFillStylefill area style
Float_tTAttText::fTextAngleText angle
Float_tTAttText::fTextSizeText size
Short_tTAttText::fTextAlignText alignment
Color_tTAttText::fTextColorText color index
Font_tTAttText::fTextFontText font number
Color_tTAttMarker::fMarkerColorMarker color index
Style_tTAttMarker::fMarkerStyleMarker style
Size_tTAttMarker::fMarkerSizeMarker size
private:
static intfgCoinFlagno coin viewer;
static intfgCoinLoadedno coin viewer;

Class Description

                                                                      
 TGQt                                                                 
                                                                      
 This class is the basic interface to the Qt graphics system. It is   
 an implementation of the abstract TVirtualX class.                   
                                                                      

QPaintDevice * iwid(Window_t wid)
 Convert ROOT Widget Id to the Qt QPaintDevice pointer
Int_t iwid(QPaintDevice *wid)
 method to provide the ROOT "cast" from (QPaintDevice*) to ROOT windows "id"
QPaintDevice * iwid(Int_t wid)
 method to restore (cast) the QPaintDevice object pointer from  ROOT windows "id"
int CoinFlag()
 return the Coin/QGL viewer flag safely
void SetCoinFlag(int flag)
 Set the Coin/QGL viewer flag safely
void SetCoinLoaded()
{ fgCoinLoaded = 1; }
Int_t IsCoinLoaded()
{ return fgCoinLoaded;}
TQtApplication * CreateQtApplicationImp()
 The method to instantiate the QApplication if needed
void PostQtEvent(QObject *receiver, QEvent *event)
 Qt announced that QThread::postEvent to become obsolete and
 we have to switch to the QAppication instead.
TGQt()
*-*-*-*-*-*-*-*-*-*-*-*Default Constructor *-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                    ===================
TGQt(const char *name, const char *title)
*-*-*-*-*-*-*-*-*-*-*-*-*-*Normal Constructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                        ==================                              *-*
~TGQt()
*-*-*-*-*-*-*-*-*-*-*-*Default Destructor*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                    ==================
Bool_t Init(void* /*display*/)
*-*-*-*-*-*-*-*-*-*-*-*-*-*Qt GUI initialization-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                        ========================                      *-*
Int_t RegisterWid(QPaintDevice *wid)
 register QWidget for the embedded TCanvas
Int_t UnRegisterWid(QPaintDevice *wid)
 unregister QWidget to the TCanvas
 return  = Root registration Id or zero if the wid was not registered
Bool_t IsRegistered(QPaintDevice *wid)
 Check whether the object has been registered
Int_t InitWindow(ULong_t window)
*-*
*-*  if window == 0 InitWindow creates his own instance of  TQtWindowsObject object
*-*
*-*  Create a new windows
*-*
 window is QWidget
Int_t OpenPixmap(UInt_t w, UInt_t h)
*-*  Create a new pixmap object
UInt_t ExecCommand(TGWin32Command* /*command*/)
 deprecated
void SetDoubleBufferOFF()
 deprecated
void SetDoubleBufferON()
 deprecated
void GetPlanes(Int_t &nplanes)
*-*-*-*-*-*-*-*-*-*-*-*Get maximum number of planes*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                    ============================
*-*  nplanes     : number of bit planes
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void ClearWindow()
 Clear current window.
 fprintf(stderr,"TGQt::ClearWindow() %p\n",fSelectedWindow);
void ClosePixmap()
 Delete the current pixmap.
void CloseWindow()
 Delete the current window.
void CopyPixmap(int wid, int xpos, int ypos)
 Copy the pixmap wid at the position xpos, ypos in the current window.
void CreateOpenGLContext(int wid)
 Create OpenGL context for win windows (for "selected" Window by default)
 printf(" TGQt::CreateOpenGLContext for wid = %x fSelected= %x, threadID= %d \n",wid,fSelectedWindow,
    GetCurrentThreadId());
void DeleteOpenGLContext(int wid)
 Delete OpenGL context for win windows (for "selected" Window by default)
void DrawBox(int x1, int y1, int x2, int y2, EBoxMode mode)
 Draw a box.
 mode=0 hollow  (kHollow)
 mode=1 solid   (kSolid)
void DrawCellArray(int x1, int y1, int x2, int y2, int nx, int ny, int *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 n, TPoint *xy)
 Fill area described by polygon.
 n         : number of points
 xy(2,n)   : list of points
void DrawLine(int x1, int y1, int x2, int y2)
 Draw a line.
 x1,y1        : begin of line
 x2,y2        : end of line
void DrawPolyLine(int n, TPoint *xy)
 Draw a line through all points.
 n         : number of points
 xy        : list of points
void DrawPolyMarker(int 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 x, int y, float angle, float mgn, const char *text, TVirtualX::ETextMode /*mode*/)
void GetCharacterUp(Float_t &chupx, Float_t &chupy)
 Return character up vector.
QPaintDevice * GetDoubleBuffer(QPaintDevice *dev)
 Query the pointer to the dev offscrenn buffer if any
void GetGeometry(int wid, int &x, int &y, unsigned int &w, unsigned int &h)
 Returns the global cooordinate of the window "wid"
const char * DisplayName(const char *)
{ return "localhost"; }
ULong_t GetPixel(Color_t cindex)
 Return pixel value associated to specified ROOT color number.
 see: GQTGUI.cxx:QtColor() also
void GetRGB(int index, float &r, float &g, float &b)
 Get rgb values for color "index".
Float_t GetTextMagnitude()
{return fTextMagnitude;}
void SetTextMagnitude(Float_t mgn)
{ fTextMagnitude = mgn;}
void GetTextExtent(unsigned int &w, unsigned int &h, char *mess)
 Return the size of a character string.
 iw          : text width
 ih          : text height
 mess        : message
Bool_t HasTTFonts()
{return kTRUE;}
void MoveWindow(Int_t wid, Int_t x, Int_t y)
 Move the window wid.
 wid  : Window identifier.
 x    : x new window position
 y    : y new window position
void PutByte(Byte_t )
void QueryPointer(int &ix, int &iy)
 deprecated
Pixmap_t ReadGIF(Int_t x0, Int_t y0, const char *file, Window_t id)
 If id is NULL - loads the specified gif file at position [x0,y0] in the
 current window. Otherwise creates pixmap from gif file
Int_t RequestLocator(Int_t /*mode*/, Int_t /*ctyp*/, Int_t &/*x*/, Int_t &/*y*/)
 deprecated
Int_t RequestString(int x, int y, char *text)
*-*-*-*-*-*-*-*-*-*-*-*Request 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)
*-*
*-*  Return value:
*-*
*-*    0     -  input was canceled
*-*    1     -  input was Ok
*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void RescaleWindow(int wid, UInt_t w, UInt_t h)
 Rescale the window wid.
 wid  : Window identifier
 w    : Width
 h    : Heigth
Int_t ResizePixmap(int 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 /* wid */)
 Resize the current window if necessary.
 No implementation is required under Qt.
void SelectPixmap(Int_t qpixid)
{ SelectWindow(qpixid);}
void SelectWindow(int 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.
 deprecated
 fQPainter->setClipping(FALSE);
void SetClipRegion(int wid, int x, int 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 SetCursor(Int_t wid, ECursor cursor)
 Set the cursor.
void SetDoubleBuffer(int wid, int 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 SetDrawMode(TVirtualX::EDrawMode mode)
 Set the drawing mode.
 mode : drawing mode
void SetFillColor(Color_t cindex)
 Set color index for fill areas.
void SetFillStyle(Style_t fstyle)
 Set fill area style.
 fstyle   : compound fill area interior style
    fstyle = 1000*interiorstyle + styleindex
void SetLineColor(Color_t cindex)
*-*-*-*-*-*-*-*-*-*-*Set color index for lines*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =========================
*-*  cindex    : color index
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void SetLineType(int n, int* /*dash*/)
*-*-*-*-*-*-*-*-*-*-*Set line style-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==============
*-*    Set line style:
*-*    if n < 0 use pre-defined Windows style:
*-*         0 - solid lines
*-*        -1 - solid lines
*-*        -2 - dash line
*-*        -3 - dot  line
*-*        -4 - dash-dot line
*-*        -5 - dash-dot-dot line
*-*     < -6 - solid line
*-*
*-*    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-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==============
*-*    Use pre-defined Windows style:
*-*    linestyle =
*-*         0 - solid lines
*-*        -1 - solid lines
*-*        -2 - dash line
*-*        -3 - dot  line
*-*        -4 - dash-dot line
*-*        -5 - dash-dot-dot line
*-*      < -6 - solid line
*-*
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void SetLineWidth(Width_t width)
*-*-*-*-*-*-*-*-*-*-*Set line width*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==============
*-*  width   : line width in pixels
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void SetMarkerColor( Color_t cindex)
*-*-*-*-*-*-*-*-*-*-*Set color index for markers*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ===========================
*-*  cindex : color index defined my IXSETCOL
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void SetMarkerSize(Float_t markersize)
*-*-*-*-*-*-*-*-*-*-*Set marker size index for markers*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  =================================
*-*  msize  : marker scale factor
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void SetMarkerStyle(Style_t markerstyle)
*-*-*-*-*-*-*-*-*-*-*Set marker style*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ================
void SetRGB(int cindex, float r, float g, float b)
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b, Float_t a)
 Set the color with the alpha component (supported wuth Qt 4 only)
void SetAlpha(Int_t cindex, Float_t a)
 Add  the alpha component (supported with Qt 4 only)
void GetRGBA(Int_t cindex, Float_t &r, Float_t &g, Float_t &b, Float_t &a)
 Return RGBA components for the color cindex
Float_t GetAlpha(Int_t cindex)
 Return Alpha component for the color cindex
void SetTextAlign(Short_t talign)
*-*-*-*-*-*-*-*-*-*-*Set text alignment*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ==================
*-*  txalh   : horizontal text alignment
*-*  txalv   : vertical text alignment
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
void SetTextColor(Color_t cindex)
*-*-*-*-*-*-*-*-*-*-*Set color index for text*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                  ========================
*-*  cindex    : color index defined my IXSETCOL
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Int_t SetTextFont(char* /*fontname*/, TVirtualX::ETextSetMode /*mode*/)
 Set text font to specified name.
 mode       : loading flag
 mode=kCheck = 0     : search if the font exist (kCheck)
 mode= kLoad = 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(const char *fontname, int italic, int bold)
void SetTextSize(Float_t textsize)
*-*-*-*-*-*-*-*-*-*-*-*-*Set current text size*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
*-*                      =====================
void UpdateWindow(int mode)
 Update display.
 mode : (1) update
        (0) sync
Int_t WriteGIF(char *name)
 Writes the current active window into pixmap file.
 The format is defined by the file name extension
 like "png","jpg","bmp"  . . .
 If no extension is provided the "png" format is used by default

 Returns 1 in case of success,
         0 otherwise
 Note: this method may not produce the expected result been called
 ----  from the ROOT prompt by simple reason:
       The active window will be console window
       rather the last selected ROOT canvas.

void WritePixmap(int wid, UInt_t w, UInt_t h, char *pxname)
 Write the pixmap wid in the bitmap file pxname in JPEG.
 wid         : Pixmap address
 w,h         : Width and height of the pixmap.
               if w = h = -1 the size of the pimxap is equal the size the wid size
 pxname      : pixmap file name
               The format is defined by the file name extension
               like "png","jpg","bmp"  . . .
               If no or some unknown extension is provided then
               the "png" format is used by default
Int_t LoadQt(const char *shareLibFileName)
 Make sure we load the GUI DLL from the gui thread
Int_t processQtEvents(Int_t maxtime)
 Force processing the Qt events only without entering the ROOT event loop
TGQt& operator=(const TGQt&)
TGQt()
Bool_t IsHandleValid(Window_t id)

Author: Valeri Fine 21/01/2002
Last update: root/qt:$Name: $:$Id: TGQt.cxx,v 1.35 2006/12/12 20:12:47 brun Exp $
Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.