TGXW
class description - source file - inheritance tree
public:
TGXW TGXW()
TGXW TGXW(Text_t* name, Text_t* title)
TGXW TGXW(TGXW&)
virtual void ~TGXW()
virtual Bool_t AllocColor(Colormap_t cmap, ColorStruct_t& color)
virtual void Bell(Int_t percent)
virtual void ChangeGC(GContext_t gc, GCValues_t* gval)
virtual void ChangeWindowAttributes(Window_t id, SetWindowAttributes_t* attr)
virtual Bool_t CheckEvent(Window_t id, EGEventType type, Event_t& ev)
TClass* Class()
virtual void ClearArea(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual void ClearWindow()
virtual void ClearWindow(Window_t id)
virtual void CloseDisplay()
virtual void ClosePixmap()
virtual void CloseWindow()
virtual void ConvertPrimarySelection(Window_t id, Time_t when)
virtual 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)
virtual void CopyGC(GContext_t org, GContext_t dest, Mask_t mask)
virtual void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
virtual Pixmap_t CreateBitmap(Drawable_t id, char* bitmap, UInt_t width, UInt_t height)
virtual Cursor_t CreateCursor(ECursor cursor)
virtual GContext_t CreateGC(Drawable_t id, GCValues_t* gval)
virtual void CreateOpenGLContext(Int_t wid = 0)
virtual Bool_t CreatePictureFromData(Drawable_t id, char** data, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr)
virtual Bool_t CreatePictureFromFile(Drawable_t id, char* filename, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr)
virtual Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
virtual Pixmap_t CreatePixmap(Drawable_t id, char* bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth)
virtual 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)
virtual void DeleteFont(FontStruct_t fs)
virtual void DeleteGC(GContext_t gc)
virtual void DeleteOpenGLContext(Int_t wid = 0)
virtual void DeletePictureData(void* data)
virtual void DeletePixmap(Pixmap_t pmap)
virtual void DestroyWindow(Window_t id)
virtual const char* DisplayName(char* = 0)
virtual void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, TGXW::EBoxMode mode)
virtual void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t* ic)
virtual void DrawFillArea(Int_t n, TPoint* xy)
virtual void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
virtual void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
virtual void DrawPolyLine(Int_t n, TPoint* xy)
virtual void DrawPolyMarker(Int_t n, TPoint* xy)
virtual void DrawRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual void DrawSegments(Drawable_t id, GContext_t gc, Segment_t* seg, Int_t nseg)
virtual void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, char* s, Int_t len)
virtual void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, char* text, TGXW::ETextMode mode)
virtual Int_t EventsPending()
virtual void FillPolygon(Window_t id, GContext_t gc, Point_t* points, Int_t npnt)
virtual void FillRectangle(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual void GetCharacterUp(Float_t& chupx, Float_t& chupy)
virtual Window_t GetDefaultRootWindow()
virtual Display_t GetDisplay()
virtual Int_t GetDoubleBuffer(Int_t wid)
TGXW::EDrawMode GetDrawMode()
virtual FontH_t GetFontHandle(FontStruct_t fs)
virtual void GetFontProperties(FontStruct_t font, Int_t& max_ascent, Int_t& max_descent)
virtual FontStruct_t GetFontStruct(FontH_t fh)
virtual void GetGCValues(GContext_t gc, GCValues_t& gval)
virtual void GetGeometry(Int_t wid, Int_t& x, Int_t& y, UInt_t& w, UInt_t& h)
virtual Window_t GetParent(Window_t id)
virtual void GetPasteBuffer(Window_t id, Atom_t atom, TString& text, Int_t& nchar, Bool_t del)
virtual void GetPlanes(Int_t& nplanes)
virtual Window_t GetPrimarySelectionOwner()
virtual void GetRGB(Int_t index, Float_t& r, Float_t& g, Float_t& b)
virtual void GetTextExtent(UInt_t& w, UInt_t& h, char* mess)
virtual Float_t GetTextMagnitude()
virtual void GetWindowAttributes(Window_t id, WindowAttributes_t& attr)
virtual Window_t GetWindowID(Int_t wid)
virtual void GetWindowSize(Drawable_t id, Int_t& x, Int_t& y, UInt_t& w, UInt_t& h)
virtual void GrabButton(Window_t id, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab = kTRUE)
virtual void GrabKey(Window_t id, Int_t keycode, UInt_t modifier, Bool_t grab = kTRUE)
virtual void GrabPointer(Window_t id, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab = kTRUE)
virtual Bool_t HasTTFonts()
virtual Bool_t Init(void* display = 0)
virtual Int_t InitWindow(ULong_t window)
virtual Atom_t InternAtom(char* atom_name, Bool_t only_if_exist)
virtual TClass* IsA()
virtual Int_t KeysymToKeycode(UInt_t keysym)
virtual FontStruct_t LoadQueryFont(char* font_name)
virtual void LookupString(Event_t* event, char* buf, Int_t buflen, UInt_t& keysym)
virtual void LowerWindow(Window_t id)
virtual void MapRaised(Window_t id)
virtual void MapSubwindows(Window_t id)
virtual void MapWindow(Window_t id)
virtual void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual void MoveWindow(Int_t wid, Int_t x, Int_t y)
virtual void MoveWindow(Window_t id, Int_t x, Int_t y)
virtual void NextEvent(Event_t& event)
virtual Int_t OpenDisplay(char* dpyName)
virtual Int_t OpenPixmap(UInt_t w, UInt_t h)
virtual Bool_t ParseColor(Colormap_t cmap, char* cname, ColorStruct_t& color)
virtual void QueryColor(Colormap_t cmap, ColorStruct_t& color)
virtual void QueryPointer(Int_t& ix, Int_t& iy)
virtual void QueryPointer(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 void RaiseWindow(Window_t id)
virtual void ReadGIF(Int_t x0, Int_t y0, char* file)
virtual Bool_t ReadPictureDataFromFile(char* filename, char*** ret_data)
virtual Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t& x, Int_t& y)
virtual Int_t RequestString(Int_t x, Int_t y, char* text)
virtual void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
virtual Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
virtual void ResizeWindow(Int_t wid)
virtual void ResizeWindow(Window_t id, UInt_t w, UInt_t h)
virtual void SelectInput(Window_t id, UInt_t evmask)
virtual void SelectWindow(Int_t wid)
virtual void SendEvent(Window_t id, Event_t* ev)
virtual void SetCharacterUp(Float_t chupx, Float_t chupy)
virtual void SetClassHints(Window_t id, char* className, char* resourceName)
virtual void SetClipOFF(Int_t wid)
virtual void SetClipRectangles(GContext_t gc, Int_t x, Int_t y, Rectangle_t* recs, Int_t n)
virtual void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual void SetCursor(Int_t win, ECursor cursor)
virtual void SetCursor(Window_t id, Cursor_t curid)
virtual void SetDashes(GContext_t gc, Int_t offset, char* dash_list, Int_t n)
virtual void SetDoubleBuffer(Int_t wid, Int_t mode)
virtual void SetDoubleBufferOFF()
virtual void SetDoubleBufferON()
virtual void SetDrawMode(TGXW::EDrawMode mode)
virtual void SetFillColor(Color_t cindex)
virtual void SetFillStyle(Style_t style)
virtual void SetForeground(GContext_t gc, ULong_t foreground)
virtual void SetIconName(Window_t id, char* name)
virtual void SetInputFocus(Window_t id)
virtual void SetKeyAutoRepeat(Bool_t on = kTRUE)
virtual void SetLineColor(Color_t cindex)
virtual void SetLineStyle(Style_t linestyle)
virtual void SetLineType(Int_t n, Int_t* dash)
virtual void SetLineWidth(Width_t width)
virtual void SetMarkerColor(Color_t cindex)
virtual void SetMarkerSize(Float_t markersize)
virtual void SetMarkerStyle(Style_t markerstyle)
virtual void SetMWMHints(Window_t id, UInt_t value, UInt_t funcs, UInt_t input)
virtual void SetOpacity(Int_t percent)
virtual void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
virtual void SetTextAlign(Short_t talign = 11)
virtual void SetTextColor(Color_t cindex)
virtual Int_t SetTextFont(char* fontname, TGXW::ETextSetMode mode)
virtual void SetTextFont(Font_t fontnumber)
virtual void SetTextMagnitude(Float_t mgn)
virtual void SetTextSize(Float_t textsize)
virtual void SetWindowBackground(Window_t id, ULong_t color)
virtual void SetWindowBackgroundPixmap(Window_t id, Pixmap_t pxm)
virtual void SetWindowName(Window_t id, char* name)
virtual void SetWMPosition(Window_t id, Int_t x, Int_t y)
virtual void SetWMSize(Window_t id, UInt_t w, UInt_t h)
virtual void SetWMSizeHints(Window_t id, UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
virtual void SetWMState(Window_t id, EInitialState state)
virtual void SetWMTransientHint(Window_t id, Window_t main_id)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
virtual Int_t TextWidth(FontStruct_t font, char* s, Int_t len)
virtual void TranslateCoordinates(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 void UnmapWindow(Window_t id)
virtual void Update(Int_t mode = 0)
virtual void UpdateWindow(Int_t mode)
virtual void Warp(Int_t ix, Int_t iy)
virtual void WMDeleteNotify(Window_t id)
virtual void WriteGIF(char* name)
virtual void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char* pxname)
protected:
TGXW::EDrawMode fDrawMode Drawing mode
public:
static const TGXW::EDrawMode kCopy
static const TGXW::EDrawMode kXor
static const TGXW::EDrawMode kInvert
static const TGXW::EBoxMode kHollow
static const TGXW::EBoxMode kFilled
static const TGXW::ETextMode kClear
static const TGXW::ETextMode kOpaque
static const TGXW::ETextSetMode kCheck
static const TGXW::ETextSetMode kLoad
See also
-
TGX11, TGXClient
TGXW
Semi-Abstract base class defining a generic interface to the
underlying, low level, graphics system (X11, Win32, MacOS).
An instance of TGXW itself defines a batch interface to the graphics
system.
TGXW(Text_t *name, Text_t *title) : TNamed(name, title),
TAttLine(1,1,1),TAttFill(1,1),TAttText(11,0,1,62,0.01), TAttMarker(1,1,1)
Ctor of ABC
void GetWindowAttributes(Window_t, WindowAttributes_t &attr)
Set WindowAttributes_t structure to defaults.
Bool_t ParseColor(Colormap_t, const char *, ColorStruct_t &color)
Set ColorStruct_t structure to default. Let system think we could
parse color.
Bool_t AllocColor(Colormap_t, ColorStruct_t &color)
Set pixel value. Let system think we could alocate color.
void QueryColor(Colormap_t, ColorStruct_t &color)
Set color components to default.
void NextEvent(Event_t &event)
Set to default event. This method however, should never be called.
void GetPasteBuffer(Window_t, Atom_t, TString &text, Int_t &nchar, Bool_t)
Get paste buffer. By default always empty.
Inline Functions
TGXW TGXW(Text_t* name, Text_t* title)
Bool_t Init(void* display = 0)
void ClearWindow()
void ClosePixmap()
void CloseWindow()
void CopyPixmap(Int_t wid, Int_t xpos, Int_t ypos)
void CreateOpenGLContext(Int_t wid = 0)
void DeleteOpenGLContext(Int_t wid = 0)
void DrawBox(Int_t x1, Int_t y1, Int_t x2, Int_t y2, TGXW::EBoxMode mode)
void DrawCellArray(Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, Int_t* ic)
void DrawFillArea(Int_t n, TPoint* xy)
void DrawLine(Int_t x1, Int_t y1, Int_t x2, Int_t y2)
void DrawPolyLine(Int_t n, TPoint* xy)
void DrawPolyMarker(Int_t n, TPoint* xy)
void DrawText(Int_t x, Int_t y, Float_t angle, Float_t mgn, char* text, TGXW::ETextMode mode)
void GetCharacterUp(Float_t& chupx, Float_t& chupy)
TGXW::EDrawMode GetDrawMode()
Int_t GetDoubleBuffer(Int_t wid)
void GetGeometry(Int_t wid, Int_t& x, Int_t& y, UInt_t& w, UInt_t& h)
const char* DisplayName(char* = 0)
void GetPlanes(Int_t& nplanes)
void GetRGB(Int_t index, Float_t& r, Float_t& g, Float_t& b)
void GetTextExtent(UInt_t& w, UInt_t& h, char* mess)
Float_t GetTextMagnitude()
Window_t GetWindowID(Int_t wid)
Bool_t HasTTFonts()
Int_t InitWindow(ULong_t window)
void MoveWindow(Int_t wid, Int_t x, Int_t y)
Int_t OpenPixmap(UInt_t w, UInt_t h)
void QueryPointer(Int_t& ix, Int_t& iy)
void ReadGIF(Int_t x0, Int_t y0, char* file)
Int_t RequestLocator(Int_t mode, Int_t ctyp, Int_t& x, Int_t& y)
Int_t RequestString(Int_t x, Int_t y, char* text)
void RescaleWindow(Int_t wid, UInt_t w, UInt_t h)
Int_t ResizePixmap(Int_t wid, UInt_t w, UInt_t h)
void ResizeWindow(Int_t wid)
void SelectWindow(Int_t wid)
void SetCharacterUp(Float_t chupx, Float_t chupy)
void SetClipOFF(Int_t wid)
void SetClipRegion(Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
void SetCursor(Int_t win, ECursor cursor)
void SetDoubleBuffer(Int_t wid, Int_t mode)
void SetDoubleBufferOFF()
void SetDoubleBufferON()
void SetDrawMode(TGXW::EDrawMode mode)
void SetFillColor(Color_t cindex)
void SetFillStyle(Style_t style)
void SetLineColor(Color_t cindex)
void SetLineType(Int_t n, Int_t* dash)
void SetLineStyle(Style_t linestyle)
void SetLineWidth(Width_t width)
void SetMarkerColor(Color_t cindex)
void SetMarkerSize(Float_t markersize)
void SetMarkerStyle(Style_t markerstyle)
void SetOpacity(Int_t percent)
void SetRGB(Int_t cindex, Float_t r, Float_t g, Float_t b)
void SetTextAlign(Short_t talign = 11)
void SetTextColor(Color_t cindex)
Int_t SetTextFont(char* fontname, TGXW::ETextSetMode mode)
void SetTextFont(Font_t fontnumber)
void SetTextMagnitude(Float_t mgn)
void SetTextSize(Float_t textsize)
void UpdateWindow(Int_t mode)
void Warp(Int_t ix, Int_t iy)
void WriteGIF(char* name)
void WritePixmap(Int_t wid, UInt_t w, UInt_t h, char* pxname)
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 RaiseWindow(Window_t id)
void LowerWindow(Window_t id)
void MoveWindow(Window_t id, Int_t x, Int_t y)
void MoveResizeWindow(Window_t id, Int_t x, Int_t y, UInt_t w, UInt_t h)
void ResizeWindow(Window_t id, UInt_t w, UInt_t h)
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)
Int_t OpenDisplay(char* dpyName)
void CloseDisplay()
Display_t GetDisplay()
Atom_t InternAtom(char* atom_name, Bool_t only_if_exist)
Window_t GetDefaultRootWindow()
Window_t GetParent(Window_t id)
FontStruct_t LoadQueryFont(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)
void SetCursor(Window_t id, Cursor_t curid)
Pixmap_t CreatePixmap(Drawable_t id, UInt_t w, UInt_t h)
Pixmap_t CreatePixmap(Drawable_t id, char* bitmap, UInt_t width, UInt_t height, ULong_t forecolor, ULong_t backcolor, Int_t depth)
Pixmap_t CreateBitmap(Drawable_t id, char* bitmap, UInt_t width, UInt_t height)
void DeletePixmap(Pixmap_t pmap)
Bool_t CreatePictureFromFile(Drawable_t id, char* filename, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr)
Bool_t CreatePictureFromData(Drawable_t id, char** data, Pixmap_t& pict, Pixmap_t& pict_mask, PictureAttributes_t& attr)
Bool_t ReadPictureDataFromFile(char* filename, char*** ret_data)
void DeletePictureData(void* data)
void SetDashes(GContext_t gc, Int_t offset, char* dash_list, Int_t n)
Int_t EventsPending()
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 ChangeWindowAttributes(Window_t id, SetWindowAttributes_t* attr)
void DrawLine(Drawable_t id, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
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 GrabPointer(Window_t id, 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 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 SetWMState(Window_t id, EInitialState state)
void SetWMTransientHint(Window_t id, Window_t main_id)
void DrawString(Drawable_t id, GContext_t gc, Int_t x, Int_t y, char* s, Int_t len)
Int_t TextWidth(FontStruct_t font, 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 ClearWindow(Window_t id)
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 DrawRectangle(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)
void SetInputFocus(Window_t id)
Window_t GetPrimarySelectionOwner()
void ConvertPrimarySelection(Window_t id, Time_t when)
void LookupString(Event_t* event, char* buf, Int_t buflen, UInt_t& keysym)
void TranslateCoordinates(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)
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 QueryPointer(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)
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)
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
TGXW TGXW(TGXW&)
void ~TGXW()
Author: Fons Rademakers 3/12/95
Last update: 2.00/00 08/01/98 20.24.17 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - 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.