Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGQuartz Class Reference

This is non-GUI part of TVirtualX interface, implemented for MacOS X, using CoreGraphics (Quartz).

Definition at line 28 of file TGQuartz.h.

Public Member Functions

 TGQuartz ()
 
 TGQuartz (const char *name, const char *title)
 
virtual void DrawBox (Int_t x1, Int_t y1, Int_t x2, Int_t y2, EBoxMode mode)
 Draws a box between [x1,y1] and [x2,y2] according to the "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)
 Draws a cell array.
 
virtual void DrawFillArea (Int_t n, TPoint *xy)
 Fills area described by the polygon.
 
virtual void DrawLine (Drawable_t wid, GContext_t gc, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Uses the components of the specified GC to draw a line between the specified set of points (x1, y1) and (x2, y2).
 
virtual void DrawLine (Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 Draws a line.
 
virtual void DrawPolyLine (Int_t n, TPoint *xy)
 Draws a line through all points in the list.
 
virtual void DrawPolyMarker (Int_t n, TPoint *xy)
 Draws "n" markers with the current attributes at position [x,y].
 
virtual void DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const char *text, ETextMode mode)
 Draws a text string using current font.
 
virtual void DrawText (Int_t x, Int_t y, Float_t angle, Float_t mgn, const wchar_t *text, ETextMode mode)
 Draws a text string using current font.
 
virtual Int_t GetFontAscent () const
 Returns the ascent of the current font (in pixels).
 
virtual Int_t GetFontAscent (const char *text) const
 Default version is noop, but in principle what ROOT understands as ascent is text related.
 
virtual Int_t GetFontDescent () const
 Returns the descent of the current font (in pixels.
 
virtual Int_t GetFontDescent (const char *text) const
 Default version is noop, but in principle what ROOT understands as descent requires a certain text.
 
virtual void GetTextExtent (UInt_t &w, UInt_t &h, char *text)
 Returns the size of the specified character string "mess".
 
virtual Float_t GetTextMagnitude ()
 Returns the current font magnification factor.
 
virtual TClassIsA () const
 
virtual void SetFillColor (Color_t cindex)
 Set the fill area color.
 
virtual void SetFillStyle (Style_t style)
 Set the fill area style.
 
virtual void SetLineColor (Color_t cindex)
 Set the line color.
 
virtual void SetLineStyle (Style_t linestyle)
 Set the line style.
 
virtual void SetLineWidth (Width_t width)
 Set the line width.
 
virtual void SetMarkerColor (Color_t cindex)
 Set the marker color.
 
virtual void SetMarkerSize (Float_t markersize)
 Set the marker size.
 
virtual void SetMarkerStyle (Style_t markerstyle)
 Set the marker style.
 
virtual void SetOpacity (Int_t percent)
 Sets opacity of the current window.
 
virtual void SetTextAlign (Short_t talign=11)
 Set the text alignment.
 
virtual void SetTextColor (Color_t cindex)
 Set the text color.
 
virtual Int_t SetTextFont (char *fontname, ETextSetMode mode)
 Sets text font to specified name "fontname".This function returns 0 if the specified font is found, 1 if it is not.
 
virtual void SetTextFont (Font_t fontnumber)
 Set the text font.
 
virtual void SetTextSize (Float_t textsize)
 Set the text size.
 
virtual void Streamer (TBuffer &)
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TGCocoa
 TGCocoa ()
 
 TGCocoa (const char *name, const char *title)
 
 ~TGCocoa ()
 
virtual Int_t AddPixmap (ULong_t pixid, UInt_t w, UInt_t h)
 Registers a pixmap created by TGLManager as a ROOT pixmap.
 
virtual Int_t AddWindow (ULong_t qwid, UInt_t w, UInt_t h)
 Registers a window created by Qt as a ROOT window.
 
virtual Bool_t AllocColor (Colormap_t cmap, ColorStruct_t &color)
 Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware.
 
virtual void Bell (Int_t percent)
 Sets the sound bell. Percent is loudness from -100% to 100%.
 
virtual void ChangeActivePointerGrab (Window_t, UInt_t, Cursor_t)
 Changes the specified dynamic parameters if the pointer is actively grabbed by the client and if the specified time is no earlier than the last-pointer-grab time and no later than the current X server time.
 
virtual void ChangeGC (GContext_t gc, GCValues_t *gval)
 Changes the components specified by the mask in gval for the specified GC.
 
virtual void ChangeProperties (Window_t wid, Atom_t property, Atom_t type, Int_t format, UChar_t *data, Int_t len)
 Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window.
 
virtual void ChangeProperty (Window_t wid, Atom_t property, Atom_t type, UChar_t *data, Int_t len)
 Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window.
 
virtual void ChangeWindowAttributes (Window_t wid, SetWindowAttributes_t *attr)
 Changes the attributes of the specified window "id" according the values provided in "attr".
 
virtual Bool_t CheckEvent (Window_t wid, EGEventType type, Event_t &ev)
 Check if there is for window "id" an event of type "type".
 
virtual void ClearArea (Window_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Paints a rectangular area in the specified window "id" according to the specified dimensions with the window's background pixel or pixmap.
 
void ClearAreaAux (Window_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 
virtual void ClearWindow ()
 Clears the entire area of the current window.
 
virtual void ClearWindow (Window_t wid)
 Clears the entire area in the specified window and it is equivalent to ClearArea(id, 0, 0, 0, 0)
 
virtual void CloseDisplay ()
 Closes connection to display server and destroys all windows.
 
virtual void ClosePixmap ()
 Deletes current pixmap.
 
virtual void CloseWindow ()
 Deletes current window.
 
void CocoaDrawOFF ()
 
void CocoaDrawON ()
 
virtual void ConvertPrimarySelection (Window_t wid, Atom_t clipboard, Time_t when)
 Causes a SelectionRequest event to be sent to the current primary selection owner.
 
virtual void ConvertSelection (Window_t, Atom_t &, Atom_t &, Atom_t &, Time_t &)
 Requests that the specified selection be converted to the specified target type.
 
virtual void CopyArea (Drawable_t src, Drawable_t dst, GContext_t gc, Int_t srcX, Int_t srcY, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY)
 Combines the specified rectangle of "src" with the specified rectangle of "dest" according to the "gc".
 
void CopyAreaAux (Drawable_t src, Drawable_t dst, const GCValues_t &gc, Int_t srcX, Int_t srcY, UInt_t width, UInt_t height, Int_t dstX, Int_t dstY)
 
virtual void CopyGC (GContext_t org, GContext_t dest, Mask_t mask)
 Copies the specified components from the source GC "org" to the destination GC "dest".
 
virtual void CopyPixmap (Int_t wid, Int_t xpos, Int_t ypos)
 Copies the pixmap "wid" at the position [xpos,ypos] in the current window.
 
virtual Pixmap_t CreateBitmap (Drawable_t wid, const char *bitmap, UInt_t width, UInt_t height)
 Creates a bitmap (i.e.
 
virtual Cursor_t CreateCursor (ECursor cursor)
 Creates the specified cursor.
 
virtual GContext_t CreateGC (Drawable_t wid, GCValues_t *gval)
 Creates a graphics context using the provided GCValues_t *gval structure.
 
virtual Drawable_t CreateImage (UInt_t width, UInt_t height)
 Allocates the memory needed for an drawable.
 
virtual void CreateOpenGLContext (Int_t wid)
 Creates OpenGL context for window "wid".
 
virtual Handle_t CreateOpenGLContext (Window_t windowID, Handle_t sharedContext)
 Creates OpenGL context for window "windowID".
 
virtual Window_t CreateOpenGLWindow (Window_t parentID, UInt_t width, UInt_t height, const std::vector< std::pair< UInt_t, Int_t > > &format)
 Create window with special pixel format. Noop everywhere except Cocoa.
 
virtual Bool_t CreatePictureFromData (Drawable_t wid, char **data, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Creates a picture pict from data in bitmap format.
 
virtual Bool_t CreatePictureFromFile (Drawable_t wid, const char *filename, Pixmap_t &pict, Pixmap_t &pict_mask, PictureAttributes_t &attr)
 Creates a picture pict from data in file "filename".
 
virtual Pixmap_t CreatePixmap (Drawable_t wid, const char *bitmap, UInt_t width, UInt_t height, ULong_t foregroundColor, ULong_t backgroundColor, Int_t depth)
 Creates a pixmap from bitmap data of the width, height, and depth you specified and returns a pixmap that identifies it.
 
virtual Pixmap_t CreatePixmap (Drawable_t wid, UInt_t w, UInt_t h)
 Creates a pixmap of the specified width and height and returns a pixmap ID that identifies it.
 
virtual Pixmap_t CreatePixmapFromData (unsigned char *bits, UInt_t width, UInt_t height)
 create pixmap from RGB data.
 
virtual Region_t CreateRegion ()
 Creates a new empty region.
 
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, UInt_t wtype)
 Creates an unmapped subwindow for a specified parent window and returns the created window.
 
virtual void DeleteFont (FontStruct_t fs)
 Explicitly deletes the font structure "fs" obtained via LoadQueryFont().
 
virtual void DeleteGC (GContext_t gc)
 Deletes the specified GC "gc".
 
virtual void DeleteImage (Drawable_t img)
 Deallocates the memory associated with the image img.
 
virtual void DeleteOpenGLContext (Int_t ctxID)
 Deletes OpenGL context for window "wid".
 
virtual void DeletePictureData (void *data)
 Delete picture data created by the function ReadPictureDataFromFile.
 
virtual void DeletePixmap (Pixmap_t pixmapID)
 Explicitly deletes the pixmap resource "pmap".
 
void DeletePixmapAux (Pixmap_t pixmapID)
 
virtual void DeleteProperty (Window_t, Atom_t &)
 Deletes the specified property only if the property was defined on the specified window and causes the X server to generate a PropertyNotify event on the window unless the property does not exist.
 
virtual void DestroyRegion (Region_t reg)
 Destroys the region "reg".
 
virtual void DestroySubwindows (Window_t wid)
 The DestroySubwindows function destroys all inferior windows of the specified window, in bottom-to-top stacking order.
 
virtual void DestroyWindow (Window_t wid)
 Destroys the window "id" as well as all of its subwindows.
 
virtual const char * DisplayName (const char *)
 Returns hostname on which the display is opened.
 
void DrawLineAux (Drawable_t wid, const GCValues_t &gcVals, Int_t x1, Int_t y1, Int_t x2, Int_t y2)
 
virtual void DrawRectangle (Drawable_t wid, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draws rectangle outlines of [x,y] [x+w,y] [x+w,y+h] [x,y+h].
 
void DrawRectangleAux (Drawable_t wid, const GCValues_t &gcVals, Int_t x, Int_t y, UInt_t w, UInt_t h)
 
virtual void DrawSegments (Drawable_t wid, GContext_t gc, Segment_t *segments, Int_t nSegments)
 Draws multiple line segments.
 
void DrawSegmentsAux (Drawable_t wid, const GCValues_t &gcVals, const Segment_t *segments, Int_t nSegments)
 
virtual void DrawString (Drawable_t wid, GContext_t gc, Int_t x, Int_t y, const char *s, Int_t len)
 Each character image, as defined by the font in the GC, is treated as an additional mask for a fill operation on the drawable.
 
void DrawStringAux (Drawable_t wid, const GCValues_t &gc, Int_t x, Int_t y, const char *s, Int_t len)
 
virtual Bool_t EmptyRegion (Region_t reg)
 Returns kTRUE if the region reg is empty.
 
virtual Bool_t EqualRegion (Region_t rega, Region_t regb)
 Returns kTRUE if the two regions have the same offset, size, and shape.
 
virtual Int_t EventsPending ()
 Returns the number of events that have been received from the X server but have not been removed from the event queue.
 
virtual UInt_t ExecCommand (TGWin32Command *code)
 Executes the command "code" coming from the other threads (Win32)
 
virtual void FillPolygon (Window_t wid, GContext_t gc, Point_t *polygon, Int_t nPoints)
 Fills the region closed by the specified path.
 
void FillPolygonAux (Window_t wid, const GCValues_t &gcVals, const Point_t *polygon, Int_t nPoints)
 
virtual void FillRectangle (Drawable_t wid, GContext_t gc, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Fills the specified rectangle defined by [x,y] [x+w,y] [x+w,y+h] [x,y+h].
 
void FillRectangleAux (Drawable_t wid, const GCValues_t &gcVals, Int_t x, Int_t y, UInt_t w, UInt_t h)
 
virtual Window_t FindRWindow (Window_t win, Window_t dragwin, Window_t input, int x, int y, int maxd)
 Recursively search in the children of Window for a Window which is at location x, y and is DND aware, with a maximum depth of maxd.
 
virtual void FlushOpenGLBuffer (Handle_t ctxID)
 Flushes OpenGL buffer.
 
virtual void FreeColor (Colormap_t cmap, ULong_t pixel)
 Frees color cell with specified pixel value.
 
virtual void FreeFontNames (char **fontlist)
 Frees the specified the array of strings "fontlist".
 
virtual void FreeFontStruct (FontStruct_t fs)
 Frees the font structure "fs".
 
virtual void GetCharacterUp (Float_t &chupx, Float_t &chupy)
 Returns character up vector.
 
virtual unsigned char * GetColorBits (Drawable_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Returns an array of pixels created from a part of drawable (defined by x, y, w, h) in format:
 
virtual Colormap_t GetColormap () const
 Returns handle to colormap.
 
ROOT::MacOSX::X11::CommandBufferGetCommandBuffer () const
 
virtual Handle_t GetCurrentOpenGLContext ()
 Asks OpenGL subsystem about the current OpenGL context.
 
virtual Window_t GetCurrentWindow () const
 pointer to the current internal window used in canvas graphics
 
virtual Window_t GetDefaultRootWindow () const
 Returns handle to the default root window created when calling XOpenDisplay().
 
virtual Int_t GetDepth () const
 Returns depth of screen (number of bit planes).
 
virtual Display_t GetDisplay () const
 Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g.
 
ROOT::MacOSX::X11::Rectangle GetDisplayGeometry () const
 
virtual Int_t GetDoubleBuffer (Int_t wid)
 Queries the double buffer value for the window "wid".
 
ROOT::MacOSX::X11::EventTranslatorGetEventTranslator () const
 
virtual FontH_t GetFontHandle (FontStruct_t fs)
 Returns the font handle of the specified font structure "fs".
 
virtual void GetFontProperties (FontStruct_t font, Int_t &max_ascent, Int_t &max_descent)
 Returns the font properties.
 
virtual FontStruct_t GetFontStruct (FontH_t fh)
 Retrieves the associated font structure of the font specified font handle "fh".
 
virtual void GetGCValues (GContext_t gc, GCValues_t &gval)
 Returns the components specified by the mask in "gval" for the specified GC "gc" (see also the GCValues_t structure)
 
virtual void GetGeometry (Int_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
 Returns position and size of window "wid".
 
virtual void GetImageSize (Drawable_t wid, UInt_t &width, UInt_t &height)
 Returns the width and height of the image id.
 
virtual Window_t GetInputFocus ()
 Returns the window id of the window having the input focus.
 
virtual Handle_t GetNativeEvent () const
 Returns the current native event handle.
 
virtual Double_t GetOpenGLScalingFactor ()
 On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height.
 
virtual Window_t GetParent (Window_t wid) const
 Returns the parent of the window "id".
 
virtual void GetPasteBuffer (Window_t wid, Atom_t atom, TString &text, Int_t &nchar, Bool_t del)
 Gets contents of the paste buffer "atom" into the string "text".
 
virtual ULong_t GetPixel (Color_t cindex)
 Returns pixel value associated to specified ROOT color number "cindex".
 
virtual void GetPlanes (Int_t &nplanes)
 Returns the maximum number of planes.
 
virtual Window_t GetPrimarySelectionOwner ()
 Returns the window id of the current owner of the primary selection.
 
virtual 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 **)
 Returns the actual type of the property; the actual format of the property; the number of 8-bit, 16-bit, or 32-bit items transferred; the number of bytes remaining to be read in the property; and a pointer to the data actually returned.
 
virtual void GetRegionBox (Region_t reg, Rectangle_t *rect)
 Returns smallest enclosing rectangle.
 
virtual void GetRGB (Int_t index, Float_t &r, Float_t &g, Float_t &b)
 Returns RGB values for color "index".
 
virtual Int_t GetScreen () const
 Returns screen number.
 
virtual Visual_t GetVisual () const
 Returns handle to visual.
 
virtual void GetWindowAttributes (Window_t wid, WindowAttributes_t &attr)
 The WindowAttributes_t structure is set to default.
 
virtual Window_t GetWindowID (Int_t wid)
 Returns the X11 window identifier.
 
virtual void GetWindowSize (Drawable_t wid, Int_t &x, Int_t &y, UInt_t &w, UInt_t &h)
 Returns the location and the size of window "id".
 
virtual void GrabButton (Window_t wid, EMouseButton button, UInt_t modifier, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE)
 Establishes a passive grab on a certain mouse button.
 
virtual void GrabKey (Window_t wid, Int_t keycode, UInt_t modifier, Bool_t grab=kTRUE)
 Establishes a passive grab on the keyboard.
 
virtual void GrabPointer (Window_t wid, UInt_t evmask, Window_t confine, Cursor_t cursor, Bool_t grab=kTRUE, Bool_t owner_events=kTRUE)
 Establishes an active pointer grab.
 
virtual Bool_t HasTTFonts () const
 Returns True when TrueType fonts are used.
 
virtual void IconifyWindow (Window_t wid)
 Iconifies the window "id".
 
virtual Bool_t Init (void *display)
 Initializes the X system.
 
virtual Int_t InitWindow (ULong_t window)
 Creates a new window and return window number.
 
virtual Atom_t InternAtom (const char *atom_name, Bool_t only_if_exist)
 Returns the atom identifier associated with the specified "atom_name" string.
 
virtual void IntersectRegion (Region_t rega, Region_t regb, Region_t result)
 Computes the intersection of two regions.
 
virtual Bool_t IsCmdThread () const
 
Bool_t IsCocoaDraw () const
 
virtual Bool_t IsDNDAware (Window_t win, Atom_t *typelist)
 Checks if the Window is DND aware, and knows any of the DND formats passed in argument.
 
virtual Int_t KeysymToKeycode (UInt_t keysym)
 Converts the "keysym" to the appropriate keycode.
 
virtual char ** ListFonts (const char *fontname, Int_t max, Int_t &count)
 Returns list of font names matching fontname regexp, like "-*-times-*".
 
virtual FontStruct_t LoadQueryFont (const char *font_name)
 Provides the most common way for accessing a font: opens (loads) the specified font and returns a pointer to the appropriate FontStruct_t structure.
 
virtual void LookupString (Event_t *event, char *buf, Int_t buflen, UInt_t &keysym)
 Converts the keycode from the event structure to a key symbol (according to the modifiers specified in the event structure and the current keyboard mapping).
 
virtual void LowerWindow (Window_t wid)
 Lowers the specified window "id" to the bottom of the stack so that it does not obscure any sibling windows.
 
virtual Bool_t MakeOpenGLContextCurrent (Handle_t ctx, Window_t windowID)
 Makes context ctx current OpenGL context.
 
virtual void MapRaised (Window_t wid)
 Maps the window "id" and all of its subwindows that have had map requests on the screen and put this window on the top of of the stack of all windows.
 
virtual void MapSubwindows (Window_t wid)
 Maps all subwindows for the specified window "id" in top-to-bottom stacking order.
 
virtual void MapWindow (Window_t wid)
 Maps the window "id" and all of its subwindows that have had map requests.
 
virtual void MoveResizeWindow (Window_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Changes the size and location of the specified window "id" without raising it.
 
virtual void MoveWindow (Int_t wid, Int_t x, Int_t y)
 Moves the window "wid" to the specified x and y coordinates.
 
virtual void MoveWindow (Window_t wid, Int_t x, Int_t y)
 Moves the specified window to the specified x and y coordinates.
 
virtual Bool_t NeedRedraw (ULong_t tgwindow, Bool_t force)
 Notify the low level GUI layer ROOT requires "tgwindow" to be updated.
 
virtual void NextEvent (Event_t &event)
 The "event" is set to default event.
 
virtual Int_t OpenDisplay (const char *displayName)
 Opens connection to display server (if such a thing exist on the current platform).
 
virtual Int_t OpenPixmap (UInt_t w, UInt_t h)
 Creates a pixmap of the width "w" and height "h" you specified.
 
virtual Bool_t ParseColor (Colormap_t cmap, const char *cname, ColorStruct_t &color)
 Looks up the string name of a color "cname" with respect to the screen associated with the specified colormap.
 
virtual Bool_t PointInRegion (Int_t x, Int_t y, Region_t reg)
 Returns kTRUE if the point [x, y] is contained in the region reg.
 
virtual Region_t PolygonRegion (Point_t *points, Int_t np, Bool_t winding)
 Returns a region for the polygon defined by the points array.
 
virtual void PutImage (Drawable_t wid, GContext_t gc, Drawable_t img, Int_t dx, Int_t dy, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Combines an image with a rectangle of the specified drawable.
 
virtual void PutPixel (Drawable_t wid, Int_t x, Int_t y, ULong_t pixel)
 Overwrites the pixel in the image with the specified pixel value.
 
virtual void QueryColor (Colormap_t cmap, ColorStruct_t &color)
 Returns the current RGB value for the pixel in the "color" structure.
 
virtual void QueryPointer (Int_t &x, Int_t &y)
 Returns the pointer position.
 
virtual void QueryPointer (Window_t wid, 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)
 Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin.
 
virtual void RaiseWindow (Window_t wid)
 Raises the specified window to the top of the stack so that no sibling window obscures it.
 
virtual Pixmap_t ReadGIF (Int_t x0, Int_t y0, const char *file, Window_t wid)
 If id is NULL - loads the specified gif file at position [x0,y0] in the current window.
 
virtual Bool_t ReadPictureDataFromFile (const char *filename, char ***ret_data)
 Reads picture data from file "filename" and store it in "ret_data".
 
void ReconfigureDisplay ()
 
virtual void RemoveWindow (ULong_t qwid)
 Removes the created by Qt window "qwid".
 
void ReparentChild (Window_t wid, Window_t pid, Int_t x, Int_t y)
 
void ReparentTopLevel (Window_t wid, Window_t pid, Int_t x, Int_t y)
 
virtual void ReparentWindow (Window_t wid, Window_t pid, Int_t x, Int_t y)
 If the specified window is mapped, ReparentWindow automatically performs an UnmapWindow request on it, removes it from its current position in the hierarchy, and inserts it as the child of the specified parent.
 
virtual Int_t RequestLocator (Int_t mode, Int_t ctyp, Int_t &x, Int_t &y)
 Requests Locator position.
 
virtual Int_t RequestString (Int_t x, Int_t y, char *text)
 Requests string: text is displayed and can be edited with Emacs-like keybinding.
 
virtual void RescaleWindow (Int_t wid, UInt_t w, UInt_t h)
 Rescales the window "wid".
 
virtual Int_t ResizePixmap (Int_t wid, UInt_t w, UInt_t h)
 Resizes the specified pixmap "wid".
 
virtual void ResizeWindow (Int_t wid)
 Resizes the window "wid" if necessary.
 
virtual void ResizeWindow (Window_t wid, UInt_t w, UInt_t h)
 Changes the width and height of the specified window "id", not including its borders.
 
virtual UInt_t ScreenWidthMM () const
 Returns the width of the screen in millimeters.
 
virtual void SelectInput (Window_t wid, UInt_t evmask)
 Defines which input events the window is interested in.
 
virtual void SelectPixmap (Int_t qpixid)
 Selects the pixmap "qpixid".
 
virtual void SelectWindow (Int_t wid)
 Selects the window "wid" to which subsequent output is directed.
 
virtual void SendEvent (Window_t wid, Event_t *ev)
 Specifies the event "ev" is to be sent to the window "id".
 
virtual void SetCharacterUp (Float_t chupx, Float_t chupy)
 Sets character up vector.
 
virtual void SetClassHints (Window_t wid, char *className, char *resourceName)
 Sets the windows class and resource name.
 
virtual void SetClipOFF (Int_t wid)
 Turns off the clipping for the window "wid".
 
virtual void SetClipRectangles (GContext_t gc, Int_t x, Int_t y, Rectangle_t *recs, Int_t n)
 Sets clipping rectangles in graphics context.
 
virtual void SetClipRegion (Int_t wid, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Sets clipping region for the window "wid".
 
virtual void SetCursor (Int_t win, ECursor cursor)
 The cursor "cursor" will be used when the pointer is in the window "wid".
 
virtual void SetCursor (Window_t wid, Cursor_t curid)
 Sets the cursor "curid" to be used when the pointer is in the window "id".
 
virtual void SetDashes (GContext_t gc, Int_t offset, const char *dash_list, Int_t n)
 Sets the dash-offset and dash-list attributes for dashed line styles in the specified GC.
 
virtual void SetDNDAware (Window_t, Atom_t *)
 Add XdndAware property and the list of drag and drop types to the Window win.
 
virtual void SetDoubleBuffer (Int_t wid, Int_t mode)
 Sets the double buffer on/off on the window "wid".
 
virtual void SetDoubleBufferOFF ()
 Turns double buffer mode off.
 
virtual void SetDoubleBufferON ()
 Turns double buffer mode on.
 
virtual void SetDrawMode (EDrawMode mode)
 Sets the drawing mode.
 
virtual void SetForeground (GContext_t gc, ULong_t foreground)
 Sets the foreground color for the specified GC (shortcut for ChangeGC with only foreground mask set).
 
virtual void SetIconName (Window_t wid, char *name)
 Sets the window icon name.
 
virtual void SetIconPixmap (Window_t wid, Pixmap_t pix)
 Sets the icon name pixmap.
 
virtual void SetInputFocus (Window_t wid)
 Changes the input focus to specified window "id".
 
virtual void SetKeyAutoRepeat (Bool_t on=kTRUE)
 Turns key auto repeat on (kTRUE) or off (kFALSE).
 
virtual void SetMWMHints (Window_t winID, UInt_t value, UInt_t decorators, UInt_t inputMode)
 Sets decoration style.
 
virtual void SetPrimarySelectionOwner (Window_t wid)
 Makes the window "id" the current owner of the primary selection.
 
virtual void SetRGB (Int_t cindex, Float_t r, Float_t g, Float_t b)
 Sets color intensities the specified color index "cindex".
 
virtual Bool_t SetSelectionOwner (Window_t windowID, Atom_t &selectionID)
 Changes the owner and last-change time for the specified selection.
 
virtual void SetTextMagnitude (Float_t mgn)
 Sets the current text magnification factor to "mgn".
 
virtual void SetTypeList (Window_t win, Atom_t prop, Atom_t *typelist)
 Add the list of drag and drop types to the Window win.
 
virtual void SetWindowBackground (Window_t wid, ULong_t color)
 Sets the background of the window "id" to the specified color value "color".
 
virtual void SetWindowBackgroundPixmap (Window_t wid, Pixmap_t pxm)
 Sets the background pixmap of the window "id" to the specified pixmap "pxm".
 
virtual void SetWindowName (Window_t wid, char *name)
 Sets the window name.
 
virtual void SetWMPosition (Window_t winID, Int_t x, Int_t y)
 Tells the window manager the desired position [x,y] of window "id".
 
virtual void SetWMSize (Window_t winID, UInt_t w, UInt_t h)
 Tells window manager the desired size of window "id".
 
virtual void SetWMSizeHints (Window_t winID, UInt_t wMin, UInt_t hMin, UInt_t wMax, UInt_t hMax, UInt_t wInc, UInt_t hInc)
 Gives the window manager minimum and maximum size hints of the window "id".
 
virtual void SetWMState (Window_t winID, EInitialState state)
 Sets the initial state of the window "id": either kNormalState or kIconicState.
 
virtual void SetWMTransientHint (Window_t winID, Window_t mainWinID)
 Tells window manager that the window "id" is a transient window of the window "main_id".
 
virtual void ShapeCombineMask (Window_t wid, Int_t x, Int_t y, Pixmap_t mask)
 The Non-rectangular Window Shape Extension adds non-rectangular windows to the System.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SubtractRegion (Region_t rega, Region_t regb, Region_t result)
 Subtracts regb from rega and stores the results in result.
 
virtual Int_t SupportsExtension (const char *extensionName) 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).
 
virtual void Sync (Int_t mode)
 Set synchronisation on or off.
 
virtual Int_t TextWidth (FontStruct_t font, const char *s, Int_t len)
 Return length of the string "s" in pixels. Size depends on font.
 
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)
 Translates coordinates in one window to the coordinate space of another window.
 
virtual void UnionRectWithRegion (Rectangle_t *rect, Region_t src, Region_t dest)
 Updates the destination region from a union of the specified rectangle and the specified source region.
 
virtual void UnionRegion (Region_t rega, Region_t regb, Region_t result)
 Computes the union of two regions.
 
virtual void UnmapWindow (Window_t wid)
 Unmaps the specified window "id".
 
virtual void Update (Int_t mode)
 Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer.
 
virtual void UpdateWindow (Int_t mode)
 Updates or synchronises client and server once (not permanent).
 
virtual void Warp (Int_t ix, Int_t iy, Window_t wid)
 Sets the pointer position.
 
virtual void WMDeleteNotify (Window_t wid)
 Tells WM to send message when window is closed via WM.
 
virtual Int_t WriteGIF (char *name)
 Writes the current window into GIF file.
 
virtual void WritePixmap (Int_t wid, UInt_t w, UInt_t h, char *pxname)
 Writes the pixmap "wid" in the bitmap file "pxname".
 
virtual void XorRegion (Region_t rega, Region_t regb, Region_t result)
 Calculates the difference between the union and intersection of two regions.
 
- Public Member Functions inherited from TVirtualX
 TVirtualX ()
 
 TVirtualX (const char *name, const char *title)
 Ctor of ABC.
 
virtual ~TVirtualX ()
 
virtual void BeginModalSessionFor (Window_t window)
 Start a modal session for a dialog window.
 
virtual void DispatchClientMessage (UInt_t messageID)
 Force processing of event, sent by SendEvent before.
 
EDrawMode GetDrawMode ()
 
virtual FontStruct_t GetGCFont (GContext_t gc)
 Return the font associated with the graphics context gc.
 
virtual void GetTextExtent (UInt_t &w, UInt_t &h, wchar_t *mess)
 Returns the size of the specified character string "mess".
 
TClassIsA () const override
 
virtual void MapGCFont (GContext_t, FontStruct_t)
 Map the XftFont with the Graphics Context using it.
 
void SetFillColor (Color_t cindex) override
 Sets color index "cindex" for fill areas.
 
void SetFillStyle (Style_t style) override
 Sets fill area style.
 
void SetLineColor (Color_t cindex) override
 Sets color index "cindex" for drawing lines.
 
void SetLineStyle (Style_t linestyle) override
 Sets the line style.
 
virtual void SetLineType (Int_t n, Int_t *dash)
 Sets the line type.
 
void SetLineWidth (Width_t width) override
 Sets the line width.
 
void SetMarkerColor (Color_t cindex) override
 Sets color index "cindex" for markers.
 
void SetMarkerSize (Float_t markersize) override
 Sets marker size index.
 
void SetMarkerStyle (Style_t markerstyle) override
 Sets marker style.
 
void SetTextAlign (Short_t talign=11) override
 Sets the text alignment.
 
void SetTextColor (Color_t cindex) override
 Sets the color index "cindex" for text.
 
void SetTextFont (Font_t fontnumber) override
 Sets the current text font number.
 
void SetTextSize (Float_t textsize) override
 Sets the current text size to "textsize".
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
 
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
 
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
 
void Copy (TObject &named) const override
 Copy this to obj.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
const char * GetName () const override
 Returns name of object.
 
const char * GetTitle () const override
 Returns title of object.
 
ULong_t Hash () const override
 Return hash value for this object.
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 List TNamed name and title.
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
void Print (Option_t *option="") const override
 Print TNamed name and title.
 
virtual void SetName (const char *name)
 Set the name of the TNamed.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification.
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 AttLine default constructor.
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 AttLine normal constructor.
 
virtual ~TAttLine ()
 AttLine destructor.
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine.
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 Compute distance from point px,py to a line.
 
virtual Color_t GetLineColor () const
 Return the line color.
 
virtual Style_t GetLineStyle () const
 Return the line style.
 
virtual Width_t GetLineWidth () const
 Return the line width.
 
virtual void Modify ()
 Change current line attributes if necessary.
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values.
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 Save line attributes as C++ statement(s) on output stream out.
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes.
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 AttFill default constructor.
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 AttFill normal constructor.
 
virtual ~TAttFill ()
 AttFill destructor.
 
void Copy (TAttFill &attfill) const
 Copy this fill attributes to a new TAttFill.
 
virtual Color_t GetFillColor () const
 Return the fill area color.
 
virtual Style_t GetFillStyle () const
 Return the fill area style.
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 Change current fill area attributes if necessary.
 
virtual void ResetAttFill (Option_t *option="")
 Reset this fill attributes to default values.
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 Save fill attributes as C++ statement(s) on output stream out.
 
virtual void SetFillAttributes ()
 Invoke the DialogCanvas Fill attributes.
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 Set a transparent fill color.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttText
 TAttText ()
 AttText default constructor.
 
 TAttText (Int_t align, Float_t angle, Color_t color, Style_t font, Float_t tsize)
 AttText normal constructor.
 
virtual ~TAttText ()
 AttText destructor.
 
void Copy (TAttText &atttext) const
 Copy this text attributes to a new TAttText.
 
virtual Short_t GetTextAlign () const
 Return the text alignment.
 
virtual Float_t GetTextAngle () const
 Return the text angle.
 
virtual Color_t GetTextColor () const
 Return the text color.
 
virtual Font_t GetTextFont () const
 Return the text font.
 
virtual Float_t GetTextSize () const
 Return the text size.
 
virtual Float_t GetTextSizePercent (Float_t size)
 Return the text in percent of the pad size.
 
virtual void Modify ()
 Change current text attributes if necessary.
 
virtual void ResetAttText (Option_t *toption="")
 Reset this text attributes to default values.
 
virtual void SaveTextAttributes (std::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)
 Save text attributes as C++ statement(s) on output stream out.
 
virtual void SetTextAngle (Float_t tangle=0)
 Set the text angle.
 
virtual void SetTextAttributes ()
 Invoke the DialogCanvas Text attributes.
 
virtual void SetTextColorAlpha (Color_t tcolor, Float_t talpha)
 Set a transparent marker color.
 
virtual void SetTextSizePixels (Int_t npixels)
 Set the text size in pixel.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 TAttMarker default constructor.
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 TAttMarker normal constructor.
 
virtual ~TAttMarker ()
 TAttMarker destructor.
 
void Copy (TAttMarker &attmarker) const
 Copy this marker attributes to a new TAttMarker.
 
virtual Color_t GetMarkerColor () const
 Return the marker color.
 
virtual Size_t GetMarkerSize () const
 Return the marker size.
 
virtual Style_t GetMarkerStyle () const
 Return the marker style.
 
virtual void Modify ()
 Change current marker attributes if necessary.
 
virtual void ResetAttMarker (Option_t *toption="")
 Reset this marker attributes to the default values.
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 Save line attributes as C++ statement(s) on output stream out.
 
virtual void SetMarkerAttributes ()
 Invoke the DialogCanvas Marker attributes.
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 Set a transparent marker color.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TGCocoa
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TVirtualX
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static TVirtualX *& Instance ()
 Returns gVirtualX global.
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 
- Static Public Member Functions inherited from TAttLine
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttFill
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttText
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TAttMarker
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Width_t GetMarkerLineWidth (Style_t style)
 Internal helper function that returns the line width of the given marker style (0 = filled marker)
 
static Style_t GetMarkerStyleBase (Style_t style)
 Internal helper function that returns the corresponding marker style with line width 1 for the given style.
 

Private Types

enum  EAlign {
  kNone , kTLeft , kTCenter , kTRight ,
  kMLeft , kMCenter , kMRight , kBLeft ,
  kBCenter , kBRight
}
 

Private Member Functions

 TGQuartz (const TGQuartz &rhs)
 
void AlignTTFString ()
 
void DrawFTGlyphIntoPixmap (void *pixmap, FT_Bitmap *source, ULong_t fore, ULong_t back, Int_t bx, Int_t by)
 
void * GetSelectedDrawableChecked (const char *calledFrom) const
 
Bool_t IsTTFStringVisible (Int_t x, Int_t y, UInt_t w, UInt_t h)
 
TGQuartzoperator= (const TGQuartz &rhs)
 
void RenderTTFString (Int_t x, Int_t y, ETextMode mode)
 
void SetAA ()
 

Private Attributes

FT_Vector fAlign
 
std::vector< TPointfConvertedPoints
 
bool fUseAA
 
bool fUseFAAA
 

Additional Inherited Members

- Public Types inherited from TVirtualX
enum  EBoxMode { kHollow , kFilled }
 
enum  EDrawMode { kCopy = 1 , kXor , kInvert }
 
enum  ETextMode { kClear , kOpaque }
 
enum  ETextSetMode { kCheck , kLoad }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 
- Static Public Attributes inherited from TGCocoa
static Atom_t fgDeleteWindowAtom = 0
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 
- Protected Member Functions inherited from TGCocoa
void * GetCurrentContext ()
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 
- Protected Attributes inherited from TGCocoa
Int_t fCocoaDraw
 
bool fDirectDraw
 
EDrawMode fDrawMode
 
std::unique_ptr< ROOT::MacOSX::Details::CocoaPrivatefPimpl
 
Drawable_t fSelectedDrawable
 
- Protected Attributes inherited from TVirtualX
EDrawMode fDrawMode
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 Line color.
 
Style_t fLineStyle
 Line style.
 
Width_t fLineWidth
 Line width.
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 Fill area color.
 
Style_t fFillStyle
 Fill area style.
 
- Protected Attributes inherited from TAttText
Short_t fTextAlign
 Text alignment.
 
Float_t fTextAngle
 Text angle.
 
Color_t fTextColor
 Text color.
 
Font_t fTextFont
 Text font.
 
Float_t fTextSize
 Text size.
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 Marker color.
 
Size_t fMarkerSize
 Marker size.
 
Style_t fMarkerStyle
 Marker style.
 

#include <TGQuartz.h>

Inheritance diagram for TGQuartz:
[legend]

Member Enumeration Documentation

◆ EAlign

enum TGQuartz::EAlign
private
Enumerator
kNone 
kTLeft 
kTCenter 
kTRight 
kMLeft 
kMCenter 
kMRight 
kBLeft 
kBCenter 
kBRight 

Definition at line 30 of file TGQuartz.h.

Constructor & Destructor Documentation

◆ TGQuartz() [1/3]

TGQuartz::TGQuartz ( )

Definition at line 78 of file TGQuartz.mm.

◆ TGQuartz() [2/3]

TGQuartz::TGQuartz ( const char *  name,
const char *  title 
)

Definition at line 99 of file TGQuartz.mm.

◆ TGQuartz() [3/3]

TGQuartz::TGQuartz ( const TGQuartz rhs)
private

Member Function Documentation

◆ AlignTTFString()

void TGQuartz::AlignTTFString ( )
private

Definition at line 744 of file TGQuartz.mm.

◆ Class()

static TClass * TGQuartz::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TGQuartz::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TGQuartz::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 108 of file TGQuartz.h.

◆ DeclFileName()

static const char * TGQuartz::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 108 of file TGQuartz.h.

◆ DrawBox()

void TGQuartz::DrawBox ( Int_t  x1,
Int_t  y1,
Int_t  x2,
Int_t  y2,
EBoxMode  mode 
)
virtual

Draws a box between [x1,y1] and [x2,y2] according to the "mode".

Parameters
[in]x1,y1left down corner
[in]x2,y2right up corner
[in]modedrawing mode:
  • mode = 0 hollow (kHollow)
  • mode = 1 solid (kSolid)

Reimplemented from TVirtualX.

Definition at line 119 of file TGQuartz.mm.

◆ DrawCellArray()

void TGQuartz::DrawCellArray ( Int_t  x1,
Int_t  y1,
Int_t  x2,
Int_t  y2,
Int_t  nx,
Int_t  ny,
Int_t ic 
)
virtual

Draws a cell array.

The drawing is done with the pixel precision if (x2-x1)/nx (or y) is not a exact pixel number the position of the top right corner may be wrong.

Parameters
[in]x1,y1left down corner
[in]x2,y2right up corner
[in]nx,nyarray size
[in]icarray

Reimplemented from TVirtualX.

Definition at line 244 of file TGQuartz.mm.

◆ DrawFillArea()

void TGQuartz::DrawFillArea ( Int_t  n,
TPoint xy 
)
virtual

Fills area described by the polygon.

Parameters
[in]nnumber of points
[in]xylist of points. xy(2,n)

Reimplemented from TVirtualX.

Definition at line 186 of file TGQuartz.mm.

◆ DrawFTGlyphIntoPixmap()

void TGQuartz::DrawFTGlyphIntoPixmap ( void *  pixmap,
FT_Bitmap *  source,
ULong_t  fore,
ULong_t  back,
Int_t  bx,
Int_t  by 
)
private

Definition at line 916 of file TGQuartz.mm.

◆ DrawLine() [1/2]

void TGCocoa::DrawLine ( Drawable_t  id,
GContext_t  gc,
Int_t  x1,
Int_t  y1,
Int_t  x2,
Int_t  y2 
)
virtual

Uses the components of the specified GC to draw a line between the specified set of points (x1, y1) and (x2, y2).

GC components in use: function, plane-mask, line-width, line-style, cap-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.

GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list. (see also the GCValues_t structure)

Reimplemented from TGCocoa.

Definition at line 172 of file TGCocoa.mm.

◆ DrawLine() [2/2]

void TGQuartz::DrawLine ( Int_t  x1,
Int_t  y1,
Int_t  x2,
Int_t  y2 
)
virtual

Draws a line.

Parameters
[in]x1,y1begin of line
[in]x2,y2end of line

Reimplemented from TVirtualX.

Definition at line 252 of file TGQuartz.mm.

◆ DrawPolyLine()

void TGQuartz::DrawPolyLine ( Int_t  n,
TPoint xy 
)
virtual

Draws a line through all points in the list.

Parameters
[in]nnumber of points
[in]xylist of points

Reimplemented from TVirtualX.

Definition at line 300 of file TGQuartz.mm.

◆ DrawPolyMarker()

void TGQuartz::DrawPolyMarker ( Int_t  n,
TPoint xy 
)
virtual

Draws "n" markers with the current attributes at position [x,y].

Parameters
[in]nnumber of markers to draw
[in]xyan array of x,y marker coordinates

Reimplemented from TVirtualX.

Definition at line 343 of file TGQuartz.mm.

◆ DrawText() [1/2]

void TGQuartz::DrawText ( Int_t  x,
Int_t  y,
Float_t  angle,
Float_t  mgn,
const char *  text,
ETextMode  mode 
)
virtual

Draws a text string using current font.

Parameters
[in]x,ytext position
[in]angletext angle
[in]mgnmagnification factor
[in]texttext string
[in]modedrawing mode:
  • mode = 0 the background is not drawn (kClear)
  • mode = 1 the background is drawn (kOpaque)

Reimplemented from TVirtualX.

Definition at line 399 of file TGQuartz.mm.

◆ DrawText() [2/2]

void TGQuartz::DrawText ( Int_t  x,
Int_t  y,
Float_t  angle,
Float_t  mgn,
const wchar_t *  text,
ETextMode  mode 
)
virtual

Draws a text string using current font.

Parameters
[in]x,ytext position
[in]angletext angle
[in]mgnmagnification factor
[in]texttext string
[in]modedrawing mode:
  • mode = 0 the background is not drawn (kClear)
  • mode = 1 the background is drawn (kOpaque)

Reimplemented from TVirtualX.

Definition at line 450 of file TGQuartz.mm.

◆ GetFontAscent() [1/2]

Int_t TGQuartz::GetFontAscent ( ) const
virtual

Returns the ascent of the current font (in pixels).

The ascent of a font is the distance from the baseline to the highest position characters extend to

Reimplemented from TVirtualX.

Definition at line 509 of file TGQuartz.mm.

◆ GetFontAscent() [2/2]

Int_t TGQuartz::GetFontAscent ( const char *  mess) const
virtual

Default version is noop, but in principle what ROOT understands as ascent is text related.

Reimplemented from TVirtualX.

Definition at line 521 of file TGQuartz.mm.

◆ GetFontDescent() [1/2]

Int_t TGQuartz::GetFontDescent ( ) const
virtual

Returns the descent of the current font (in pixels.

The descent is the distance from the base line to the lowest point characters extend to.

Reimplemented from TVirtualX.

Definition at line 550 of file TGQuartz.mm.

◆ GetFontDescent() [2/2]

Int_t TGQuartz::GetFontDescent ( const char *  mess) const
virtual

Default version is noop, but in principle what ROOT understands as descent requires a certain text.

Reimplemented from TVirtualX.

Definition at line 562 of file TGQuartz.mm.

◆ GetSelectedDrawableChecked()

void * TGQuartz::GetSelectedDrawableChecked ( const char *  calledFrom) const
private

Definition at line 1064 of file TGQuartz.mm.

◆ GetTextExtent()

void TGQuartz::GetTextExtent ( UInt_t w,
UInt_t h,
char *  mess 
)
virtual

Returns the size of the specified character string "mess".

Parameters
[in]wthe text width
[in]hthe text height
[in]messthe string

Reimplemented from TVirtualX.

Definition at line 478 of file TGQuartz.mm.

◆ GetTextMagnitude()

Float_t TGQuartz::GetTextMagnitude ( )
virtual

Returns the current font magnification factor.

Reimplemented from TVirtualX.

Definition at line 592 of file TGQuartz.mm.

◆ IsA()

virtual TClass * TGQuartz::IsA ( ) const
inlinevirtual
Returns
TClass describing current object

Reimplemented from TGCocoa.

Definition at line 108 of file TGQuartz.h.

◆ IsTTFStringVisible()

Bool_t TGQuartz::IsTTFStringVisible ( Int_t  x,
Int_t  y,
UInt_t  w,
UInt_t  h 
)
private

Definition at line 782 of file TGQuartz.mm.

◆ operator=()

TGQuartz & TGQuartz::operator= ( const TGQuartz rhs)
private

◆ RenderTTFString()

void TGQuartz::RenderTTFString ( Int_t  x,
Int_t  y,
ETextMode  mode 
)
private

Definition at line 812 of file TGQuartz.mm.

◆ SetAA()

void TGQuartz::SetAA ( )
private

Definition at line 1039 of file TGQuartz.mm.

◆ SetFillColor()

void TGQuartz::SetFillColor ( Color_t  fcolor)
virtual

Set the fill area color.

Reimplemented from TAttFill.

Definition at line 624 of file TGQuartz.mm.

◆ SetFillStyle()

void TGQuartz::SetFillStyle ( Style_t  fstyle)
virtual

Set the fill area style.

Reimplemented from TAttFill.

Definition at line 633 of file TGQuartz.mm.

◆ SetLineColor()

void TGQuartz::SetLineColor ( Color_t  lcolor)
virtual

Set the line color.

Reimplemented from TAttLine.

Definition at line 599 of file TGQuartz.mm.

◆ SetLineStyle()

void TGQuartz::SetLineStyle ( Style_t  lstyle)
virtual

Set the line style.

Reimplemented from TAttLine.

Definition at line 607 of file TGQuartz.mm.

◆ SetLineWidth()

void TGQuartz::SetLineWidth ( Width_t  lwidth)
virtual

Set the line width.

Reimplemented from TAttLine.

Definition at line 615 of file TGQuartz.mm.

◆ SetMarkerColor()

void TGQuartz::SetMarkerColor ( Color_t  mcolor)
virtual

Set the marker color.

Reimplemented from TAttMarker.

Definition at line 641 of file TGQuartz.mm.

◆ SetMarkerSize()

void TGQuartz::SetMarkerSize ( Float_t  msize)
virtual

Set the marker size.

Note that the marker styles number 1 6 and 7 (the dots), cannot be scaled. They are meant to be very fast to draw and are always drawn with the same number of pixels; therefore this method does not apply on them.

Reimplemented from TAttMarker.

Definition at line 649 of file TGQuartz.mm.

◆ SetMarkerStyle()

void TGQuartz::SetMarkerStyle ( Style_t  mstyle)
virtual

Set the marker style.

Reimplemented from TAttMarker.

Definition at line 659 of file TGQuartz.mm.

◆ SetOpacity()

void TGQuartz::SetOpacity ( Int_t  percent)
virtual

Sets opacity of the current 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).

Reimplemented from TVirtualX.

Definition at line 732 of file TGQuartz.mm.

◆ SetTextAlign()

void TGQuartz::SetTextAlign ( Short_t  align = 11)
virtual

Set the text alignment.

Reimplemented from TAttText.

Definition at line 668 of file TGQuartz.mm.

◆ SetTextColor()

void TGQuartz::SetTextColor ( Color_t  tcolor)
virtual

Set the text color.

Reimplemented from TAttText.

Definition at line 679 of file TGQuartz.mm.

◆ SetTextFont() [1/2]

Int_t TGQuartz::SetTextFont ( char *  fontname,
ETextSetMode  mode 
)
virtual

Sets text font to specified name "fontname".This function returns 0 if the specified font is found, 1 if it is not.

Parameters
[in]fontnamefont name
[in]modeloading flag
  • mode = 0 search if the font exist (kCheck)
  • mode = 1 search the font and load it if it exists (kLoad)

Reimplemented from TVirtualX.

Definition at line 703 of file TGQuartz.mm.

◆ SetTextFont() [2/2]

void TGQuartz::SetTextFont ( Font_t  tfont)
virtual

Set the text font.

Reimplemented from TAttText.

Definition at line 688 of file TGQuartz.mm.

◆ SetTextSize()

void TGQuartz::SetTextSize ( Float_t  tsize)
virtual

Set the text size.

Reimplemented from TAttText.

Definition at line 716 of file TGQuartz.mm.

◆ Streamer()

virtual void TGQuartz::Streamer ( TBuffer R__b)
virtual

Stream an object of class TObject.

Reimplemented from TGCocoa.

◆ StreamerNVirtual()

void TGQuartz::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 108 of file TGQuartz.h.

Member Data Documentation

◆ fAlign

FT_Vector TGQuartz::fAlign
private

Definition at line 33 of file TGQuartz.h.

◆ fConvertedPoints

std::vector<TPoint> TGQuartz::fConvertedPoints
private

Definition at line 85 of file TGQuartz.h.

◆ fUseAA

bool TGQuartz::fUseAA
private

Definition at line 93 of file TGQuartz.h.

◆ fUseFAAA

bool TGQuartz::fUseFAAA
private

Definition at line 94 of file TGQuartz.h.

  • graf2d/cocoa/inc/TGQuartz.h
  • graf2d/cocoa/src/TGQuartz.mm