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 27 of file TGQuartz.h.

Public Types

enum  { kSingleKey = (1ULL << (0)) , kOverwrite = (1ULL << (1)) , kWriteDelete = (1ULL << (2)) }
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
enum  EBoxMode { kHollow , kFilled }
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << (3)) }
enum  EDrawMode { kCopy = 1 , kXor , kInvert }
enum  EStatusBits {
  kCanDelete = (1ULL << (0)) , kMustCleanup = (1ULL << (3)) , kIsReferenced = (1ULL << (4)) , kHasUUID = (1ULL << (5)) ,
  kCannotPick = (1ULL << (6)) , kNoContextMenu = (1ULL << (8)) , kInvalidObject = (1ULL << (13))
}
enum  ETextMode { kClear , kOpaque }
enum  ETextSetMode { kCheck , kLoad }

Public Member Functions

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

Static Public Member Functions

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 Width_t GetMarkerLineWidth (Style_t style)
static Style_t GetMarkerStyleBase (Style_t style)
static Bool_t GetObjectStat ()
 Get status of object stat flag.
static TVirtualX *& Instance ()
 Returns gVirtualX global.
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 Attributes

static Atom_t fgDeleteWindowAtom = 0

Protected Types

enum  { kOnlyPrepStep = (1ULL << (3)) }

Protected Member Functions

virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
void * GetCurrentContext ()
void MakeZombie ()
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
 Save object name and title into the output stream "out".

Static Protected Member Functions

static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
 Save object constructor in the output stream "out".
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
 Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
 Save array in the output stream "out" as vector.

Protected Attributes

Int_t fCocoaDraw
bool fDirectDraw
EDrawMode fDrawMode
Color_t fFillColor
 Fill area color.
Style_t fFillStyle
 Fill area style.
Color_t fLineColor
 Line color.
Style_t fLineStyle
 Line style.
Width_t fLineWidth
 Line width.
Color_t fMarkerColor
 Marker color.
Size_t fMarkerSize
 Marker size.
Style_t fMarkerStyle
 Marker style.
TString fName
std::unique_ptr< ROOT::MacOSX::Details::CocoaPrivatefPimpl
 !
Drawable_t fSelectedDrawable
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.
TString fTitle

Private Types

typedef std::map< Atom_t, Window_t >::iterator selection_iterator

Private Member Functions

 TGQuartz (const TGQuartz &rhs)
void DrawFTGlyph (void *pixmap, void *source, ULong_t fore, ULong_t back, Int_t bx, Int_t by)
Atom_t FindAtom (const std::string &atomName, bool addIfNotFound)
TAttFillGetAttFill (WinContext_t wctxt)
TAttLineGetAttLine (WinContext_t wctxt)
TAttMarkerGetAttMarker (WinContext_t wctxt)
TAttTextGetAttText (WinContext_t wctxt)
void * GetPixmapDrawable (void *drawable0, const char *calledFrom) const
bool MakeProcessForeground ()
TGQuartzoperator= (const TGQuartz &rhs)
void SetAA ()
void SetApplicationIcon ()

Static Private Member Functions

static void AddToTObjectTable (TObject *)
 Private helper function which will dispatch to TObjectTable::AddObj.

Private Attributes

std::vector< std::string > fAtomToName
UInt_t fBits
 bit field status word
std::vector< TPointfConvertedPoints
ROOT::MacOSX::X11::Rectangle fDisplayRect
bool fDisplayShapeChanged
bool fForegroundProcess
std::map< std::string, Atom_tfNameToAtom
std::map< Atom_t, Window_tfSelectionOwners
bool fSetApp
UInt_t fUniqueID
 object unique identifier
bool fUseAA
bool fUseFAAA
std::vector< GCValues_tfX11Contexts

Static Private Attributes

static Longptr_t fgDtorOnly = 0
 object for which to call dtor only (i.e. no delete)
static Bool_t fgObjectStat = kTRUE
 if true keep track of objects in TObjectTable

#include <TGQuartz.h>

Inheritance diagram for TGQuartz:
TGCocoa TVirtualX TNamed TAttLine TAttFill TAttText TAttMarker TObject

Member Typedef Documentation

◆ selection_iterator

typedef std::map<Atom_t,Window_t>::iterator TGCocoa::selection_iterator
privateinherited

Definition at line 469 of file TGCocoa.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
kOnlyPrepStep 

Used to request that the class specific implementation of TObject::Write just prepare the objects to be ready to be written but do not actually write them into the TBuffer.

This is just for example by TBufferMerger to request that the TTree inside the file calls TTree::FlushBaskets (outside of the merging lock) and TBufferMerger will later ask for the write (inside the merging lock). To take advantage of this feature the class needs to overload TObject::Write and use this enum value accordingly. (See TTree::Write and TObject::Write) Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge)

Definition at line 106 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kSingleKey 

write collection with single key

kOverwrite 

overwrite existing object with same name

kWriteDelete 

write object, then delete previous key with same name

Definition at line 99 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kIsOnHeap 

object is on heap

kNotDeleted 

object has not been deleted

kZombie 

object ctor failed

kInconsistent 

class overload Hash but does call RecursiveRemove in destructor

kBitMask 

Definition at line 89 of file TObject.h.

◆ EBoxMode

enum TVirtualX::EBoxMode
inherited
Enumerator
kHollow 
kFilled 

Definition at line 50 of file TVirtualX.h.

◆ EDeprecatedStatusBits

Enumerator
kObjInCanvas 

for backward compatibility only, use kMustCleanup

Definition at line 84 of file TObject.h.

◆ EDrawMode

enum TVirtualX::EDrawMode
inherited
Enumerator
kCopy 
kXor 
kInvert 

Definition at line 49 of file TVirtualX.h.

◆ EStatusBits

enum TObject::EStatusBits
inherited
Enumerator
kCanDelete 

if object in a list can be deleted

kMustCleanup 

if object destructor must call RecursiveRemove()

kIsReferenced 

if object is referenced by a TRef or TRefArray

kHasUUID 

if object has a TUUID (its fUniqueID=UUIDNumber)

kCannotPick 

if object in a pad cannot be picked

kNoContextMenu 

if object does not want context menu

kInvalidObject 

if object ctor succeeded but object should not be used

Definition at line 70 of file TObject.h.

◆ ETextMode

enum TVirtualX::ETextMode
inherited
Enumerator
kClear 
kOpaque 

Definition at line 51 of file TVirtualX.h.

◆ ETextSetMode

enum TVirtualX::ETextSetMode
inherited
Enumerator
kCheck 
kLoad 

Definition at line 52 of file TVirtualX.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 90 of file TGQuartz.mm.

◆ TGQuartz() [3/3]

TGQuartz::TGQuartz ( const TGQuartz & rhs)
private

Member Function Documentation

◆ AbstractMethod()

void TObject::AbstractMethod ( const char * method) const
inherited

Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.

In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.

Warning
This interface is a legacy function that is no longer recommended to be used by new development code.
Note
The name "AbstractMethod" does not imply that it's an abstract method in the strict C++ sense.

Definition at line 1149 of file TObject.cxx.

◆ AddPixmap()

Int_t TGCocoa::AddPixmap ( ULong_t pixid,
UInt_t w,
UInt_t h )
overridevirtualinherited

Registers a pixmap created by TGLManager as a ROOT pixmap.

Parameters
[in]pixidpixmap identifier
[in]w,hthe width and height, which define the pixmap size

Reimplemented from TVirtualX.

Definition at line 2610 of file TGCocoa.mm.

◆ AddToTObjectTable()

void TObject::AddToTObjectTable ( TObject * op)
staticprivateinherited

Private helper function which will dispatch to TObjectTable::AddObj.

Included here to avoid circular dependency between header files.

Definition at line 195 of file TObject.cxx.

◆ AddWindow()

Int_t TGCocoa::AddWindow ( ULong_t qwid,
UInt_t w,
UInt_t h )
overridevirtualinherited

Registers a window created by Qt as a ROOT window.

Parameters
[in]qwidwindow identifier
[in]w,hthe width and height, which define the window size

Reimplemented from TVirtualX.

Definition at line 900 of file TGCocoa.mm.

◆ AllocColor()

Bool_t TGCocoa::AllocColor ( Colormap_t cmap,
ColorStruct_t & color )
overridevirtualinherited

Allocates a read-only colormap entry corresponding to the closest RGB value supported by the hardware.

If no cell could be allocated it returns kFALSE, otherwise kTRUE.

The pixel value is set to default. Let system think we could allocate color.

Parameters
[in]cmapthe colormap
[in]colorspecifies and returns the values actually used in the cmap

Reimplemented from TVirtualX.

Definition at line 2978 of file TGCocoa.mm.

◆ AppendPad()

void TObject::AppendPad ( Option_t * option = "")
virtualinherited

Append graphics object to current pad.

In case no current pad is set yet, create a default canvas with the name "c1".

Definition at line 204 of file TObject.cxx.

◆ BeginModalSessionFor()

void TVirtualX::BeginModalSessionFor ( Window_t window)
virtualinherited

Start a modal session for a dialog window.

Definition at line 2699 of file TVirtualX.cxx.

◆ Bell()

void TGCocoa::Bell ( Int_t percent)
overridevirtualinherited

Sets the sound bell. Percent is loudness from -100% to 100%.

Reimplemented from TVirtualX.

Definition at line 4332 of file TGCocoa.mm.

◆ Browse()

◆ ChangeActivePointerGrab()

void TGCocoa::ChangeActivePointerGrab ( Window_t ,
UInt_t ,
Cursor_t  )
overridevirtualinherited

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.

Reimplemented from TVirtualX.

Definition at line 2760 of file TGCocoa.mm.

◆ ChangeGC()

void TGCocoa::ChangeGC ( GContext_t gc,
GCValues_t * gval )
overridevirtualinherited

Changes the components specified by the mask in gval for the specified GC.

Parameters
[in]gcspecifies the GC to be changed
[in]gvalspecifies the mask and the values to be set

(see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 3073 of file TGCocoa.mm.

◆ ChangeProperties()

void TGCocoa::ChangeProperties ( Window_t id,
Atom_t property,
Atom_t type,
Int_t format,
UChar_t * data,
Int_t len )
overridevirtualinherited

Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window.

Reimplemented from TVirtualX.

Definition at line 3927 of file TGCocoa.mm.

◆ ChangeProperty()

void TGCocoa::ChangeProperty ( Window_t id,
Atom_t property,
Atom_t type,
UChar_t * data,
Int_t len )
overridevirtualinherited

Alters the property for the specified window and causes the X server to generate a PropertyNotify event on that window.

Parameters
[in]idthe window whose property you want to change
[in]propertyspecifies the property name
[in]typethe type of the property; the X server does not interpret the type but simply passes it back to an application that might ask about the window properties
[in]datathe property data
[in]lenthe length of the specified data format

Reimplemented from TVirtualX.

Definition at line 3884 of file TGCocoa.mm.

◆ ChangeWindowAttributes()

void TGCocoa::ChangeWindowAttributes ( Window_t id,
SetWindowAttributes_t * attr )
overridevirtualinherited

Changes the attributes of the specified window "id" according the values provided in "attr".

The mask data member of "attr" specifies which window attributes are defined in the attributes argument. This mask is the bitwise inclusive OR of the valid attribute mask bits; if it is zero, the attributes are ignored.

Reimplemented from TVirtualX.

Definition at line 1060 of file TGCocoa.mm.

◆ CheckedHash()

ULong_t TObject::CheckedHash ( )
inlineinherited

Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.

The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();

(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.

Definition at line 332 of file TObject.h.

◆ CheckEvent()

Bool_t TGCocoa::CheckEvent ( Window_t id,
EGEventType type,
Event_t & ev )
overridevirtualinherited

Check if there is for window "id" an event of type "type".

If there is it fills in the event structure and return true. If no such event return false.

Reimplemented from TVirtualX.

Definition at line 3615 of file TGCocoa.mm.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 123 of file TGQuartz.h.

◆ ClassName()

const char * TObject::ClassName ( ) const
virtualinherited

Returns name of class to which the object belongs.

Definition at line 227 of file TObject.cxx.

◆ Clear()

void TNamed::Clear ( Option_t * option = "")
overridevirtualinherited

Set name and title to empty strings ("").

Reimplemented from TObject.

Reimplemented in TPrincipal, TProcessID, TStreamerInfo, TTask, TVirtualFitter, and TVirtualStreamerInfo.

Definition at line 63 of file TNamed.cxx.

◆ ClearArea()

void TGCocoa::ClearArea ( Window_t id,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
overridevirtualinherited

Paints a rectangular area in the specified window "id" according to the specified dimensions with the window's background pixel or pixmap.

Parameters
[in]idspecifies the window
[in]x,ycoordinates, which are relative to the origin
[in]w,hthe width and height which define the rectangle dimensions

Reimplemented from TVirtualX.

Definition at line 2346 of file TGCocoa.mm.

◆ ClearAreaAux()

void TGCocoa::ClearAreaAux ( Window_t wid,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
inherited

Definition at line 2306 of file TGCocoa.mm.

◆ ClearWindow() [1/2]

void TGCocoa::ClearWindow ( )
overridevirtualinherited

Clears the entire area of the current window.

Reimplemented from TVirtualX.

Definition at line 769 of file TGCocoa.mm.

◆ ClearWindow() [2/2]

void TGCocoa::ClearWindow ( Window_t id)
overridevirtualinherited

Clears the entire area in the specified window and it is equivalent to ClearArea(id, 0, 0, 0, 0).

Reimplemented from TVirtualX.

Definition at line 2371 of file TGCocoa.mm.

◆ ClearWindowW()

void TGCocoa::ClearWindowW ( WinContext_t wctxt)
overridevirtualinherited

Clear specified window.

Reimplemented from TVirtualX.

Definition at line 716 of file TGCocoa.mm.

◆ Clone()

TObject * TNamed::Clone ( const char * newname = "") const
overridevirtualinherited

Make a clone of an object using the Streamer facility.

If newname is specified, this will be the name of the new object.

Reimplemented from TObject.

Reimplemented in TStreamerInfo, and TTreeIndex.

Definition at line 73 of file TNamed.cxx.

◆ CloseDisplay()

void TGCocoa::CloseDisplay ( )
overridevirtualinherited

Closes connection to display server and destroys all windows.

Reimplemented from TVirtualX.

Definition at line 523 of file TGCocoa.mm.

◆ ClosePixmap()

void TGCocoa::ClosePixmap ( )
overridevirtualinherited

Deletes current pixmap.

Reimplemented from TVirtualX.

Definition at line 2474 of file TGCocoa.mm.

◆ CloseWindow()

void TGCocoa::CloseWindow ( )
overridevirtualinherited

Deletes current window.

Reimplemented from TVirtualX.

Definition at line 894 of file TGCocoa.mm.

◆ CocoaDrawOFF()

void TGCocoa::CocoaDrawOFF ( )
inherited

Definition at line 4480 of file TGCocoa.mm.

◆ CocoaDrawON()

void TGCocoa::CocoaDrawON ( )
inherited

Definition at line 4474 of file TGCocoa.mm.

◆ Compare()

Int_t TNamed::Compare ( const TObject * obj) const
overridevirtualinherited

Compare two TNamed objects.

Returns 0 when equal, -1 when this is smaller and +1 when bigger (like strcmp).

Reimplemented from TObject.

Reimplemented in TStructNodeProperty.

Definition at line 84 of file TNamed.cxx.

◆ ConvertPrimarySelection()

void TGCocoa::ConvertPrimarySelection ( Window_t id,
Atom_t clipboard,
Time_t when )
overridevirtualinherited

Causes a SelectionRequest event to be sent to the current primary selection owner.

This event specifies the selection property (primary selection), the format into which to convert that data before storing it (target = XA_STRING), the property in which the owner will place the information (sel_property), the window that wants the information (id), and the time of the conversion request (when). The selection owner responds by sending a SelectionNotify event, which confirms the selected atom and type.

Reimplemented from TVirtualX.

Definition at line 3717 of file TGCocoa.mm.

◆ ConvertSelection()

void TGCocoa::ConvertSelection ( Window_t ,
Atom_t & ,
Atom_t & ,
Atom_t & ,
Time_t &  )
overridevirtualinherited

Requests that the specified selection be converted to the specified target type.

Reimplemented from TVirtualX.

Definition at line 3751 of file TGCocoa.mm.

◆ Copy() [1/5]

void TAttFill::Copy ( TAttFill & attfill) const
inherited

◆ Copy() [2/5]

void TAttLine::Copy ( TAttLine & attline) const
inherited

◆ Copy() [3/5]

void TAttMarker::Copy ( TAttMarker & attmarker) const
inherited

◆ Copy() [4/5]

void TAttText::Copy ( TAttText & atttext) const
inherited

◆ Copy() [5/5]

void TNamed::Copy ( TObject & named) const
overridevirtualinherited

Copy this to obj.

Reimplemented from TObject.

Reimplemented in TPieSlice, TProfile2D, TProfile3D, TProfile, TStyle, TSystemDirectory, TSystemFile, TText, and TXTRU.

Definition at line 93 of file TNamed.cxx.

◆ CopyArea()

void TGCocoa::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 )
overridevirtualinherited

Combines the specified rectangle of "src" with the specified rectangle of "dest" according to the "gc".

Parameters
[in]srcsource rectangle
[in]destdestination rectangle
[in]gcgraphics context
[in]src_x,src_yspecify the x and y coordinates, which are relative to the origin of the source rectangle and specify upper-left corner.
[in]width,heightthe width and height, which are the dimensions of both the source and destination rectangles
[in]dest_x,dest_yspecify the upper-left corner of the destination rectangle

GC components in use: function, plane-mask, subwindow-mode, graphics-exposure, clip-x-origin, clip-y-origin, and clip-mask. (see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 2192 of file TGCocoa.mm.

◆ CopyAreaAux()

void TGCocoa::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 )
inherited

Definition at line 2155 of file TGCocoa.mm.

◆ CopyGC()

void TGCocoa::CopyGC ( GContext_t org,
GContext_t dest,
Mask_t mask )
overridevirtualinherited

Copies the specified components from the source GC "org" to the destination GC "dest".

The "mask" defines which component to copy and it is a data member of GCValues_t.

Reimplemented from TVirtualX.

Definition at line 3139 of file TGCocoa.mm.

◆ CopyPixmap()

void TGCocoa::CopyPixmap ( Int_t wid,
Int_t xpos,
Int_t ypos )
overridevirtualinherited

Copies the pixmap "wid" at the position [xpos,ypos] in the current window.

Reimplemented from TVirtualX.

Definition at line 2432 of file TGCocoa.mm.

◆ CopyPixmapW()

void TGCocoa::CopyPixmapW ( WinContext_t wctxt,
Int_t wid,
Int_t xpos,
Int_t ypos )
overridevirtualinherited

Copy pixmap to specified window.

Reimplemented from TVirtualX.

Definition at line 2441 of file TGCocoa.mm.

◆ CreateBitmap()

Pixmap_t TGCocoa::CreateBitmap ( Drawable_t id,
const char * bitmap,
UInt_t width,
UInt_t height )
overridevirtualinherited

Creates a bitmap (i.e.

pixmap with depth 1) from the bitmap data.

Parameters
[in]idspecifies which screen the pixmap is created on
[in]bitmapthe data in bitmap format
[in]width,heightdefine the dimensions of the pixmap

Reimplemented from TVirtualX.

Definition at line 2559 of file TGCocoa.mm.

◆ CreateCursor()

Cursor_t TGCocoa::CreateCursor ( ECursor cursor)
overridevirtualinherited

Creates the specified cursor.

(just return cursor from cursor pool). The cursor can be:

@ kRightSide
Definition GuiTypes.h:374
@ kBottomSide
Definition GuiTypes.h:374
@ kArrowRight
Definition GuiTypes.h:376
@ kTopLeft
Definition GuiTypes.h:373
@ kBottomRight
Definition GuiTypes.h:373
@ kArrowVer
Definition GuiTypes.h:375
@ kCaret
Definition GuiTypes.h:376
@ kTopSide
Definition GuiTypes.h:374
@ kLeftSide
Definition GuiTypes.h:374
@ kWatch
Definition GuiTypes.h:376
@ kMove
Definition GuiTypes.h:375
@ kTopRight
Definition GuiTypes.h:373
@ kBottomLeft
Definition GuiTypes.h:373
@ kHand
Definition GuiTypes.h:375
@ kCross
Definition GuiTypes.h:375
@ kRotate
Definition GuiTypes.h:375
@ kArrowHor
Definition GuiTypes.h:375
@ kPointer
Definition GuiTypes.h:376

Reimplemented from TVirtualX.

Definition at line 3168 of file TGCocoa.mm.

◆ CreateGC()

GContext_t TGCocoa::CreateGC ( Drawable_t id,
GCValues_t * gval )
overridevirtualinherited

Creates a graphics context using the provided GCValues_t *gval structure.

The mask data member of gval specifies which components in the GC are to be set using the information in the specified values structure. It returns a graphics context handle GContext_t that can be used with any destination drawable or O if the creation falls.

Reimplemented from TVirtualX.

Definition at line 3048 of file TGCocoa.mm.

◆ CreateImage()

Drawable_t TGCocoa::CreateImage ( UInt_t width,
UInt_t height )
overridevirtualinherited

Allocates the memory needed for an drawable.

Parameters
[in]widththe width of the image, in pixels
[in]heightthe height of the image, in pixels

Reimplemented from TVirtualX.

Definition at line 2640 of file TGCocoa.mm.

◆ CreateOpenGLContext() [1/2]

void TGCocoa::CreateOpenGLContext ( Int_t wid)
overridevirtualinherited

Creates OpenGL context for window "wid".

Reimplemented from TVirtualX.

Definition at line 3365 of file TGCocoa.mm.

◆ CreateOpenGLContext() [2/2]

Handle_t TGCocoa::CreateOpenGLContext ( Window_t windowID,
Handle_t sharedContext )
overridevirtualinherited

Creates OpenGL context for window "windowID".

Reimplemented from TVirtualX.

Definition at line 3346 of file TGCocoa.mm.

◆ CreateOpenGLWindow()

Window_t TGCocoa::CreateOpenGLWindow ( Window_t parentID,
UInt_t width,
UInt_t height,
const std::vector< std::pair< UInt_t, Int_t > > & format )
overridevirtualinherited

Create window with special pixel format. Noop everywhere except Cocoa.

Reimplemented from TVirtualX.

Definition at line 3267 of file TGCocoa.mm.

◆ CreatePictureFromData()

Bool_t TGCocoa::CreatePictureFromData ( Drawable_t id,
char ** data,
Pixmap_t & pict,
Pixmap_t & pict_mask,
PictureAttributes_t & attr )
overridevirtualinherited

Creates a picture pict from data in bitmap format.

The picture attributes "attr" are used for input and output. Returns kTRUE in case of success, kFALSE otherwise. If the mask "pict_mask" does not exist it is set to kNone.

Reimplemented from TVirtualX.

Definition at line 4285 of file TGCocoa.mm.

◆ CreatePictureFromFile()

Bool_t TGCocoa::CreatePictureFromFile ( Drawable_t id,
const char * filename,
Pixmap_t & pict,
Pixmap_t & pict_mask,
PictureAttributes_t & attr )
overridevirtualinherited

Creates a picture pict from data in file "filename".

The picture attributes "attr" are used for input and output. Returns kTRUE in case of success, kFALSE otherwise. If the mask "pict_mask" does not exist it is set to kNone.

Reimplemented from TVirtualX.

Definition at line 4270 of file TGCocoa.mm.

◆ CreatePixmap() [1/2]

Pixmap_t TGCocoa::CreatePixmap ( Drawable_t id,
const char * bitmap,
UInt_t width,
UInt_t height,
ULong_t forecolor,
ULong_t backcolor,
Int_t depth )
overridevirtualinherited

Creates a pixmap from bitmap data of the width, height, and depth you specified and returns a pixmap that identifies it.

The width and height arguments must be nonzero. The depth argument must be one of the depths supported by the screen of the specified drawable.

Parameters
[in]idspecifies which screen the pixmap is created on
[in]bitmapthe data in bitmap format
[in]width,heightdefine the dimensions of the pixmap
[in]forecolorthe foreground pixel values to use
[in]backcolorthe background pixel values to use
[in]depththe depth of the pixmap

Reimplemented from TVirtualX.

Definition at line 2495 of file TGCocoa.mm.

◆ CreatePixmap() [2/2]

Pixmap_t TGCocoa::CreatePixmap ( Drawable_t id,
UInt_t w,
UInt_t h )
overridevirtualinherited

Creates a pixmap of the specified width and height and returns a pixmap ID that identifies it.

Reimplemented from TVirtualX.

Definition at line 2488 of file TGCocoa.mm.

◆ CreatePixmapFromData()

Pixmap_t TGCocoa::CreatePixmapFromData ( unsigned char * bits,
UInt_t width,
UInt_t height )
overridevirtualinherited

create pixmap from RGB data.

RGB data is in format:

b1, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 ..

Pixels are numbered from left to right and from top to bottom. Note that data must be 32-bit aligned

Reimplemented from TVirtualX.

Definition at line 2528 of file TGCocoa.mm.

◆ CreateRegion()

Region_t TGCocoa::CreateRegion ( )
overridevirtualinherited

Creates a new empty region.

Reimplemented from TVirtualX.

Definition at line 4354 of file TGCocoa.mm.

◆ CreateWindow()

Window_t TGCocoa::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 )
overridevirtualinherited

Creates an unmapped subwindow for a specified parent window and returns the created window.

The created window is placed on top in the stacking order with respect to siblings. The coordinate system has the X axis horizontal and the Y axis vertical with the origin [0,0] at the upper-left corner. Each window and pixmap has its own coordinate system.

Parameters
[in]parentthe parent window
[in]x,ycoordinates, the top-left outside corner of the window's borders; relative to the inside of the parent window's borders
[in]w,hwidth and height of the created window; do not include the created window's borders
[in]borderthe border pixel value of the window
[in]depththe window's depth
[in]clssthe created window's class; can be InputOutput, InputOnly, or CopyFromParent
[in]visualthe visual type
[in]attrthe structure from which the values are to be taken.
[in]wtypethe window type

Reimplemented from TVirtualX.

Definition at line 916 of file TGCocoa.mm.

◆ DeclFileName()

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

Definition at line 123 of file TGQuartz.h.

◆ Delete()

void TObject::Delete ( Option_t * option = "")
virtualinherited

◆ DeleteFont()

void TGCocoa::DeleteFont ( FontStruct_t fs)
overridevirtualinherited

Explicitly deletes the font structure "fs" obtained via LoadQueryFont().

Reimplemented from TVirtualX.

Definition at line 2896 of file TGCocoa.mm.

◆ DeleteGC()

void TGCocoa::DeleteGC ( GContext_t gc)
overridevirtualinherited

Deletes the specified GC "gc".

Reimplemented from TVirtualX.

Definition at line 3160 of file TGCocoa.mm.

◆ DeleteImage()

void TGCocoa::DeleteImage ( Drawable_t img)
overridevirtualinherited

Deallocates the memory associated with the image img.

Reimplemented from TVirtualX.

Definition at line 2694 of file TGCocoa.mm.

◆ DeleteOpenGLContext()

void TGCocoa::DeleteOpenGLContext ( Int_t wid)
overridevirtualinherited

Deletes OpenGL context for window "wid".

Reimplemented from TVirtualX.

Definition at line 3480 of file TGCocoa.mm.

◆ DeletePictureData()

void TGCocoa::DeletePictureData ( void * data)
overridevirtualinherited

Delete picture data created by the function ReadPictureDataFromFile.

Reimplemented from TVirtualX.

Definition at line 4307 of file TGCocoa.mm.

◆ DeletePixmap()

void TGCocoa::DeletePixmap ( Pixmap_t pmap)
overridevirtualinherited

Explicitly deletes the pixmap resource "pmap".

Reimplemented from TVirtualX.

Definition at line 2602 of file TGCocoa.mm.

◆ DeletePixmapAux()

void TGCocoa::DeletePixmapAux ( Pixmap_t pixmapID)
inherited

Definition at line 2596 of file TGCocoa.mm.

◆ DeleteProperty()

void TGCocoa::DeleteProperty ( Window_t ,
Atom_t &  )
overridevirtualinherited

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.

Reimplemented from TVirtualX.

Definition at line 3962 of file TGCocoa.mm.

◆ DestroyRegion()

void TGCocoa::DestroyRegion ( Region_t reg)
overridevirtualinherited

Destroys the region "reg".

Reimplemented from TVirtualX.

Definition at line 4362 of file TGCocoa.mm.

◆ DestroySubwindows()

void TGCocoa::DestroySubwindows ( Window_t id)
overridevirtualinherited

The DestroySubwindows function destroys all inferior windows of the specified window, in bottom-to-top stacking order.

Reimplemented from TVirtualX.

Definition at line 1015 of file TGCocoa.mm.

◆ DestroyWindow()

void TGCocoa::DestroyWindow ( Window_t id)
overridevirtualinherited

Destroys the window "id" as well as all of its subwindows.

The window should never be referenced again. If the window specified by the "id" argument is mapped, it is unmapped automatically.

Reimplemented from TVirtualX.

Definition at line 957 of file TGCocoa.mm.

◆ DispatchClientMessage()

void TVirtualX::DispatchClientMessage ( UInt_t messageID)
virtualinherited

Force processing of event, sent by SendEvent before.

Definition at line 1841 of file TVirtualX.cxx.

◆ DisplayName()

const char * TGCocoa::DisplayName ( const char * )
overridevirtualinherited

Returns hostname on which the display is opened.

Reimplemented from TVirtualX.

Definition at line 509 of file TGCocoa.mm.

◆ DistancetoLine()

Int_t TAttLine::DistancetoLine ( Int_t px,
Int_t py,
Double_t xp1,
Double_t yp1,
Double_t xp2,
Double_t yp2 )
inherited

◆ DistancetoPrimitive()

◆ DoError()

void TObject::DoError ( int level,
const char * location,
const char * fmt,
va_list va ) const
protectedvirtualinherited

Interface to ErrorHandler (protected).

Reimplemented in TThread, and TTreeViewer.

Definition at line 1059 of file TObject.cxx.

◆ Draw()

◆ DrawBox()

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

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 174 of file TGQuartz.mm.

◆ DrawBoxW()

void TGQuartz::DrawBoxW ( WinContext_t wctxt,
Int_t x1,
Int_t y1,
Int_t x2,
Int_t y2,
EBoxMode mode )
overridevirtual

Draw box on specified window.

Reimplemented from TVirtualX.

Definition at line 102 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 )
overridevirtual

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 249 of file TGQuartz.mm.

◆ DrawClass()

void TObject::DrawClass ( ) const
virtualinherited

Draw class inheritance tree of the class to which this object belongs.

If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:

Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 308 of file TObject.cxx.

◆ DrawClone()

TObject * TObject::DrawClone ( Option_t * option = "") const
virtualinherited

Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).

If pad was not selected - gPad will be used.

Note
For histograms, use the more specialised TH1::DrawCopy().

Reimplemented in TAxis, TCanvas, TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 319 of file TObject.cxx.

◆ DrawFillArea()

void TGQuartz::DrawFillArea ( Int_t n,
TPoint * xy )
overridevirtual

Fills area described by the polygon.

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

Reimplemented from TVirtualX.

Definition at line 242 of file TGQuartz.mm.

◆ DrawFillAreaW()

void TGQuartz::DrawFillAreaW ( WinContext_t wctxt,
Int_t n,
TPoint * xy )
overridevirtual

Draw fill area on specified window.

Reimplemented from TVirtualX.

Definition at line 180 of file TGQuartz.mm.

◆ DrawFTGlyph()

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

Definition at line 1044 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 )
overridevirtual

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 179 of file TGCocoa.mm.

◆ DrawLine() [2/2]

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

Draws a line.

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

Reimplemented from TVirtualX.

Definition at line 300 of file TGQuartz.mm.

◆ DrawLineAux()

void TGCocoa::DrawLineAux ( Drawable_t wid,
const GCValues_t & gcVals,
Int_t x1,
Int_t y1,
Int_t x2,
Int_t y2 )
inherited

Definition at line 1751 of file TGCocoa.mm.

◆ DrawLinesSegments()

void TVirtualX::DrawLinesSegments ( Int_t n,
TPoint * xy )
virtualinherited

Draws N segments between provided points.

Parameters
[in]nnumber of segemtns
[in]xylist of points, size 2*n

Reimplemented in TGX11.

Definition at line 330 of file TVirtualX.cxx.

◆ DrawLinesSegmentsW()

void TGQuartz::DrawLinesSegmentsW ( WinContext_t wctxt,
Int_t n,
TPoint * xy )
overridevirtual

Draw line segments on specified window.

Reimplemented from TVirtualX.

Definition at line 368 of file TGQuartz.mm.

◆ DrawLineW()

void TGQuartz::DrawLineW ( WinContext_t wctxt,
Int_t x1,
Int_t y1,
Int_t x2,
Int_t y2 )
overridevirtual

Draw line on specified window.

Reimplemented from TVirtualX.

Definition at line 256 of file TGQuartz.mm.

◆ DrawPolyLine()

void TGQuartz::DrawPolyLine ( Int_t n,
TPoint * xy )
overridevirtual

Draws a line through all points in the list.

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

Reimplemented from TVirtualX.

Definition at line 354 of file TGQuartz.mm.

◆ DrawPolyLineW()

void TGQuartz::DrawPolyLineW ( WinContext_t wctxt,
Int_t n,
TPoint * xy )
overridevirtual

Draw poly line on specified window.

Reimplemented from TVirtualX.

Definition at line 313 of file TGQuartz.mm.

◆ DrawPolyMarker()

void TGQuartz::DrawPolyMarker ( Int_t n,
TPoint * xy )
overridevirtual

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 429 of file TGQuartz.mm.

◆ DrawPolyMarkerW()

void TGQuartz::DrawPolyMarkerW ( WinContext_t wctxt,
Int_t n,
TPoint * xy )
overridevirtual

Draw poly marker on specified window.

Reimplemented from TVirtualX.

Definition at line 375 of file TGQuartz.mm.

◆ DrawRectangle()

void TGCocoa::DrawRectangle ( Drawable_t id,
GContext_t gc,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
overridevirtualinherited

Draws rectangle outlines of [x,y] [x+w,y] [x+w,y+h] [x,y+h].

GC components in use: function, plane-mask, line-width, line-style, cap-style, join-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, 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 TVirtualX.

Definition at line 1908 of file TGCocoa.mm.

◆ DrawRectangleAux()

void TGCocoa::DrawRectangleAux ( Drawable_t wid,
const GCValues_t & gcVals,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
inherited

Definition at line 1874 of file TGCocoa.mm.

◆ DrawSegments()

void TGCocoa::DrawSegments ( Drawable_t id,
GContext_t gc,
Segment_t * seg,
Int_t nseg )
overridevirtualinherited

Draws multiple line segments.

Each line is specified by a pair of points.

Parameters
[in]idDrawable identifier
[in]gcgraphics context
[in]*segspecifies an array of segments
[in]nsegspecifies the number of segments in the array

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

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

Reimplemented from TVirtualX.

Definition at line 1839 of file TGCocoa.mm.

◆ DrawSegmentsAux()

void TGCocoa::DrawSegmentsAux ( Drawable_t wid,
const GCValues_t & gcVals,
const Segment_t * segments,
Int_t nSegments )
inherited

Definition at line 1828 of file TGCocoa.mm.

◆ DrawString()

void TGCocoa::DrawString ( Drawable_t id,
GContext_t gc,
Int_t x,
Int_t y,
const char * s,
Int_t len )
overridevirtualinherited

Each character image, as defined by the font in the GC, is treated as an additional mask for a fill operation on the drawable.

Parameters
[in]idthe drawable
[in]gcthe GC
[in]x,ycoordinates, which are relative to the origin of the specified drawable and define the origin of the first character
[in]sthe character string
[in]lenthe number of characters in the string argument

GC components in use: function, plane-mask, fill-style, font, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. (see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 2273 of file TGCocoa.mm.

◆ DrawStringAux()

void TGCocoa::DrawStringAux ( Drawable_t wid,
const GCValues_t & gc,
Int_t x,
Int_t y,
const char * s,
Int_t len )
inherited

Definition at line 2229 of file TGCocoa.mm.

◆ DrawText() [1/2]

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

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 504 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 )
overridevirtual

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 676 of file TGQuartz.mm.

◆ DrawTextW() [1/2]

void TGQuartz::DrawTextW ( WinContext_t wctxt,
Int_t x,
Int_t y,
Float_t angle,
Float_t mgn,
const char * text,
ETextMode mode )
overridevirtual

Draw text on specified window.

Reimplemented from TVirtualX.

Definition at line 457 of file TGQuartz.mm.

◆ DrawTextW() [2/2]

void TGQuartz::DrawTextW ( WinContext_t wctxt,
Int_t x,
Int_t y,
Float_t angle,
Float_t mgn,
const wchar_t * text,
ETextMode mode )
overridevirtual

Draw wtext on specified window.

Reimplemented from TVirtualX.

Definition at line 511 of file TGQuartz.mm.

◆ Dump()

void TObject::Dump ( ) const
virtualinherited

Dump contents of object on stdout.

Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed

The following output is the Dump of a TArrow object:

fAngle 0 Arrow opening angle (degrees)
fArrowSize 0.2 Arrow Size
fOption.*fData
fX1 0.1 X of 1st point
fY1 0.15 Y of 1st point
fX2 0.67 X of 2nd point
fY2 0.83 Y of 2nd point
fUniqueID 0 object unique identifier
fBits 50331648 bit field status word
fFillColor 19 fill area color
fFillStyle 1001 fill area style
#define X(type, name)
Style_t fFillStyle
Fill area style.
Definition TAttFill.h:25
Color_t fFillColor
Fill area color.
Definition TAttFill.h:24
Width_t fLineWidth
Line width.
Definition TAttLine.h:26
Style_t fLineStyle
Line style.
Definition TAttLine.h:25
Color_t fLineColor
Line color.
Definition TAttLine.h:24
UInt_t fUniqueID
object unique identifier
Definition TObject.h:46
UInt_t fBits
bit field status word
Definition TObject.h:47
TLine * line
TCanvas * style()
Definition style.C:1

Reimplemented in TClass, TCollection, TGFrame, TGPack, and TSystemFile.

Definition at line 367 of file TObject.cxx.

◆ EmptyRegion()

Bool_t TGCocoa::EmptyRegion ( Region_t reg)
overridevirtualinherited

Returns kTRUE if the region reg is empty.

Reimplemented from TVirtualX.

Definition at line 4430 of file TGCocoa.mm.

◆ EqualRegion()

Bool_t TGCocoa::EqualRegion ( Region_t rega,
Region_t regb )
overridevirtualinherited

Returns kTRUE if the two regions have the same offset, size, and shape.

Reimplemented from TVirtualX.

Definition at line 4446 of file TGCocoa.mm.

◆ Error()

void TObject::Error ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue error message.

Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.

Reimplemented in TFitResult.

Definition at line 1098 of file TObject.cxx.

◆ EventsPending()

Int_t TGCocoa::EventsPending ( )
overridevirtualinherited

Returns the number of events that have been received from the X server but have not been removed from the event queue.

Reimplemented from TVirtualX.

Definition at line 3608 of file TGCocoa.mm.

◆ ExecCommand()

UInt_t TGCocoa::ExecCommand ( TGWin32Command * code)
overridevirtualinherited

Executes the command "code" coming from the other threads (Win32).

Reimplemented from TVirtualX.

Definition at line 4091 of file TGCocoa.mm.

◆ Execute() [1/2]

void TObject::Execute ( const char * method,
const char * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with the given parameter string, e.g.

"3.14,1,\"text\"".

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 378 of file TObject.cxx.

◆ Execute() [2/2]

void TObject::Execute ( TMethod * method,
TObjArray * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with parameters stored in the TObjArray.

The TObjArray should contain an argv vector like:

argv[0] ... argv[n] = the list of TObjString parameters
Collectable string class.
Definition TObjString.h:28
const Int_t n
Definition legend1.C:16

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 398 of file TObject.cxx.

◆ ExecuteEvent()

◆ Fatal()

void TObject::Fatal ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue fatal error message.

Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.

Definition at line 1126 of file TObject.cxx.

◆ FillBuffer()

void TNamed::FillBuffer ( char *& buffer)
virtualinherited

Encode TNamed into output buffer.

Reimplemented in TDirectoryFile, TFile, TKey, TKeySQL, TKeyXML, TSQLFile, and TXMLFile.

Definition at line 103 of file TNamed.cxx.

◆ FillPolygon()

void TGCocoa::FillPolygon ( Window_t id,
GContext_t gc,
Point_t * points,
Int_t npnt )
overridevirtualinherited

Fills the region closed by the specified path.

The path is closed automatically if the last point in the list does not coincide with the first point.

Parameters
[in]idwindow identifier
[in]gcgraphics context
[in]*pointsspecifies an array of points
[in]npntspecifies the number of points in the array

GC components in use: function, plane-mask, fill-style, fill-rule, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. (see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 2110 of file TGCocoa.mm.

◆ FillPolygonAux()

void TGCocoa::FillPolygonAux ( Window_t wid,
const GCValues_t & gcVals,
const Point_t * polygon,
Int_t nPoints )
inherited

Definition at line 2038 of file TGCocoa.mm.

◆ FillRectangle()

void TGCocoa::FillRectangle ( Drawable_t id,
GContext_t gc,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
overridevirtualinherited

Fills the specified rectangle defined by [x,y] [x+w,y] [x+w,y+h] [x,y+h].

using the GC you specify.

GC components in use are: function, plane-mask, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, clip-mask. GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin. (see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 2008 of file TGCocoa.mm.

◆ FillRectangleAux()

void TGCocoa::FillRectangleAux ( Drawable_t wid,
const GCValues_t & gcVals,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
inherited

Definition at line 1943 of file TGCocoa.mm.

◆ FindAtom()

Atom_t TGCocoa::FindAtom ( const std::string & atomName,
bool addIfNotFound )
privateinherited

Definition at line 4563 of file TGCocoa.mm.

◆ FindObject() [1/2]

TObject * TObject::FindObject ( const char * name) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object by name inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 425 of file TObject.cxx.

◆ FindObject() [2/2]

TObject * TObject::FindObject ( const TObject * obj) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 435 of file TObject.cxx.

◆ FindRWindow()

Window_t TGCocoa::FindRWindow ( Window_t win,
Window_t dragwin,
Window_t input,
int x,
int y,
int maxd )
overridevirtualinherited

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.

Reimplemented from TVirtualX.

Definition at line 4060 of file TGCocoa.mm.

◆ FlushOpenGLBuffer()

void TGCocoa::FlushOpenGLBuffer ( Handle_t ctx)
overridevirtualinherited

Flushes OpenGL buffer.

Reimplemented from TVirtualX.

Definition at line 3465 of file TGCocoa.mm.

◆ FreeColor()

void TGCocoa::FreeColor ( Colormap_t cmap,
ULong_t pixel )
overridevirtualinherited

Frees color cell with specified pixel value.

Reimplemented from TVirtualX.

Definition at line 2997 of file TGCocoa.mm.

◆ FreeFontNames()

void TGCocoa::FreeFontNames ( char ** fontlist)
overridevirtualinherited

Frees the specified the array of strings "fontlist".

Reimplemented from TVirtualX.

Definition at line 2957 of file TGCocoa.mm.

◆ FreeFontStruct()

void TGCocoa::FreeFontStruct ( FontStruct_t fs)
overridevirtualinherited

Frees the font structure "fs".

The font itself will be freed when no other resource references it.

Reimplemented from TVirtualX.

Definition at line 2935 of file TGCocoa.mm.

◆ GetAttFill()

TAttFill & TGQuartz::GetAttFill ( WinContext_t wctxt)
private

Definition at line 1180 of file TGQuartz.mm.

◆ GetAttLine()

TAttLine & TGQuartz::GetAttLine ( WinContext_t wctxt)
private

Definition at line 1190 of file TGQuartz.mm.

◆ GetAttMarker()

TAttMarker & TGQuartz::GetAttMarker ( WinContext_t wctxt)
private

Definition at line 1200 of file TGQuartz.mm.

◆ GetAttText()

TAttText & TGQuartz::GetAttText ( WinContext_t wctxt)
private

Definition at line 1210 of file TGQuartz.mm.

◆ GetCharacterUp()

void TGCocoa::GetCharacterUp ( Float_t & chupx,
Float_t & chupy )
overridevirtualinherited

Returns character up vector.

Reimplemented from TVirtualX.

Definition at line 4105 of file TGCocoa.mm.

◆ GetColorBits()

unsigned char * TGCocoa::GetColorBits ( Drawable_t wid,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
overridevirtualinherited

Returns an array of pixels created from a part of drawable (defined by x, y, w, h) in format:

b1, g1, r1, 0, b2, g2, r2, 0 ... bn, gn, rn, 0 ..

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

Note that return array is 32-bit aligned

Reimplemented from TVirtualX.

Definition at line 2619 of file TGCocoa.mm.

◆ GetColormap()

Colormap_t TGCocoa::GetColormap ( ) const
overridevirtualinherited

Returns handle to colormap.

Might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. GL interface.

Reimplemented from TVirtualX.

Definition at line 3040 of file TGCocoa.mm.

◆ GetCommandBuffer()

ROOT::MacOSX::X11::CommandBuffer * TGCocoa::GetCommandBuffer ( ) const
inherited

Definition at line 4468 of file TGCocoa.mm.

◆ GetCurrentContext()

void * TGCocoa::GetCurrentContext ( )
protectedinherited

Definition at line 4493 of file TGCocoa.mm.

◆ GetCurrentOpenGLContext()

Handle_t TGCocoa::GetCurrentOpenGLContext ( )
overridevirtualinherited

Asks OpenGL subsystem about the current OpenGL context.

Reimplemented from TVirtualX.

Definition at line 3448 of file TGCocoa.mm.

◆ GetCurrentWindow()

Window_t TGCocoa::GetCurrentWindow ( ) const
overridevirtualinherited

pointer to the current internal window used in canvas graphics

Reimplemented from TVirtualX.

Definition at line 887 of file TGCocoa.mm.

◆ GetDefaultRootWindow()

Window_t TGCocoa::GetDefaultRootWindow ( ) const
overridevirtualinherited

Returns handle to the default root window created when calling XOpenDisplay().

Reimplemented from TVirtualX.

Definition at line 636 of file TGCocoa.mm.

◆ GetDepth()

Int_t TGCocoa::GetDepth ( ) const
overridevirtualinherited

Returns depth of screen (number of bit planes).

Equivalent to GetPlanes().

Reimplemented from TVirtualX.

Definition at line 560 of file TGCocoa.mm.

◆ GetDisplay()

Display_t TGCocoa::GetDisplay ( ) const
overridevirtualinherited

Returns handle to display (might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g.

GL interface).

Reimplemented from TVirtualX.

Definition at line 529 of file TGCocoa.mm.

◆ GetDisplayGeometry()

X11::Rectangle TGCocoa::GetDisplayGeometry ( ) const
inherited

Definition at line 604 of file TGCocoa.mm.

◆ GetDoubleBuffer()

Int_t TGCocoa::GetDoubleBuffer ( Int_t wid)
overridevirtualinherited

Queries the double buffer value for the window "wid".

Reimplemented from TVirtualX.

Definition at line 4098 of file TGCocoa.mm.

◆ GetDrawMode()

EDrawMode TVirtualX::GetDrawMode ( )
inlineinherited

Definition at line 152 of file TVirtualX.h.

◆ GetDrawModeW()

TVirtualX::EDrawMode TGCocoa::GetDrawModeW ( WinContext_t wctxt)
overridevirtualinherited

Returns window draw mode.

Reimplemented from TVirtualX.

Definition at line 708 of file TGCocoa.mm.

◆ GetDrawOption()

Option_t * TObject::GetDrawOption ( ) const
virtualinherited

Get option used by the graphics system to draw this object.

Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.

Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.

Definition at line 445 of file TObject.cxx.

◆ GetDtorOnly()

Longptr_t TObject::GetDtorOnly ( )
staticinherited

Return destructor only flag.

Definition at line 1196 of file TObject.cxx.

◆ GetEventTranslator()

ROOT::MacOSX::X11::EventTranslator * TGCocoa::GetEventTranslator ( ) const
inherited

Definition at line 4462 of file TGCocoa.mm.

◆ GetFillColor()

virtual Color_t TAttFill::GetFillColor ( ) const
inlinevirtualinherited

Return the fill area color.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 32 of file TAttFill.h.

◆ GetFillStyle()

virtual Style_t TAttFill::GetFillStyle ( ) const
inlinevirtualinherited

Return the fill area style.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 33 of file TAttFill.h.

◆ GetFontAscent() [1/2]

Int_t TGQuartz::GetFontAscent ( ) const
overridevirtual

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 743 of file TGQuartz.mm.

◆ GetFontAscent() [2/2]

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

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

Reimplemented from TVirtualX.

Definition at line 755 of file TGQuartz.mm.

◆ GetFontAscentDescent()

Bool_t TGQuartz::GetFontAscentDescent ( Font_t font,
Double_t size,
UInt_t & a,
UInt_t & d,
const char * mess )
overridevirtual

Returns ascent/descent for specified character string "mess" with font and size.

Reimplemented from TVirtualX.

Definition at line 815 of file TGQuartz.mm.

◆ GetFontDescent() [1/2]

Int_t TGQuartz::GetFontDescent ( ) const
overridevirtual

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 779 of file TGQuartz.mm.

◆ GetFontDescent() [2/2]

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

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

Reimplemented from TVirtualX.

Definition at line 791 of file TGQuartz.mm.

◆ GetFontHandle()

FontH_t TGCocoa::GetFontHandle ( FontStruct_t fs)
overridevirtualinherited

Returns the font handle of the specified font structure "fs".

Reimplemented from TVirtualX.

Definition at line 2890 of file TGCocoa.mm.

◆ GetFontProperties()

void TGCocoa::GetFontProperties ( FontStruct_t font,
Int_t & max_ascent,
Int_t & max_descent )
overridevirtualinherited

Returns the font properties.

Reimplemented from TVirtualX.

Definition at line 2917 of file TGCocoa.mm.

◆ GetFontStruct()

FontStruct_t TGCocoa::GetFontStruct ( FontH_t fh)
overridevirtualinherited

Retrieves the associated font structure of the font specified font handle "fh".

Free returned FontStruct_t using FreeFontStruct().

Reimplemented from TVirtualX.

Definition at line 2924 of file TGCocoa.mm.

◆ GetGCFont()

FontStruct_t TVirtualX::GetGCFont ( GContext_t gc)
virtualinherited

Return the font associated with the graphics context gc.

Definition at line 2055 of file TVirtualX.cxx.

◆ GetGCValues()

void TGCocoa::GetGCValues ( GContext_t gc,
GCValues_t & gval )
overridevirtualinherited

Returns the components specified by the mask in "gval" for the specified GC "gc" (see also the GCValues_t structure).

Reimplemented from TVirtualX.

Definition at line 3151 of file TGCocoa.mm.

◆ GetGeometry()

void TGCocoa::GetGeometry ( Int_t wid,
Int_t & x,
Int_t & y,
UInt_t & w,
UInt_t & h )
overridevirtualinherited

Returns position and size of window "wid".

Parameters
[in]widwindow identifier if wid < 0 the size of the display is returned
[in]x,yreturned window position
[in]w,hreturned window size

Reimplemented from TVirtualX.

Definition at line 779 of file TGCocoa.mm.

◆ GetIconName()

const char * TObject::GetIconName ( ) const
virtualinherited

Returns mime type name of object.

Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TASImage, TBranch, TBranchElement, TGeoVolume, TGMainFrame, TKey, TMethodBrowsable, TSystemFile, and TVirtualBranchBrowsable.

Definition at line 472 of file TObject.cxx.

◆ GetImageSize()

void TGCocoa::GetImageSize ( Drawable_t id,
UInt_t & width,
UInt_t & height )
overridevirtualinherited

Returns the width and height of the image id.

Reimplemented from TVirtualX.

Definition at line 2650 of file TGCocoa.mm.

◆ GetInputFocus()

Window_t TGCocoa::GetInputFocus ( )
overridevirtualinherited

Returns the window id of the window having the input focus.

Reimplemented from TVirtualX.

Definition at line 2829 of file TGCocoa.mm.

◆ GetLineColor()

virtual Color_t TAttLine::GetLineColor ( ) const
inlinevirtualinherited

Return the line color.

Reimplemented in TGraphMultiErrors, and TGWin32VirtualXProxy.

Definition at line 36 of file TAttLine.h.

◆ GetLineStyle()

virtual Style_t TAttLine::GetLineStyle ( ) const
inlinevirtualinherited

Return the line style.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 37 of file TAttLine.h.

◆ GetLineWidth()

virtual Width_t TAttLine::GetLineWidth ( ) const
inlinevirtualinherited

Return the line width.

Reimplemented in TGraphMultiErrors, TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 38 of file TAttLine.h.

◆ GetMarkerColor()

virtual Color_t TAttMarker::GetMarkerColor ( ) const
inlinevirtualinherited

Return the marker color.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 33 of file TAttMarker.h.

◆ GetMarkerLineWidth()

Width_t TAttMarker::GetMarkerLineWidth ( Style_t style)
staticinherited

◆ GetMarkerSize()

virtual Size_t TAttMarker::GetMarkerSize ( ) const
inlinevirtualinherited

Return the marker size.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 35 of file TAttMarker.h.

◆ GetMarkerStyle()

virtual Style_t TAttMarker::GetMarkerStyle ( ) const
inlinevirtualinherited

Return the marker style.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 34 of file TAttMarker.h.

◆ GetMarkerStyleBase()

Style_t TAttMarker::GetMarkerStyleBase ( Style_t style)
staticinherited

◆ GetName()

const char * TNamed::GetName ( ) const
inlineoverridevirtualinherited

Returns name of object.

This default method returns the class name. Classes that give objects a name should override this method.

Reimplemented from TObject.

Definition at line 49 of file TNamed.h.

◆ GetNativeEvent()

Handle_t TGCocoa::GetNativeEvent ( ) const
overridevirtualinherited

Returns the current native event handle.

Reimplemented from TVirtualX.

Definition at line 3635 of file TGCocoa.mm.

◆ GetObjectInfo()

char * TObject::GetObjectInfo ( Int_t px,
Int_t py ) const
virtualinherited

Returns string containing info about the object at position (px,py).

This method is typically overridden by classes of which the objects can report peculiarities for different positions. Returned string will be re-used (lock in MT environment).

Reimplemented in TASImage, TAxis3D, TColorWheel, TF1, TF2, TFileDrawMap, TGeoNode, TGeoTrack, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph, TH1, THistPainter, TNode, TPaletteAxis, TParallelCoordVar, and TVirtualHistPainter.

Definition at line 491 of file TObject.cxx.

◆ GetObjectStat()

Bool_t TObject::GetObjectStat ( )
staticinherited

Get status of object stat flag.

Definition at line 1181 of file TObject.cxx.

◆ GetOpenGLScalingFactor()

Double_t TGCocoa::GetOpenGLScalingFactor ( )
overridevirtualinherited

On a HiDPI resolution it can be > 1., this means glViewport should use scaled width and height.

Reimplemented from TVirtualX.

Definition at line 3258 of file TGCocoa.mm.

◆ GetOption()

virtual Option_t * TObject::GetOption ( ) const
inlinevirtualinherited

◆ GetParent()

Window_t TGCocoa::GetParent ( Window_t id) const
overridevirtualinherited

Returns the parent of the window "id".

Reimplemented from TVirtualX.

Definition at line 1558 of file TGCocoa.mm.

◆ GetPasteBuffer()

void TGCocoa::GetPasteBuffer ( Window_t id,
Atom_t atom,
TString & text,
Int_t & nchar,
Bool_t del )
overridevirtualinherited

Gets contents of the paste buffer "atom" into the string "text".

(nchar = number of characters) If "del" is true deletes the paste buffer afterwards.

Reimplemented from TVirtualX.

Definition at line 3833 of file TGCocoa.mm.

◆ GetPixel()

ULong_t TGCocoa::GetPixel ( Color_t cindex)
overridevirtualinherited

Returns pixel value associated to specified ROOT color number "cindex".

Reimplemented from TVirtualX.

Definition at line 3003 of file TGCocoa.mm.

◆ GetPixmapDrawable()

void * TGQuartz::GetPixmapDrawable ( void * drawable0,
const char * calledFrom ) const
private

Definition at line 1220 of file TGQuartz.mm.

◆ GetPlanes()

void TGCocoa::GetPlanes ( Int_t & nplanes)
overridevirtualinherited

Returns the maximum number of planes.

Reimplemented from TVirtualX.

Definition at line 3018 of file TGCocoa.mm.

◆ GetPrimarySelectionOwner()

Window_t TGCocoa::GetPrimarySelectionOwner ( )
overridevirtualinherited

Returns the window id of the current owner of the primary selection.

That is the window in which, for example some text is selected.

Reimplemented from TVirtualX.

Definition at line 3703 of file TGCocoa.mm.

◆ GetProperty()

Int_t TGCocoa::GetProperty ( Window_t ,
Atom_t ,
Long_t ,
Long_t ,
Bool_t ,
Atom_t ,
Atom_t * ,
Int_t * ,
ULong_t * ,
ULong_t * ,
unsigned char **  )
overridevirtualinherited

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.

Reimplemented from TVirtualX.

Definition at line 3786 of file TGCocoa.mm.

◆ GetRegionBox()

void TGCocoa::GetRegionBox ( Region_t reg,
Rectangle_t * rect )
overridevirtualinherited

Returns smallest enclosing rectangle.

Reimplemented from TVirtualX.

Definition at line 4454 of file TGCocoa.mm.

◆ GetRGB()

void TGCocoa::GetRGB ( Int_t index,
Float_t & r,
Float_t & g,
Float_t & b )
overridevirtualinherited

Returns RGB values for color "index".

Reimplemented from TVirtualX.

Definition at line 3025 of file TGCocoa.mm.

◆ GetScreen()

Int_t TGCocoa::GetScreen ( ) const
overridevirtualinherited

Returns screen number.

Might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. GL interface.

Reimplemented from TVirtualX.

Definition at line 543 of file TGCocoa.mm.

◆ GetSelectedContext()

WinContext_t TGCocoa::GetSelectedContext ( )
inherited

Definition at line 693 of file TGCocoa.mm.

◆ GetTextAlign()

virtual Short_t TAttText::GetTextAlign ( ) const
inlinevirtualinherited

Return the text alignment.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 35 of file TAttText.h.

◆ GetTextAngle()

virtual Float_t TAttText::GetTextAngle ( ) const
inlinevirtualinherited

Return the text angle.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 36 of file TAttText.h.

◆ GetTextColor()

virtual Color_t TAttText::GetTextColor ( ) const
inlinevirtualinherited

Return the text color.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 37 of file TAttText.h.

◆ GetTextExtent() [1/2]

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

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 683 of file TGQuartz.mm.

◆ GetTextExtent() [2/2]

void TVirtualX::GetTextExtent ( UInt_t & w,
UInt_t & h,
wchar_t * mess )
virtualinherited

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

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

Reimplemented in TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 649 of file TVirtualX.cxx.

◆ GetTextExtentA() [1/2]

Bool_t TGQuartz::GetTextExtentA ( Font_t font,
Double_t size,
UInt_t & w,
UInt_t & h,
const char * mess )
overridevirtual

Returns the size of the specified character string "mess" for font and size.

Reimplemented from TVirtualX.

Definition at line 710 of file TGQuartz.mm.

◆ GetTextExtentA() [2/2]

Bool_t TGQuartz::GetTextExtentA ( Font_t font,
Double_t size,
UInt_t & w,
UInt_t & h,
const wchar_t * mess )
overridevirtual

Returns the size of the specified character string "mess" for font and size.

Reimplemented from TVirtualX.

Definition at line 734 of file TGQuartz.mm.

◆ GetTextFont()

virtual Font_t TAttText::GetTextFont ( ) const
inlinevirtualinherited

Return the text font.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 38 of file TAttText.h.

◆ GetTextMagnitude()

Float_t TGQuartz::GetTextMagnitude ( )
overridevirtual

Returns the current font magnification factor.

Reimplemented from TVirtualX.

Definition at line 842 of file TGQuartz.mm.

◆ GetTextSize()

virtual Float_t TAttText::GetTextSize ( ) const
inlinevirtualinherited

Return the text size.

Reimplemented in TGWin32VirtualXProxy.

Definition at line 39 of file TAttText.h.

◆ GetTextSizePercent()

virtual Float_t TAttText::GetTextSizePercent ( Float_t size)
virtualinherited

Return the text in percent of the pad size.

◆ GetTextSizePixels()

virtual Float_t TAttText::GetTextSizePixels ( TVirtualPad & pad) const
virtualinherited

Return the text size in pixels for specified pad.

◆ GetTextSizeRelative()

virtual Float_t TAttText::GetTextSizeRelative ( TVirtualPad & pad) const
virtualinherited

Return the text size in relative units.

◆ GetTitle()

const char * TNamed::GetTitle ( ) const
inlineoverridevirtualinherited

Returns title of object.

This default method returns the class title (i.e. description). Classes that give objects a title should override this method.

Reimplemented from TObject.

Definition at line 50 of file TNamed.h.

◆ GetUniqueID()

UInt_t TObject::GetUniqueID ( ) const
virtualinherited

Return the unique object id.

Definition at line 480 of file TObject.cxx.

◆ GetVisual()

Visual_t TGCocoa::GetVisual ( ) const
overridevirtualinherited

Returns handle to visual.

Might be useful in some cases where direct X11 manipulation outside of TVirtualX is needed, e.g. GL interface.

Reimplemented from TVirtualX.

Definition at line 536 of file TGCocoa.mm.

◆ GetWindowAttributes()

void TGCocoa::GetWindowAttributes ( Window_t id,
WindowAttributes_t & attr )
overridevirtualinherited

The WindowAttributes_t structure is set to default.

Reimplemented from TVirtualX.

Definition at line 1046 of file TGCocoa.mm.

◆ GetWindowContext()

WinContext_t TGCocoa::GetWindowContext ( Int_t wid)
overridevirtualinherited

Get window drawing context Should remain valid until window exists.

Reimplemented from TVirtualX.

Definition at line 684 of file TGCocoa.mm.

◆ GetWindowID()

Window_t TGCocoa::GetWindowID ( Int_t wid)
overridevirtualinherited

Returns the X11 window identifier.

Parameters
[in]widworkstation identifier (input)

Reimplemented from TVirtualX.

Definition at line 668 of file TGCocoa.mm.

◆ GetWindowSize()

void TGCocoa::GetWindowSize ( Drawable_t id,
Int_t & x,
Int_t & y,
UInt_t & w,
UInt_t & h )
overridevirtualinherited

Returns the location and the size of window "id".

Parameters
[in]iddrawable identifier
[in]x,ycoordinates of the upper-left outer corner relative to the parent window's origin
[in]w,hthe inside size of the window, not including the border

Reimplemented from TVirtualX.

Definition at line 1464 of file TGCocoa.mm.

◆ GrabButton()

void TGCocoa::GrabButton ( Window_t id,
EMouseButton button,
UInt_t modifier,
UInt_t evmask,
Window_t confine,
Cursor_t cursor,
Bool_t grab = kTRUE )
overridevirtualinherited

Establishes a passive grab on a certain mouse button.

That is, when a certain mouse button is hit while certain modifier's (Shift, Control, Meta, Alt) are active then the mouse will be grabbed for window id. When grab is false, ungrab the mouse button for this button and modifier.

Reimplemented from TVirtualX.

Definition at line 2705 of file TGCocoa.mm.

◆ GrabKey()

void TGCocoa::GrabKey ( Window_t id,
Int_t keycode,
UInt_t modifier,
Bool_t grab = kTRUE )
overridevirtualinherited

Establishes a passive grab on the keyboard.

In the future, the keyboard is actively grabbed, the last-keyboard-grab time is set to the time at which the key was pressed (as transmitted in the KeyPress event), and the KeyPress event is reported if all of the following conditions are true:

  • the keyboard is not grabbed and the specified key (which can itself be a modifier key) is logically pressed when the specified modifier keys are logically down, and no other modifier keys are logically down;
  • either the grab window "id" is an ancestor of (or is) the focus window, or "id" is a descendant of the focus window and contains the pointer;
  • a passive grab on the same key combination does not exist on any ancestor of grab_window
Parameters
[in]idwindow id
[in]keycodespecifies the KeyCode or AnyKey
[in]modifierspecifies the set of keymasks or AnyModifier; the mask is the bitwise inclusive OR of the valid keymask bits
[in]graba switch between grab/ungrab key grab = kTRUE grab the key and modifier grab = kFALSE ungrab the key and modifier

Reimplemented from TVirtualX.

Definition at line 2776 of file TGCocoa.mm.

◆ GrabPointer()

void TGCocoa::GrabPointer ( Window_t id,
UInt_t evmask,
Window_t confine,
Cursor_t cursor,
Bool_t grab = kTRUE,
Bool_t owner_events = kTRUE )
overridevirtualinherited

Establishes an active pointer grab.

While an active pointer grab is in effect, further pointer events are only reported to the grabbing client window.

Reimplemented from TVirtualX.

Definition at line 2739 of file TGCocoa.mm.

◆ HandleTimer()

Bool_t TObject::HandleTimer ( TTimer * timer)
virtualinherited

Execute action in response of a timer timing out.

This method must be overridden if an object has to react to timers.

Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.

Definition at line 516 of file TObject.cxx.

◆ Hash()

ULong_t TNamed::Hash ( ) const
inlineoverridevirtualinherited

Return hash value for this object.

Note: If this routine is overloaded in a derived class, this derived class should also add

void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:406

Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like

Error in <ROOT::Internal::TCheckHashRecursiveRemoveConsistency::CheckRecursiveRemove>: The class SomeName overrides
TObject::Hash but does not call TROOT::RecursiveRemove in its destructor.
ULong_t Hash() const override
Return hash value for this object.
Definition TNamed.h:51
Mother of all ROOT objects.
Definition TObject.h:42
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition TObject.cxx:1098
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Definition TROOT.cxx:2651

Reimplemented from TObject.

Definition at line 51 of file TNamed.h.

◆ HasInconsistentHash()

Bool_t TObject::HasInconsistentHash ( ) const
inlineinherited

Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.

missing call to RecursiveRemove in destructor).

Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)

Definition at line 366 of file TObject.h.

◆ HasTTFonts()

Bool_t TGCocoa::HasTTFonts ( ) const
overridevirtualinherited

Returns True when TrueType fonts are used.

Reimplemented from TVirtualX.

Definition at line 2902 of file TGCocoa.mm.

◆ IconifyWindow()

void TGCocoa::IconifyWindow ( Window_t id)
overridevirtualinherited

Iconifies the window "id".

Reimplemented from TVirtualX.

Definition at line 1362 of file TGCocoa.mm.

◆ Info()

void TObject::Info ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue info message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1072 of file TObject.cxx.

◆ InheritsFrom() [1/2]

Bool_t TObject::InheritsFrom ( const char * classname) const
virtualinherited

Returns kTRUE if object inherits from class "classname".

Reimplemented in TClass.

Definition at line 549 of file TObject.cxx.

◆ InheritsFrom() [2/2]

Bool_t TObject::InheritsFrom ( const TClass * cl) const
virtualinherited

Returns kTRUE if object inherits from TClass cl.

Reimplemented in TClass.

Definition at line 557 of file TObject.cxx.

◆ Init()

Bool_t TGCocoa::Init ( void * display)
overridevirtualinherited

Initializes the X system.

Returns kFALSE in case of failure. It is implementation dependent.

Reimplemented from TVirtualX.

Definition at line 490 of file TGCocoa.mm.

◆ InitWindow()

Int_t TGCocoa::InitWindow ( ULong_t window)
overridevirtualinherited

Creates a new window and return window number.

Returns -1 if window initialization fails.

Reimplemented from TVirtualX.

Definition at line 643 of file TGCocoa.mm.

◆ Inspect()

void TObject::Inspect ( ) const
virtualinherited

Dump contents of this object in a graphics canvas.

Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.

The following picture is the Inspect of a histogram object:

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.

Definition at line 570 of file TObject.cxx.

◆ Instance()

TVirtualX *& TVirtualX::Instance ( )
staticinherited

Returns gVirtualX global.

Definition at line 57 of file TVirtualX.cxx.

◆ InternAtom()

Atom_t TGCocoa::InternAtom ( const char * atom_name,
Bool_t only_if_exist )
overridevirtualinherited

Returns the atom identifier associated with the specified "atom_name" string.

If "only_if_exists" is False, the atom is created if it does not exist. If the atom name is not in the Host Portable Character Encoding, the result is implementation dependent. Uppercase and lowercase matter; the strings "thing", "Thing", and "thinG" all designate different atoms.

Reimplemented from TVirtualX.

Definition at line 3645 of file TGCocoa.mm.

◆ IntersectRegion()

void TGCocoa::IntersectRegion ( Region_t rega,
Region_t regb,
Region_t result )
overridevirtualinherited

Computes the intersection of two regions.

Parameters
[in]rega,regbspecify the two regions with which you want to perform the computation
[in]resultreturns the result of the computation

Reimplemented from TVirtualX.

Definition at line 4402 of file TGCocoa.mm.

◆ InvertBit()

void TObject::InvertBit ( UInt_t f)
inlineinherited

Definition at line 206 of file TObject.h.

◆ IsA()

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

Reimplemented from TGCocoa.

Definition at line 123 of file TGQuartz.h.

◆ IsCmdThread()

Bool_t TGCocoa::IsCmdThread ( ) const
inlineoverridevirtualinherited

Reimplemented from TVirtualX.

Definition at line 436 of file TGCocoa.h.

◆ IsCocoaDraw()

bool TGCocoa::IsCocoaDraw ( ) const
inherited

Definition at line 4487 of file TGCocoa.mm.

◆ IsDestructed()

Bool_t TObject::IsDestructed ( ) const
inlineinherited

IsDestructed.

Note
This function must be non-virtual as it can be used on destructed (but not yet modified) memory. This is used for example in TClonesArray to record the element that have been destructed but not deleted and thus are ready for re-use (by operator new with placement).
Returns
true if this object's destructor has been run.

Definition at line 186 of file TObject.h.

◆ IsDNDAware()

Bool_t TGCocoa::IsDNDAware ( Window_t win,
Atom_t * typelist )
overridevirtualinherited

Checks if the Window is DND aware, and knows any of the DND formats passed in argument.

Reimplemented from TVirtualX.

Definition at line 4037 of file TGCocoa.mm.

◆ IsEqual()

Bool_t TObject::IsEqual ( const TObject * obj) const
virtualinherited

Default equal comparison (objects are equal if they have the same address in memory).

More complicated classes might want to override this function.

Reimplemented in TGObject, TObjString, TPair, and TQCommand.

Definition at line 589 of file TObject.cxx.

◆ IsFolder()

◆ IsOnHeap()

Bool_t TObject::IsOnHeap ( ) const
inlineinherited

Definition at line 160 of file TObject.h.

◆ IsSortable()

Bool_t TNamed::IsSortable ( ) const
inlineoverridevirtualinherited

Reimplemented from TObject.

Reimplemented in TStructNodeProperty.

Definition at line 52 of file TNamed.h.

◆ IsTransparent()

Bool_t TAttFill::IsTransparent ( ) const
inlinevirtualinherited

Reimplemented in TGWin32VirtualXProxy.

Definition at line 49 of file TAttFill.h.

◆ IsZombie()

Bool_t TObject::IsZombie ( ) const
inlineinherited

Definition at line 161 of file TObject.h.

◆ KeysymToKeycode()

Int_t TGCocoa::KeysymToKeycode ( UInt_t keysym)
overridevirtualinherited

Converts the "keysym" to the appropriate keycode.

For example, keysym is a letter and keycode is the matching keyboard key (which is dependent on the current keyboard mapping). If the specified "keysym" is not defined for any keycode, returns zero.

Reimplemented from TVirtualX.

Definition at line 2818 of file TGCocoa.mm.

◆ ListFonts()

char ** TGCocoa::ListFonts ( const char * fontname,
Int_t max,
Int_t & count )
overridevirtualinherited

Returns list of font names matching fontname regexp, like "-*-times-*".

The pattern string can contain any characters, but each asterisk (*) is a wildcard for any number of characters, and each question mark (?) is a wildcard for a single character. If the pattern string is not in the Host Portable Character Encoding, the result is implementation dependent. Use of uppercase or lowercase does not matter. Each returned string is null-terminated.

Parameters
[in]fontnamespecifies the null-terminated pattern string that can contain wildcard characters
[in]maxspecifies the maximum number of names to be returned
[in]countreturns the actual number of font names

Reimplemented from TVirtualX.

Definition at line 2943 of file TGCocoa.mm.

◆ LoadQueryFont()

FontStruct_t TGCocoa::LoadQueryFont ( const char * font_name)
overridevirtualinherited

Provides the most common way for accessing a font: opens (loads) the specified font and returns a pointer to the appropriate FontStruct_t structure.

If the font does not exist, it returns NULL.

Reimplemented from TVirtualX.

Definition at line 2870 of file TGCocoa.mm.

◆ LookupString()

void TGCocoa::LookupString ( Event_t * event,
char * buf,
Int_t buflen,
UInt_t & keysym )
overridevirtualinherited

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).

In "buf" a null terminated ASCII string is returned representing the string that is currently mapped to the key code.

Parameters
[in]eventspecifies the event structure to be used
[in]bufreturns the translated characters
[in]buflenthe length of the buffer
[in]keysymreturns the "keysym" computed from the event if this argument is not NULL

Reimplemented from TVirtualX.

Definition at line 2849 of file TGCocoa.mm.

◆ LowerWindow()

void TGCocoa::LowerWindow ( Window_t id)
overridevirtualinherited

Lowers the specified window "id" to the bottom of the stack so that it does not obscure any sibling windows.

Reimplemented from TVirtualX.

Definition at line 1285 of file TGCocoa.mm.

◆ ls()

void TNamed::ls ( Option_t * option = "") const
overridevirtualinherited

List TNamed name and title.

Reimplemented from TObject.

Reimplemented in ROOT::Experimental::XRooFit::xRooBrowser, TNode, TROOT, TStreamerBase, TStreamerElement, TStreamerInfo, TStreamerSTL, TTask, TText, and TVirtualStreamerInfo.

Definition at line 112 of file TNamed.cxx.

◆ MakeOpenGLContextCurrent()

Bool_t TGCocoa::MakeOpenGLContextCurrent ( Handle_t ctx,
Window_t windowID )
overridevirtualinherited

Makes context ctx current OpenGL context.

Reimplemented from TVirtualX.

Definition at line 3371 of file TGCocoa.mm.

◆ MakeProcessForeground()

bool TGCocoa::MakeProcessForeground ( )
privateinherited

Definition at line 4506 of file TGCocoa.mm.

◆ MakeZombie()

void TObject::MakeZombie ( )
inlineprotectedinherited

Definition at line 55 of file TObject.h.

◆ MapGCFont()

void TVirtualX::MapGCFont ( GContext_t ,
FontStruct_t  )
virtualinherited

Map the XftFont with the Graphics Context using it.

Definition at line 2716 of file TVirtualX.cxx.

◆ MapRaised()

void TGCocoa::MapRaised ( Window_t id)
overridevirtualinherited

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.

Reimplemented from TVirtualX.

Definition at line 1217 of file TGCocoa.mm.

◆ MapSubwindows()

void TGCocoa::MapSubwindows ( Window_t id)
overridevirtualinherited

Maps all subwindows for the specified window "id" in top-to-bottom stacking order.

Reimplemented from TVirtualX.

Definition at line 1203 of file TGCocoa.mm.

◆ MapWindow()

void TGCocoa::MapWindow ( Window_t id)
overridevirtualinherited

Maps the window "id" and all of its subwindows that have had map requests.

This function has no effect if the window is already mapped.

Reimplemented from TVirtualX.

Definition at line 1183 of file TGCocoa.mm.

◆ MayNotUse()

void TObject::MayNotUse ( const char * method) const
inherited

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).

Definition at line 1160 of file TObject.cxx.

◆ Modify() [1/4]

virtual void TAttFill::Modify ( )
virtualinherited

◆ Modify() [2/4]

virtual void TAttLine::Modify ( )
virtualinherited

◆ Modify() [3/4]

virtual void TAttMarker::Modify ( )
virtualinherited

◆ Modify() [4/4]

virtual void TAttText::Modify ( )
virtualinherited

◆ ModifyOn() [1/4]

virtual void TAttFill::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ ModifyOn() [2/4]

virtual void TAttLine::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ ModifyOn() [3/4]

virtual void TAttMarker::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ ModifyOn() [4/4]

virtual void TAttText::ModifyOn ( TVirtualPad & pad)
virtualinherited

◆ MoveResizeWindow()

void TGCocoa::MoveResizeWindow ( Window_t id,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
overridevirtualinherited

Changes the size and location of the specified window "id" without raising it.

Parameters
[in]idwindow identifier
[in]x,ycoordinates, which define the new position of the window relative to its parent.
[in]w,hthe width and height, which define the interior size of the window

Reimplemented from TVirtualX.

Definition at line 1320 of file TGCocoa.mm.

◆ MoveWindow() [1/2]

void TGCocoa::MoveWindow ( Int_t wid,
Int_t x,
Int_t y )
overridevirtualinherited

Moves the window "wid" to the specified x and y coordinates.

It does not change the window's size, raise the window, or change the mapping state of the window.

Parameters
[in]widwindow identifier
[in]x,ycoordinates, which define the new position of the window relative to its parent.

Reimplemented from TVirtualX.

Definition at line 821 of file TGCocoa.mm.

◆ MoveWindow() [2/2]

void TGCocoa::MoveWindow ( Window_t id,
Int_t x,
Int_t y )
overridevirtualinherited

Moves the specified window to the specified x and y coordinates.

It does not change the window's size, raise the window, or change the mapping state of the window.

Parameters
[in]idwindow identifier
[in]x,ycoordinates, which define the new position of the window relative to its parent.

Reimplemented from TVirtualX.

Definition at line 1302 of file TGCocoa.mm.

◆ NeedRedraw()

Bool_t TGCocoa::NeedRedraw ( ULong_t tgwindow,
Bool_t force )
overridevirtualinherited

Notify the low level GUI layer ROOT requires "tgwindow" to be updated.

Returns kTRUE if the notification was desirable and it was sent

At the moment only Qt4 layer needs that

One needs explicitly cast the first parameter to TGWindow to make it working in the implementation.

One needs to process the notification to confine all paint operations within "expose" / "paint" like low level event or equivalent

Reimplemented from TVirtualX.

Definition at line 4250 of file TGCocoa.mm.

◆ NextEvent()

void TGCocoa::NextEvent ( Event_t & event)
overridevirtualinherited

The "event" is set to default event.

This method however, should never be called.

Reimplemented from TVirtualX.

Definition at line 3599 of file TGCocoa.mm.

◆ Notify()

Bool_t TObject::Notify ( )
virtualinherited

This method must be overridden to handle object notification (the base implementation is no-op).

Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.

For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.

Reimplemented in h1analysis, h1analysisTreeReader, TARInterruptHandler, TASInputHandler, TASInterruptHandler, TASLogHandler, TASSigPipeHandler, TBlinkTimer, TBranchElement, TBranchRef, TBreakLineCom, TBrowserTimer, TCollection, TDelCharCom, TDelTextCom, TFileHandler, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TGLRedrawTimer, TGTextEditHist, TGuiBldDragManagerRepeatTimer, TIdleTimer, TInsCharCom, TInsTextCom, TInterruptHandler, TLeafObject, TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TPopupDelayTimer, TProcessEventTimer, TRefTable, TRepeatTimer, TSBRepeatTimer, TSelector, TSelectorDraw, TSelectorEntries, TSignalHandler, TSingleShotCleaner, TSocketHandler, TStdExceptionHandler, TSysEvtHandler, TTermInputHandler, TThreadTimer, TTimeOutTimer, TTimer, TTipDelayTimer, TTree, TTreeFormula, TTreeFormulaManager, TTreeReader, TViewTimer, and TViewUpdateTimer.

Definition at line 618 of file TObject.cxx.

◆ Obsolete()

void TObject::Obsolete ( const char * method,
const char * asOfVers,
const char * removedFromVers ) const
inherited

Use this method to declare a method obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 1169 of file TObject.cxx.

◆ OpenDisplay()

Int_t TGCocoa::OpenDisplay ( const char * dpyName)
overridevirtualinherited

Opens connection to display server (if such a thing exist on the current platform).

The encoding and interpretation of the display name.

On X11 this method returns on success the X display socket descriptor >0, 0 in case of batch mode, and <0 in case of failure (cannot connect to display dpyName).

Reimplemented from TVirtualX.

Definition at line 499 of file TGCocoa.mm.

◆ OpenPixmap()

Int_t TGCocoa::OpenPixmap ( UInt_t w,
UInt_t h )
overridevirtualinherited

Creates a pixmap of the width "w" and height "h" you specified.

Reimplemented from TVirtualX.

Definition at line 2385 of file TGCocoa.mm.

◆ operator delete() [1/3]

void TObject::operator delete ( void * ptr,
size_t size )
inherited

Operator delete for sized deallocation.

Definition at line 1234 of file TObject.cxx.

◆ operator delete() [2/3]

void TObject::operator delete ( void * ptr)
inherited

Operator delete.

Definition at line 1212 of file TObject.cxx.

◆ operator delete() [3/3]

void TObject::operator delete ( void * ptr,
void * vp )
inherited

Only called by placement new when throwing an exception.

Definition at line 1266 of file TObject.cxx.

◆ operator delete[]() [1/3]

void TObject::operator delete[] ( void * ptr,
size_t size )
inherited

Operator delete [] for sized deallocation.

Definition at line 1245 of file TObject.cxx.

◆ operator delete[]() [2/3]

void TObject::operator delete[] ( void * ptr)
inherited

Operator delete [].

Definition at line 1223 of file TObject.cxx.

◆ operator delete[]() [3/3]

void TObject::operator delete[] ( void * ptr,
void * vp )
inherited

Only called by placement new[] when throwing an exception.

Definition at line 1274 of file TObject.cxx.

◆ operator new() [1/2]

void * TObject::operator new ( size_t sz)
inlineinherited

Definition at line 189 of file TObject.h.

◆ operator new() [2/2]

void * TObject::operator new ( size_t sz,
void * vp )
inlineinherited

Definition at line 191 of file TObject.h.

◆ operator new[]() [1/2]

void * TObject::operator new[] ( size_t sz)
inlineinherited

Definition at line 190 of file TObject.h.

◆ operator new[]() [2/2]

void * TObject::operator new[] ( size_t sz,
void * vp )
inlineinherited

Definition at line 192 of file TObject.h.

◆ operator=()

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

◆ Paint()

void TObject::Paint ( Option_t * option = "")
virtualinherited

This method must be overridden if a class wants to paint itself.

The difference between Paint() and Draw() is that when a object draws itself it is added to the display list of the pad in which it is drawn (and automatically redrawn whenever the pad is redrawn). While paint just draws the object without adding it to the pad display list.

Reimplemented in ROOT::Experimental::RTreeMapPainter, ROOT::RGeoPainter, TAnnotation, TArrow, TASImage, TASPaletteEditor::LimitLine, TASPaletteEditor::PaintPalette, TAxis3D, TBits, TBox, TButton, TCanvas, TClassTree, TCollection, TColorWheel, TCrown, TDiamond, TDirectory, TEfficiency, TEllipse, TEveArrow, TEveCaloViz, TEveDigitSet, TEveGeoShape, TEveGeoTopNode, TEvePlot3D, TEvePointSet, TEveProjectionAxes, TEveScene, TEveShape, TEveStraightLineSet, TEveText, TEveTriangleSet, TExec, TF1, TF2, TF3, TFile, TFileDrawMap, TFrame, TGaxis, TGenerator, TGeoBoolNode, TGeoIntersection, TGeoNode, TGeoOverlap, TGeoPainter, TGeoPhysicalNode, TGeoShape, TGeoSubtraction, TGeoTrack, TGeoUnion, TGeoVGShape, TGeoVolume, TGL5DDataSet, TGLHistPainter, TGLParametricEquation, TGLTH3Composition, TGraph2D, TGraph2DPainter, TGraph, TGraphEdge, TGraphNode, TGraphPolargram, TGraphTime, TH1, THistPainter, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TNode, TNodeDiv, TPad, TPaletteAxis, TParallelCoord, TParallelCoordRange, TParallelCoordVar, TParticle, TPave, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TPrimary, TRatioPlot, TScatter2D, TScatter, TShape, TSpectrum2Painter, TSpider, TSpline, TSQLFile, TStyle, TText, TTreePerfStats, TVirtualGeoPainter, TVirtualGeoTrack, TVirtualHistPainter, TVirtualPad, TWbox, and TXMLFile.

Definition at line 631 of file TObject.cxx.

◆ ParseColor()

Bool_t TGCocoa::ParseColor ( Colormap_t cmap,
const char * cname,
ColorStruct_t & color )
overridevirtualinherited

Looks up the string name of a color "cname" with respect to the screen associated with the specified colormap.

It returns the exact color value. If the color name is not in the Host Portable Character Encoding, the result is implementation dependent.

Parameters
[in]cmapthe colormap
[in]cnamethe color name string; use of uppercase or lowercase does not matter
[in]colorreturns the exact color value for later use

The ColorStruct_t structure is set to default. Let system think we could parse color.

Reimplemented from TVirtualX.

Definition at line 2969 of file TGCocoa.mm.

◆ PointInRegion()

Bool_t TGCocoa::PointInRegion ( Int_t x,
Int_t y,
Region_t reg )
overridevirtualinherited

Returns kTRUE if the point [x, y] is contained in the region reg.

Reimplemented from TVirtualX.

Definition at line 4438 of file TGCocoa.mm.

◆ PolygonRegion()

Region_t TGCocoa::PolygonRegion ( Point_t * points,
Int_t np,
Bool_t winding )
overridevirtualinherited

Returns a region for the polygon defined by the points array.

Parameters
[in]pointsspecifies an array of points
[in]npspecifies the number of points in the polygon
[in]windingspecifies the winding-rule is set (kTRUE) or not(kFALSE)

Reimplemented from TVirtualX.

Definition at line 4379 of file TGCocoa.mm.

◆ Pop()

void TObject::Pop ( )
virtualinherited

Pop on object drawn in a pad to the top of the display list.

I.e. it will be drawn last and on top of all other primitives.

Reimplemented in TFrame, TPad, and TVirtualPad.

Definition at line 640 of file TObject.cxx.

◆ Print()

◆ PutImage()

void TGCocoa::PutImage ( 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 )
overridevirtualinherited

Combines an image with a rectangle of the specified drawable.

The section of the image defined by the x, y, width, and height arguments is drawn on the specified part of the drawable.

Parameters
[in]idthe drawable
[in]gcthe GC
[in]imgthe image you want combined with the rectangle
[in]dxthe offset in X from the left edge of the image
[in]dythe offset in Y from the top edge of the image
[in]x,ycoordinates, which are relative to the origin of the drawable and are the coordinates of the subimage
[in]w,hthe width and height of the subimage, which define the rectangle dimensions

GC components in use: function, plane-mask, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. GC mode-dependent components: foreground and background. (see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 2683 of file TGCocoa.mm.

◆ PutPixel()

void TGCocoa::PutPixel ( Drawable_t id,
Int_t x,
Int_t y,
ULong_t pixel )
overridevirtualinherited

Overwrites the pixel in the image with the specified pixel value.

The image must contain the x and y coordinates.

Parameters
[in]idspecifies the image
[in]x,ycoordinates
[in]pixelthe new pixel value

Reimplemented from TVirtualX.

Definition at line 2661 of file TGCocoa.mm.

◆ QueryColor()

void TGCocoa::QueryColor ( Colormap_t cmap,
ColorStruct_t & color )
overridevirtualinherited

Returns the current RGB value for the pixel in the "color" structure.

The color components are set to default.

Parameters
[in]cmapthe colormap
[in]colorspecifies and returns the RGB values for the pixel specified in the structure

Reimplemented from TVirtualX.

Definition at line 2988 of file TGCocoa.mm.

◆ QueryPointer() [1/2]

void TGCocoa::QueryPointer ( Int_t & ix,
Int_t & iy )
overridevirtualinherited

Returns the pointer position.

Reimplemented from TVirtualX.

Definition at line 3205 of file TGCocoa.mm.

◆ QueryPointer() [2/2]

void TGCocoa::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 )
overridevirtualinherited

Returns the root window the pointer is logically on and the pointer coordinates relative to the root window's origin.

Parameters
[in]idspecifies the window
[in]rootwthe root window that the pointer is in
[in]childwthe child window that the pointer is located in, if any
[in]root_x,root_ythe pointer coordinates relative to the root window's origin
[in]win_x,win_ythe pointer coordinates relative to the specified window "id"
[in]maskthe current state of the modifier keys and pointer buttons

Reimplemented from TVirtualX.

Definition at line 3216 of file TGCocoa.mm.

◆ RaiseWindow()

void TGCocoa::RaiseWindow ( Window_t id)
overridevirtualinherited

Raises the specified window to the top of the stack so that no sibling window obscures it.

Reimplemented from TVirtualX.

Definition at line 1268 of file TGCocoa.mm.

◆ Read()

Int_t TObject::Read ( const char * name)
virtualinherited

Read contents of object with specified name from the current directory.

First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().

Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.

Definition at line 673 of file TObject.cxx.

◆ ReadGIF()

Pixmap_t TGCocoa::ReadGIF ( Int_t x0,
Int_t y0,
const char * file,
Window_t id )
overridevirtualinherited

If id is NULL - loads the specified gif file at position [x0,y0] in the current window.

Otherwise creates pixmap from gif file

Reimplemented from TVirtualX.

Definition at line 4112 of file TGCocoa.mm.

◆ ReadPictureDataFromFile()

Bool_t TGCocoa::ReadPictureDataFromFile ( const char * filename,
char *** ret_data )
overridevirtualinherited

Reads picture data from file "filename" and store it in "ret_data".

Returns kTRUE in case of success, kFALSE otherwise.

Reimplemented from TVirtualX.

Definition at line 4298 of file TGCocoa.mm.

◆ ReconfigureDisplay()

void TGCocoa::ReconfigureDisplay ( )
inherited

Definition at line 598 of file TGCocoa.mm.

◆ RecursiveRemove()

◆ RemoveWindow()

void TGCocoa::RemoveWindow ( ULong_t qwid)
overridevirtualinherited

Removes the created by Qt window "qwid".

Reimplemented from TVirtualX.

Definition at line 910 of file TGCocoa.mm.

◆ ReparentChild()

void TGCocoa::ReparentChild ( Window_t wid,
Window_t pid,
Int_t x,
Int_t y )
inherited

Definition at line 1096 of file TGCocoa.mm.

◆ ReparentTopLevel()

void TGCocoa::ReparentTopLevel ( Window_t wid,
Window_t pid,
Int_t x,
Int_t y )
inherited

Definition at line 1143 of file TGCocoa.mm.

◆ ReparentWindow()

void TGCocoa::ReparentWindow ( Window_t id,
Window_t pid,
Int_t x,
Int_t y )
overridevirtualinherited

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.

The window is placed in the stacking order on top with respect to sibling windows.

Reimplemented from TVirtualX.

Definition at line 1165 of file TGCocoa.mm.

◆ RequestLocator()

Int_t TGCocoa::RequestLocator ( Int_t mode,
Int_t ctyp,
Int_t & x,
Int_t & y )
overridevirtualinherited

Requests Locator position.

Parameters
[in]x,ycursor position at moment of button press (output)
[in]ctypcursor type (input)
  • ctyp = 1 tracking cross
  • ctyp = 2 cross-hair
  • ctyp = 3 rubber circle
  • ctyp = 4 rubber band
  • ctyp = 5 rubber rectangle
[in]modeinput mode
  • mode = 0 request
  • mode = 1 sample
Returns
  • in request mode:
    • 1 = left is pressed
    • 2 = middle is pressed
    • 3 = right is pressed
  • in sample mode:
    • 11 = left is released
    • 12 = middle is released
    • 13 = right is released
    • -1 = nothing is pressed or released
    • -2 = leave the window
    • else = keycode (keyboard is pressed)

Reimplemented from TVirtualX.

Definition at line 4121 of file TGCocoa.mm.

◆ RequestString()

Int_t TGCocoa::RequestString ( Int_t x,
Int_t y,
char * text )
overridevirtualinherited

Requests string: text is displayed and can be edited with Emacs-like keybinding.

Returns termination code (0 for ESC, 1 for RETURN)

Parameters
[in]x,yposition where text is displayed
[in]textdisplayed text (as input), edited text (as output)

Reimplemented from TVirtualX.

Definition at line 4153 of file TGCocoa.mm.

◆ RescaleWindow()

void TGCocoa::RescaleWindow ( Int_t wid,
UInt_t w,
UInt_t h )
overridevirtualinherited

Rescales the window "wid".

Parameters
[in]widwindow identifier
[in]wthe width
[in]hthe height

Reimplemented from TVirtualX.

Definition at line 835 of file TGCocoa.mm.

◆ ResetAttFill()

virtual void TAttFill::ResetAttFill ( Option_t * option = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetAttLine()

virtual void TAttLine::ResetAttLine ( Option_t * option = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetAttMarker()

virtual void TAttMarker::ResetAttMarker ( Option_t * toption = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetAttText()

virtual void TAttText::ResetAttText ( Option_t * toption = "")
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ ResetBit()

void TObject::ResetBit ( UInt_t f)
inlineinherited

Definition at line 203 of file TObject.h.

◆ ResizePixmap()

Int_t TGCocoa::ResizePixmap ( Int_t wid,
UInt_t w,
UInt_t h )
overridevirtualinherited

Resizes the specified pixmap "wid".

Parameters
[in]widwindow identifier
[in]w,hthe width and height which define the pixmap dimensions

Reimplemented from TVirtualX.

Definition at line 2405 of file TGCocoa.mm.

◆ ResizeWindow() [1/2]

void TGCocoa::ResizeWindow ( Int_t wid)
overridevirtualinherited

Resizes the window "wid" if necessary.

Reimplemented from TVirtualX.

Definition at line 843 of file TGCocoa.mm.

◆ ResizeWindow() [2/2]

void TGCocoa::ResizeWindow ( Window_t id,
UInt_t w,
UInt_t h )
overridevirtualinherited

Changes the width and height of the specified window "id", not including its borders.

This function does not change the window's upper-left coordinate.

Parameters
[in]idwindow identifier
[in]w,hthe width and height, which are the interior dimensions of the window after the call completes.

Reimplemented from TVirtualX.

Definition at line 1340 of file TGCocoa.mm.

◆ SaveAs()

void TObject::SaveAs ( const char * filename = "",
Option_t * option = "" ) const
virtualinherited

Save this object in the file specified by filename.

  • if "filename" contains ".root" the object is saved in filename as root binary file.
  • if "filename" contains ".xml" the object is saved in filename as a xml ascii file.
  • if "filename" contains ".cc" the object is saved in filename as C code independent from ROOT. The code is generated via SavePrimitive(). Specific code should be implemented in each object to handle this option. Like in TF1::SavePrimitive().
  • otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.

    The function is available via the object context menu.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TClassTree, TFolder, TGeoVolume, TGObject, TGraph, TH1, TPad, TPaveClass, TSpline3, TSpline5, TSpline, TTreePerfStats, and TVirtualPad.

Definition at line 708 of file TObject.cxx.

◆ SaveFillAttributes()

virtual void TAttFill::SaveFillAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1001 )
virtualinherited

◆ SaveLineAttributes()

virtual void TAttLine::SaveLineAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1,
Int_t widdef = 1 )
virtualinherited

◆ SaveMarkerAttributes()

virtual void TAttMarker::SaveMarkerAttributes ( std::ostream & out,
const char * name,
Int_t coldef = 1,
Int_t stydef = 1,
Int_t sizdef = 1 )
virtualinherited

◆ SavePrimitive()

void TObject::SavePrimitive ( std::ostream & out,
Option_t * option = "" )
virtualinherited

Save a primitive as a C++ statement(s) on output stream "out".

Reimplemented in TAnnotation, TArc, TArrow, TASImage, TAxis3D, TBox, TButton, TCanvas, TChain, TCrown, TCurlyArc, TCurlyLine, TCutG, TDiamond, TEfficiency, TEllipse, TExec, TF12, TF1, TF2, TF3, TFrame, TGaxis, TGButton, TGButtonGroup, TGCanvas, TGCheckButton, TGColorSelect, TGColumnLayout, TGComboBox, TGCompositeFrame, TGContainer, TGDockableFrame, TGDoubleHSlider, TGDoubleVSlider, TGedMarkerSelect, TGedPatternSelect, TGeoArb8, TGeoBBox, TGeoBoolNode, TGeoCombiTrans, TGeoCompositeShape, TGeoCone, TGeoConeSeg, TGeoCtub, TGeoDecayChannel, TGeoElementRN, TGeoEltu, TGeoGtra, TGeoHalfSpace, TGeoHMatrix, TGeoHype, TGeoIdentity, TGeoIntersection, TGeoMaterial, TGeoMedium, TGeoMixture, TGeoPara, TGeoParaboloid, TGeoPatternCylPhi, TGeoPatternCylR, TGeoPatternParaX, TGeoPatternParaY, TGeoPatternParaZ, TGeoPatternSphPhi, TGeoPatternSphR, TGeoPatternSphTheta, TGeoPatternTrapZ, TGeoPatternX, TGeoPatternY, TGeoPatternZ, TGeoPcon, TGeoPgon, TGeoRotation, TGeoScaledShape, TGeoShapeAssembly, TGeoSphere, TGeoSubtraction, TGeoTessellated, TGeoTorus, TGeoTranslation, TGeoTrap, TGeoTrd1, TGeoTrd2, TGeoTube, TGeoTubeSeg, TGeoUnion, TGeoVolume, TGeoXtru, TGFileContainer, TGFont, TGFrame, TGFSComboBox, TGGC, TGGroupFrame, TGHButtonGroup, TGHorizontal3DLine, TGHorizontalFrame, TGHorizontalLayout, TGHProgressBar, TGHScrollBar, TGHSlider, TGHSplitter, TGHtml, TGIcon, TGLabel, TGLayoutHints, TGLineStyleComboBox, TGLineWidthComboBox, TGListBox, TGListDetailsLayout, TGListLayout, TGListTree, TGListView, TGLVContainer, TGMainFrame, TGMatrixLayout, TGMdiFrame, TGMdiMainFrame, TGMdiMenuBar, TGMenuBar, TGMenuTitle, TGNumberEntry, TGNumberEntryField, TGPictureButton, TGPopupMenu, TGProgressBar, TGRadioButton, TGraph2D, TGraph2DAsymmErrors, TGraph2DErrors, TGraph, TGraphAsymmErrors, TGraphBentErrors, TGraphEdge, TGraphErrors, TGraphMultiErrors, TGraphNode, TGraphPolar, TGraphPolargram, TGraphStruct, TGroupButton, TGRowLayout, TGShapedFrame, TGShutter, TGShutterItem, TGSplitFrame, TGStatusBar, TGTab, TGTabLayout, TGTableLayout, TGTableLayoutHints, TGTextButton, TGTextEdit, TGTextEntry, TGTextLBEntry, TGTextView, TGTileLayout, TGToolBar, TGTransientFrame, TGTripleHSlider, TGTripleVSlider, TGVButtonGroup, TGVertical3DLine, TGVerticalFrame, TGVerticalLayout, TGVFileSplitter, TGVProgressBar, TGVScrollBar, TGVSlider, TGVSplitter, TGXYLayout, TGXYLayoutHints, TH1, TH2Poly, THelix, THStack, TLatex, TLegend, TLine, TMacro, TMarker3DBox, TMarker, TMathText, TMultiGraph, TPad, TPaletteAxis, TParallelCoord, TParallelCoordVar, TPave, TPaveClass, TPaveLabel, TPaveStats, TPavesText, TPaveText, TPie, TPieSlice, TPolyLine3D, TPolyLine, TPolyMarker3D, TPolyMarker, TProfile2D, TProfile3D, TProfile, TRootContainer, TRootEmbeddedCanvas, TScatter2D, TScatter, TSlider, TSliderBox, TSpline3, TSpline5, TStyle, TText, TTreePerfStats, and TWbox.

Definition at line 858 of file TObject.cxx.

◆ SavePrimitiveConstructor()

void TObject::SavePrimitiveConstructor ( std::ostream & out,
TClass * cl,
const char * variable_name,
const char * constructor_agrs = "",
Bool_t empty_line = kTRUE )
staticprotectedinherited

Save object constructor in the output stream "out".

Can be used as first statement when implementing SavePrimitive() method for the object

Definition at line 777 of file TObject.cxx.

◆ SavePrimitiveDraw()

void TObject::SavePrimitiveDraw ( std::ostream & out,
const char * variable_name,
Option_t * option = nullptr )
staticprotectedinherited

Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.

Definition at line 845 of file TObject.cxx.

◆ SavePrimitiveNameTitle()

void TNamed::SavePrimitiveNameTitle ( std::ostream & out,
const char * variable_name )
protectedinherited

Save object name and title into the output stream "out".

Definition at line 135 of file TNamed.cxx.

◆ SavePrimitiveVector()

TString TObject::SavePrimitiveVector ( std::ostream & out,
const char * prefix,
Int_t len,
Double_t * arr,
Int_t flag = 0 )
staticprotectedinherited

Save array in the output stream "out" as vector.

Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()

Definition at line 796 of file TObject.cxx.

◆ SaveTextAttributes()

virtual void TAttText::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 )
virtualinherited

◆ ScreenWidthMM()

UInt_t TGCocoa::ScreenWidthMM ( ) const
overridevirtualinherited

Returns the width of the screen in millimeters.

Reimplemented from TVirtualX.

Definition at line 550 of file TGCocoa.mm.

◆ SelectInput()

void TGCocoa::SelectInput ( Window_t id,
UInt_t evmask )
overridevirtualinherited

Defines which input events the window is interested in.

By default events are propagated up the window stack. This mask can also be set at window creation time via the SetWindowAttributes_t::fEventMask attribute.

Reimplemented from TVirtualX.

Definition at line 1076 of file TGCocoa.mm.

◆ SelectPixmap()

void TGCocoa::SelectPixmap ( Int_t qpixid)
overridevirtualinherited

Selects the pixmap "qpixid".

Reimplemented from TVirtualX.

Definition at line 2423 of file TGCocoa.mm.

◆ SelectWindow()

void TGCocoa::SelectWindow ( Int_t wid)
overridevirtualinherited

Selects the window "wid" to which subsequent output is directed.

Reimplemented from TVirtualX.

Definition at line 677 of file TGCocoa.mm.

◆ SendEvent()

void TGCocoa::SendEvent ( Window_t id,
Event_t * ev )
overridevirtualinherited

Specifies the event "ev" is to be sent to the window "id".

This function requires you to pass an event mask.

Reimplemented from TVirtualX.

Definition at line 3584 of file TGCocoa.mm.

◆ SetAA()

void TGQuartz::SetAA ( )
private

Definition at line 1155 of file TGQuartz.mm.

◆ SetApplicationIcon()

void TGCocoa::SetApplicationIcon ( )
privateinherited

Definition at line 4581 of file TGCocoa.mm.

◆ SetAttFill()

void TGQuartz::SetAttFill ( WinContext_t wctxt,
const TAttFill & att )
overridevirtual

Set fill attributes for specified window.

Reimplemented from TVirtualX.

Definition at line 997 of file TGQuartz.mm.

◆ SetAttLine()

void TGQuartz::SetAttLine ( WinContext_t wctxt,
const TAttLine & att )
overridevirtual

Set line attributes for specified window.

Reimplemented from TVirtualX.

Definition at line 1007 of file TGQuartz.mm.

◆ SetAttMarker()

void TGQuartz::SetAttMarker ( WinContext_t wctxt,
const TAttMarker & att )
overridevirtual

Set marker attributes for specified window.

Reimplemented from TVirtualX.

Definition at line 1018 of file TGQuartz.mm.

◆ SetAttText()

void TGQuartz::SetAttText ( WinContext_t wctxt,
const TAttText & att )
overridevirtual

Set text attributes for specified window.

Reimplemented from TVirtualX.

Definition at line 1029 of file TGQuartz.mm.

◆ SetBit() [1/2]

void TObject::SetBit ( UInt_t f)
inlineinherited

Definition at line 202 of file TObject.h.

◆ SetBit() [2/2]

void TObject::SetBit ( UInt_t f,
Bool_t set )
inherited

Set or unset the user status bits as specified in f.

Definition at line 888 of file TObject.cxx.

◆ SetCharacterUp()

void TGCocoa::SetCharacterUp ( Float_t chupx,
Float_t chupy )
overridevirtualinherited

Sets character up vector.

Reimplemented from TVirtualX.

Definition at line 4164 of file TGCocoa.mm.

◆ SetClassHints()

void TGCocoa::SetClassHints ( Window_t id,
char * className,
char * resourceName )
overridevirtualinherited

Sets the windows class and resource name.

Reimplemented from TVirtualX.

Definition at line 1599 of file TGCocoa.mm.

◆ SetClipOFF()

void TGCocoa::SetClipOFF ( Int_t wid)
overridevirtualinherited

Turns off the clipping for the window "wid".

Reimplemented from TVirtualX.

Definition at line 4170 of file TGCocoa.mm.

◆ SetClipRectangles()

void TGCocoa::SetClipRectangles ( GContext_t gc,
Int_t x,
Int_t y,
Rectangle_t * recs,
Int_t n )
overridevirtualinherited

Sets clipping rectangles in graphics context.

[x,y] specify the origin of the rectangles. "recs" specifies an array of rectangles that define the clipping mask and "n" is the number of rectangles. (see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 4344 of file TGCocoa.mm.

◆ SetClipRegion()

void TGCocoa::SetClipRegion ( Int_t wid,
Int_t x,
Int_t y,
UInt_t w,
UInt_t h )
overridevirtualinherited

Sets clipping region for the window "wid".

Parameters
[in]widwindow identifier
[in]x,yorigin of clipping rectangle
[in]w,hthe clipping rectangle dimensions

Reimplemented from TVirtualX.

Definition at line 4176 of file TGCocoa.mm.

◆ SetCursor() [1/2]

void TGCocoa::SetCursor ( Int_t win,
ECursor cursor )
overridevirtualinherited

The cursor "cursor" will be used when the pointer is in the window "wid".

Reimplemented from TVirtualX.

Definition at line 3183 of file TGCocoa.mm.

◆ SetCursor() [2/2]

void TGCocoa::SetCursor ( Window_t id,
Cursor_t curid )
overridevirtualinherited

Sets the cursor "curid" to be used when the pointer is in the window "id".

Reimplemented from TVirtualX.

Definition at line 3194 of file TGCocoa.mm.

◆ SetDashes()

void TGCocoa::SetDashes ( GContext_t gc,
Int_t offset,
const char * dash_list,
Int_t n )
overridevirtualinherited

Sets the dash-offset and dash-list attributes for dashed line styles in the specified GC.

There must be at least one element in the specified dash_list. The initial and alternating elements (second, fourth, and so on) of the dash_list are the even dashes, and the others are the odd dashes. Each element in the "dash_list" array specifies the length (in pixels) of a segment of the pattern.

Parameters
[in]gcspecifies the GC (see GCValues_t structure)
[in]offsetthe phase of the pattern for the dashed line-style you want to set for the specified GC.
[in]dash_listthe dash-list for the dashed line-style you want to set for the specified GC
[in]nthe number of elements in dash_list (see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 4313 of file TGCocoa.mm.

◆ SetDNDAware()

void TGCocoa::SetDNDAware ( Window_t ,
Atom_t *  )
overridevirtualinherited

Add XdndAware property and the list of drag and drop types to the Window win.

Reimplemented from TVirtualX.

Definition at line 3986 of file TGCocoa.mm.

◆ SetDoubleBuffer()

void TGCocoa::SetDoubleBuffer ( Int_t wid,
Int_t mode )
overridevirtualinherited

Sets the double buffer on/off on the window "wid".

Parameters
[in]widwindow identifier.
  • 999 means all opened windows.
[in]modethe on/off switch
  • mode = 1 double buffer is on
  • mode = 0 double buffer is off

Reimplemented from TVirtualX.

Definition at line 3502 of file TGCocoa.mm.

◆ SetDoubleBufferOFF()

void TGCocoa::SetDoubleBufferOFF ( )
overridevirtualinherited

Turns double buffer mode off.

Reimplemented from TVirtualX.

Definition at line 3517 of file TGCocoa.mm.

◆ SetDoubleBufferON()

void TGCocoa::SetDoubleBufferON ( )
overridevirtualinherited

Turns double buffer mode on.

Reimplemented from TVirtualX.

Definition at line 3534 of file TGCocoa.mm.

◆ SetDrawMode()

void TGCocoa::SetDrawMode ( EDrawMode mode)
overridevirtualinherited

Sets the drawing mode.

Parameters
[in]modedrawing mode.
  • mode = 1 copy
  • mode = 2 xor
  • mode = 3 invert
  • mode = 4 set the suitable mode for cursor echo according to the vendor

Reimplemented from TVirtualX.

Definition at line 3568 of file TGCocoa.mm.

◆ SetDrawModeW()

void TGCocoa::SetDrawModeW ( WinContext_t wctxt,
EDrawMode mode )
overridevirtualinherited

Set window draw mode.

Reimplemented from TVirtualX.

Definition at line 699 of file TGCocoa.mm.

◆ SetDrawOption()

void TObject::SetDrawOption ( Option_t * option = "")
virtualinherited

Set drawing option for object.

This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().

Reimplemented in RooPlot, TAxis, TBrowser, TGedFrame, TGFrame, TPad, TPaveStats, TRootBrowserLite, TSystemDirectory, and TSystemFile.

Definition at line 871 of file TObject.cxx.

◆ SetDtorOnly()

void TObject::SetDtorOnly ( void * obj)
staticinherited

Set destructor only flag.

Definition at line 1204 of file TObject.cxx.

◆ SetFillAttributes()

virtual void TAttFill::SetFillAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetFillColor() [1/2]

void TAttFill::SetFillColor ( TColorNumber )
inherited

◆ SetFillColor() [2/2]

void TGQuartz::SetFillColor ( Color_t fcolor)
overridevirtual

Set the fill area color.

Reimplemented from TAttFill.

Definition at line 880 of file TGQuartz.mm.

◆ SetFillColorAlpha()

virtual void TAttFill::SetFillColorAlpha ( Color_t fcolor,
Float_t falpha )
virtualinherited

Reimplemented in TGraphMultiErrors.

◆ SetFillStyle()

void TGQuartz::SetFillStyle ( Style_t fstyle)
overridevirtual

Set the fill area style.

Reimplemented from TAttFill.

Definition at line 891 of file TGQuartz.mm.

◆ SetForeground()

void TGCocoa::SetForeground ( GContext_t gc,
ULong_t foreground )
overridevirtualinherited

Sets the foreground color for the specified GC (shortcut for ChangeGC with only foreground mask set).

Parameters
[in]gcspecifies the GC
[in]foregroundthe foreground you want to set

(see also the GCValues_t structure)

Reimplemented from TVirtualX.

Definition at line 3056 of file TGCocoa.mm.

◆ SetIconName()

void TGCocoa::SetIconName ( Window_t id,
char * name )
overridevirtualinherited

Sets the window icon name.

Reimplemented from TVirtualX.

Definition at line 1587 of file TGCocoa.mm.

◆ SetIconPixmap()

void TGCocoa::SetIconPixmap ( Window_t id,
Pixmap_t pix )
overridevirtualinherited

Sets the icon name pixmap.

Reimplemented from TVirtualX.

Definition at line 1593 of file TGCocoa.mm.

◆ SetInputFocus()

void TGCocoa::SetInputFocus ( Window_t id)
overridevirtualinherited

Changes the input focus to specified window "id".

Reimplemented from TVirtualX.

Definition at line 2837 of file TGCocoa.mm.

◆ SetKeyAutoRepeat()

void TGCocoa::SetKeyAutoRepeat ( Bool_t on = kTRUE)
overridevirtualinherited

Turns key auto repeat on (kTRUE) or off (kFALSE).

Reimplemented from TVirtualX.

Definition at line 2769 of file TGCocoa.mm.

◆ SetLineAttributes()

virtual void TAttLine::SetLineAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetLineColor() [1/2]

void TAttLine::SetLineColor ( TColorNumber lcolor)
inherited

◆ SetLineColor() [2/2]

void TGQuartz::SetLineColor ( Color_t lcolor)
overridevirtual

Set the line color.

Reimplemented from TAttLine.

Definition at line 849 of file TGQuartz.mm.

◆ SetLineColorAlpha()

virtual void TAttLine::SetLineColorAlpha ( Color_t lcolor,
Float_t lalpha )
virtualinherited

Reimplemented in TGraphMultiErrors.

◆ SetLineStyle()

void TGQuartz::SetLineStyle ( Style_t lstyle)
overridevirtual

Set the line style.

Reimplemented from TAttLine.

Definition at line 859 of file TGQuartz.mm.

◆ SetLineType()

void TVirtualX::SetLineType ( Int_t n,
Int_t * dash )
virtualinherited

Sets the line type.

Parameters
[in]nlength of the dash list
  • n <= 0 use solid lines
  • 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
[in]dashdash segment lengths

Reimplemented in TGWin32, TGWin32VirtualXProxy, and TGX11.

Definition at line 1023 of file TVirtualX.cxx.

◆ SetLineWidth()

void TGQuartz::SetLineWidth ( Width_t lwidth)
overridevirtual

Set the line width.

Reimplemented from TAttLine.

Definition at line 869 of file TGQuartz.mm.

◆ SetMarkerAttributes()

virtual void TAttMarker::SetMarkerAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetMarkerColor() [1/2]

void TAttMarker::SetMarkerColor ( TColorNumber lcolor)
inherited

◆ SetMarkerColor() [2/2]

void TGQuartz::SetMarkerColor ( Color_t mcolor)
overridevirtual

Set the marker color.

Reimplemented from TAttMarker.

Definition at line 901 of file TGQuartz.mm.

◆ SetMarkerColorAlpha()

virtual void TAttMarker::SetMarkerColorAlpha ( Color_t mcolor,
Float_t malpha )
virtualinherited

◆ SetMarkerSize()

void TGQuartz::SetMarkerSize ( Float_t msize)
overridevirtual

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 911 of file TGQuartz.mm.

◆ SetMarkerStyle()

void TGQuartz::SetMarkerStyle ( Style_t mstyle)
overridevirtual

Set the marker style.

Reimplemented from TAttMarker.

Definition at line 923 of file TGQuartz.mm.

◆ SetMWMHints()

void TGCocoa::SetMWMHints ( Window_t id,
UInt_t value,
UInt_t funcs,
UInt_t input )
overridevirtualinherited

Sets decoration style.

Reimplemented from TVirtualX.

Definition at line 1639 of file TGCocoa.mm.

◆ SetName()

void TNamed::SetName ( const char * name)
virtualinherited

Set the name of the TNamed.

WARNING: if the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.

Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, ROOT::Experimental::XRooFit::xRooNode, TChain, TColor, TDirectory, TEfficiency, TEventList, TEveScene, TFormula, TGraph2D, TGraph, TH1, TNode, TRotMatrix, TShape, TSystemDirectory, TSystemFile, and TTree.

Definition at line 149 of file TNamed.cxx.

◆ SetNameTitle()

void TNamed::SetNameTitle ( const char * name,
const char * title )
virtualinherited

Set all the TNamed parameters (name and title).

WARNING: if the name is changed and the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.

Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, TContextMenu, TGraph2D, TGraph, TH1, and TNode.

Definition at line 163 of file TNamed.cxx.

◆ SetObjectStat()

void TObject::SetObjectStat ( Bool_t stat)
staticinherited

Turn on/off tracking of objects in the TObjectTable.

Definition at line 1188 of file TObject.cxx.

◆ SetOpacity()

void TGQuartz::SetOpacity ( Int_t percent)
overridevirtual

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 982 of file TGQuartz.mm.

◆ SetOpacityW()

void TGQuartz::SetOpacityW ( WinContext_t wctxt,
Int_t percent )
overridevirtual

Set opactity for specified window.

Reimplemented from TVirtualX.

Definition at line 992 of file TGQuartz.mm.

◆ SetPrimarySelectionOwner()

void TGCocoa::SetPrimarySelectionOwner ( Window_t id)
overridevirtualinherited

Makes the window "id" the current owner of the primary selection.

That is the window in which, for example some text is selected.

Reimplemented from TVirtualX.

Definition at line 3654 of file TGCocoa.mm.

◆ SetRGB()

void TGCocoa::SetRGB ( Int_t cindex,
Float_t r,
Float_t g,
Float_t b )
overridevirtualinherited

Sets color intensities the specified color index "cindex".

Parameters
[in]cindexcolor index
[in]r,g,bthe red, green, blue intensities between 0.0 and 1.0

Reimplemented from TVirtualX.

Definition at line 3031 of file TGCocoa.mm.

◆ SetSelectionOwner()

Bool_t TGCocoa::SetSelectionOwner ( Window_t ,
Atom_t &  )
overridevirtualinherited

Changes the owner and last-change time for the specified selection.

Reimplemented from TVirtualX.

Definition at line 3680 of file TGCocoa.mm.

◆ SetTextAlign()

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

Set the text alignment.

Reimplemented from TAttText.

Definition at line 934 of file TGQuartz.mm.

◆ SetTextAngle()

virtual void TAttText::SetTextAngle ( Float_t tangle = 0)
inlinevirtualinherited

Set the text angle.

Reimplemented in TGraphNode, and TGWin32VirtualXProxy.

Definition at line 49 of file TAttText.h.

◆ SetTextAttributes()

virtual void TAttText::SetTextAttributes ( )
virtualinherited

Reimplemented in TGWin32VirtualXProxy.

◆ SetTextColor() [1/2]

void TAttText::SetTextColor ( TColorNumber lcolor)
inherited

◆ SetTextColor() [2/2]

void TGQuartz::SetTextColor ( Color_t tcolor)
overridevirtual

Set the text color.

Reimplemented from TAttText.

Definition at line 944 of file TGQuartz.mm.

◆ SetTextColorAlpha()

virtual void TAttText::SetTextColorAlpha ( Color_t tcolor,
Float_t talpha )
virtualinherited

◆ SetTextFont() [1/2]

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

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 965 of file TGQuartz.mm.

◆ SetTextFont() [2/2]

void TGQuartz::SetTextFont ( Font_t tfont)
overridevirtual

Set the text font.

Reimplemented from TAttText.

Definition at line 955 of file TGQuartz.mm.

◆ SetTextMagnitude()

void TGCocoa::SetTextMagnitude ( Float_t mgn)
overridevirtualinherited

Sets the current text magnification factor to "mgn".

Reimplemented from TVirtualX.

Definition at line 4187 of file TGCocoa.mm.

◆ SetTextSize()

void TGQuartz::SetTextSize ( Float_t tsize)
overridevirtual

Set the text size.

Reimplemented from TAttText.

Definition at line 972 of file TGQuartz.mm.

◆ SetTextSizePixels()

virtual void TAttText::SetTextSizePixels ( Int_t npixels)
virtualinherited

Set the text size in pixel.

Reimplemented in TGWin32VirtualXProxy.

◆ SetTitle()

void TNamed::SetTitle ( const char * title = "")
virtualinherited

◆ SetTypeList()

void TGCocoa::SetTypeList ( Window_t win,
Atom_t prop,
Atom_t * typelist )
overridevirtualinherited

Add the list of drag and drop types to the Window win.

Reimplemented from TVirtualX.

Definition at line 4052 of file TGCocoa.mm.

◆ SetUniqueID()

void TObject::SetUniqueID ( UInt_t uid)
virtualinherited

Set the unique object id.

Definition at line 899 of file TObject.cxx.

◆ SetWindowBackground()

void TGCocoa::SetWindowBackground ( Window_t id,
ULong_t color )
overridevirtualinherited

Sets the background of the window "id" to the specified color value "color".

Changing the background does not cause the window contents to be changed.

Reimplemented from TVirtualX.

Definition at line 1500 of file TGCocoa.mm.

◆ SetWindowBackgroundPixmap()

void TGCocoa::SetWindowBackgroundPixmap ( Window_t id,
Pixmap_t pxm )
overridevirtualinherited

Sets the background pixmap of the window "id" to the specified pixmap "pxm".

Reimplemented from TVirtualX.

Definition at line 1512 of file TGCocoa.mm.

◆ SetWindowName()

void TGCocoa::SetWindowName ( Window_t id,
char * name )
overridevirtualinherited

Sets the window name.

Reimplemented from TVirtualX.

Definition at line 1571 of file TGCocoa.mm.

◆ SetWMPosition()

void TGCocoa::SetWMPosition ( Window_t id,
Int_t x,
Int_t y )
overridevirtualinherited

Tells the window manager the desired position [x,y] of window "id".

Reimplemented from TVirtualX.

Definition at line 1679 of file TGCocoa.mm.

◆ SetWMSize()

void TGCocoa::SetWMSize ( Window_t id,
UInt_t w,
UInt_t h )
overridevirtualinherited

Tells window manager the desired size of window "id".

Parameters
[in]idwindow identifier
[in]wthe width
[in]hthe height

Reimplemented from TVirtualX.

Definition at line 1685 of file TGCocoa.mm.

◆ SetWMSizeHints()

void TGCocoa::SetWMSizeHints ( Window_t id,
UInt_t wmin,
UInt_t hmin,
UInt_t wmax,
UInt_t hmax,
UInt_t winc,
UInt_t hinc )
overridevirtualinherited

Gives the window manager minimum and maximum size hints of the window "id".

Also specify via "winc" and "hinc" the resize increments.

Parameters
[in]idwindow identifier
[in]wmin,hminspecify the minimum window size
[in]wmax,hmaxspecify the maximum window size
[in]winc,hincdefine an arithmetic progression of sizes into which the window to be resized (minimum to maximum)

Reimplemented from TVirtualX.

Definition at line 1691 of file TGCocoa.mm.

◆ SetWMState()

void TGCocoa::SetWMState ( Window_t id,
EInitialState state )
overridevirtualinherited

Sets the initial state of the window "id": either kNormalState or kIconicState.

Reimplemented from TVirtualX.

Definition at line 1707 of file TGCocoa.mm.

◆ SetWMTransientHint()

void TGCocoa::SetWMTransientHint ( Window_t id,
Window_t main_id )
overridevirtualinherited

Tells window manager that the window "id" is a transient window of the window "main_id".

A window manager may decide not to decorate a transient window or may treat it differently in other ways.

Reimplemented from TVirtualX.

Definition at line 1713 of file TGCocoa.mm.

◆ ShapeCombineMask()

void TGCocoa::ShapeCombineMask ( Window_t id,
Int_t x,
Int_t y,
Pixmap_t mask )
overridevirtualinherited

The Non-rectangular Window Shape Extension adds non-rectangular windows to the System.

This allows for making shaped (partially transparent) windows

Reimplemented from TVirtualX.

Definition at line 1605 of file TGCocoa.mm.

◆ Sizeof()

Int_t TNamed::Sizeof ( ) const
virtualinherited

Return size of the TNamed part of the TObject.

Reimplemented in TDirectory, TDirectoryFile, TFile, TKey, TSQLFile, and TXMLFile.

Definition at line 182 of file TNamed.cxx.

◆ Streamer()

void TGQuartz::Streamer ( TBuffer & R__b)
overridevirtual

Stream an object of class TObject.

Reimplemented from TGCocoa.

◆ StreamerNVirtual()

void TGQuartz::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 123 of file TGQuartz.h.

◆ SubtractRegion()

void TGCocoa::SubtractRegion ( Region_t rega,
Region_t regb,
Region_t result )
overridevirtualinherited

Subtracts regb from rega and stores the results in result.

Reimplemented from TVirtualX.

Definition at line 4412 of file TGCocoa.mm.

◆ SupportsExtension()

Int_t TGCocoa::SupportsExtension ( const char * ext) const
overridevirtualinherited

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).

Reimplemented from TVirtualX.

Definition at line 516 of file TGCocoa.mm.

◆ Sync()

void TGCocoa::Sync ( Int_t mode)
overridevirtualinherited

Set synchronisation on or off.

Parameters
[in]modesynchronisation on/off
  • mode=1 on
  • mode<>0 off

Reimplemented from TVirtualX.

Definition at line 4193 of file TGCocoa.mm.

◆ SysError()

void TObject::SysError ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue system error message.

Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.

Definition at line 1112 of file TObject.cxx.

◆ TestBit()

Bool_t TObject::TestBit ( UInt_t f) const
inlineinherited

Definition at line 204 of file TObject.h.

◆ TestBits()

Int_t TObject::TestBits ( UInt_t f) const
inlineinherited

Definition at line 205 of file TObject.h.

◆ TextWidth()

Int_t TGCocoa::TextWidth ( FontStruct_t font,
const char * s,
Int_t len )
overridevirtualinherited

Return length of the string "s" in pixels. Size depends on font.

Reimplemented from TVirtualX.

Definition at line 2910 of file TGCocoa.mm.

◆ TranslateCoordinates()

void TGCocoa::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 )
overridevirtualinherited

Translates coordinates in one window to the coordinate space of another window.

It takes the "src_x" and "src_y" coordinates relative to the source window's origin and returns these coordinates to "dest_x" and "dest_y" relative to the destination window's origin.

Parameters
[in]srcthe source window
[in]destthe destination window
[in]src_x,src_ycoordinates within the source window
[in]dest_x,dest_ycoordinates within the destination window
[in]childreturns the child of "dest" if the coordinates are contained in a mapped child of the destination window; otherwise, child is set to 0

Reimplemented from TVirtualX.

Definition at line 1389 of file TGCocoa.mm.

◆ UnionRectWithRegion()

void TGCocoa::UnionRectWithRegion ( Rectangle_t * rect,
Region_t src,
Region_t dest )
overridevirtualinherited

Updates the destination region from a union of the specified rectangle and the specified source region.

Parameters
[in]rectspecifies the rectangle
[in]srcspecifies the source region to be used
[in]destreturns the destination region

Reimplemented from TVirtualX.

Definition at line 4368 of file TGCocoa.mm.

◆ UnionRegion()

void TGCocoa::UnionRegion ( Region_t rega,
Region_t regb,
Region_t result )
overridevirtualinherited

Computes the union of two regions.

Parameters
[in]rega,regbspecify the two regions with which you want to perform the computation
[in]resultreturns the result of the computation

Reimplemented from TVirtualX.

Definition at line 4391 of file TGCocoa.mm.

◆ UnmapWindow()

void TGCocoa::UnmapWindow ( Window_t id)
overridevirtualinherited

Unmaps the specified window "id".

If the specified window is already unmapped, this function has no effect. Any child window will no longer be visible (but they are still mapped) until another map call is made on the parent.

Reimplemented from TVirtualX.

Definition at line 1238 of file TGCocoa.mm.

◆ Update()

void TGCocoa::Update ( Int_t mode)
overridevirtualinherited

Flushes (mode = 0, default) or synchronizes (mode = 1) X output buffer.

Flush flushes output buffer. Sync flushes buffer and waits till all requests have been processed by X server.

Reimplemented from TVirtualX.

Definition at line 577 of file TGCocoa.mm.

◆ UpdateWindow()

void TGCocoa::UpdateWindow ( Int_t mode)
overridevirtualinherited

Updates or synchronises client and server once (not permanent).

according to "mode".

Parameters
[in]modeupdate mode.
  • mode = 1 update
  • mode = 0 sync

Reimplemented from TVirtualX.

Definition at line 866 of file TGCocoa.mm.

◆ UpdateWindowW()

void TGCocoa::UpdateWindowW ( WinContext_t wctxt,
Int_t mode )
overridevirtualinherited

Update specified window.

Reimplemented from TVirtualX.

Definition at line 739 of file TGCocoa.mm.

◆ UseCurrentStyle()

void TObject::UseCurrentStyle ( )
virtualinherited

Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.

Reimplemented in TAxis3D, TCanvas, TFrame, TGraph, TH1, TPad, TPaveStats, TPaveText, and TTree.

Definition at line 909 of file TObject.cxx.

◆ Warning()

void TObject::Warning ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue warning message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1084 of file TObject.cxx.

◆ Warp()

void TGCocoa::Warp ( Int_t ix,
Int_t iy,
Window_t id )
overridevirtualinherited

Sets the pointer position.

Parameters
[in]ixnew X coordinate of pointer
[in]iynew Y coordinate of pointer
[in]idwindow identifier

Coordinates are relative to the origin of the window id or to the origin of the current window if id == 0.

Reimplemented from TVirtualX.

Definition at line 4202 of file TGCocoa.mm.

◆ WMDeleteNotify()

void TGCocoa::WMDeleteNotify ( Window_t id)
overridevirtualinherited

Tells WM to send message when window is closed via WM.

Reimplemented from TVirtualX.

Definition at line 4338 of file TGCocoa.mm.

◆ Write() [1/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
virtualinherited

Write this object to the current directory.

For more see the const version of this method.

Reimplemented in ROOT::TBufferMergerFile, TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 989 of file TObject.cxx.

◆ Write() [2/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 ) const
virtualinherited

Write this object to the current directory.

The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".

Writing an object to a file involves the following steps:

  • Creation of a support TKey object in the current directory. The TKey object creates a TBuffer object.
  • The TBuffer object is filled via the class::Streamer function.
  • If the file is compressed (default) a second buffer is created to hold the compressed buffer.
  • Reservation of the corresponding space in the file by looking in the TFree list of free blocks of the file.
  • The buffer is written to the file.

Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.

If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().

The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.

An object is read from the file into memory via TKey::Read() or via TObject::Read().

The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.

Reimplemented in TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 964 of file TObject.cxx.

◆ WriteGIF()

Int_t TGCocoa::WriteGIF ( char * name)
overridevirtualinherited

Writes the current window into GIF file.

Returns 1 in case of success, 0 otherwise.

Reimplemented from TVirtualX.

Definition at line 4231 of file TGCocoa.mm.

◆ WriteGIFW()

Int_t TVirtualX::WriteGIFW ( WinContext_t wctxt,
const char * name )
virtualinherited

Save specified window as GIF image.

Reimplemented in TGWin32, and TGX11.

Definition at line 546 of file TVirtualX.cxx.

◆ WritePixmap()

void TGCocoa::WritePixmap ( Int_t wid,
UInt_t w,
UInt_t h,
char * pxname )
overridevirtualinherited

Writes the pixmap "wid" in the bitmap file "pxname".

Parameters
[in]widthe pixmap address
[in]w,hthe width and height of the pixmap.
[in]pxnamethe file name

Reimplemented from TVirtualX.

Definition at line 4240 of file TGCocoa.mm.

◆ XorRegion()

void TGCocoa::XorRegion ( Region_t rega,
Region_t regb,
Region_t result )
overridevirtualinherited

Calculates the difference between the union and intersection of two regions.

Parameters
[in]rega,regbspecify the two regions with which you want to perform the computation
[in]resultreturns the result of the computation

Reimplemented from TVirtualX.

Definition at line 4418 of file TGCocoa.mm.

Member Data Documentation

◆ fAtomToName

std::vector<std::string> TGCocoa::fAtomToName
privateinherited

Definition at line 466 of file TGCocoa.h.

◆ fBits

UInt_t TObject::fBits
privateinherited

bit field status word

Definition at line 47 of file TObject.h.

◆ fCocoaDraw

Int_t TGCocoa::fCocoaDraw
protectedinherited

Definition at line 452 of file TGCocoa.h.

◆ fConvertedPoints

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

Definition at line 100 of file TGQuartz.h.

◆ fDirectDraw

bool TGCocoa::fDirectDraw
protectedinherited

Definition at line 455 of file TGCocoa.h.

◆ fDisplayRect

ROOT::MacOSX::X11::Rectangle TGCocoa::fDisplayRect
mutableprivateinherited

Definition at line 473 of file TGCocoa.h.

◆ fDisplayShapeChanged

bool TGCocoa::fDisplayShapeChanged
mutableprivateinherited

Definition at line 472 of file TGCocoa.h.

◆ fDrawMode

EDrawMode TGCocoa::fDrawMode
protectedinherited

Definition at line 454 of file TGCocoa.h.

◆ fFillColor

Color_t TAttFill::fFillColor
protectedinherited

Fill area color.

Definition at line 24 of file TAttFill.h.

◆ fFillStyle

Style_t TAttFill::fFillStyle
protectedinherited

Fill area style.

Definition at line 25 of file TAttFill.h.

◆ fForegroundProcess

bool TGCocoa::fForegroundProcess
privateinherited

Definition at line 462 of file TGCocoa.h.

◆ fgDeleteWindowAtom

Atom_t TGCocoa::fgDeleteWindowAtom = 0
staticinherited

Definition at line 476 of file TGCocoa.h.

◆ fgDtorOnly

Longptr_t TObject::fgDtorOnly = 0
staticprivateinherited

object for which to call dtor only (i.e. no delete)

Definition at line 49 of file TObject.h.

◆ fgObjectStat

Bool_t TObject::fgObjectStat = kTRUE
staticprivateinherited

if true keep track of objects in TObjectTable

Definition at line 50 of file TObject.h.

◆ fLineColor

Color_t TAttLine::fLineColor
protectedinherited

Line color.

Definition at line 24 of file TAttLine.h.

◆ fLineStyle

Style_t TAttLine::fLineStyle
protectedinherited

Line style.

Definition at line 25 of file TAttLine.h.

◆ fLineWidth

Width_t TAttLine::fLineWidth
protectedinherited

Line width.

Definition at line 26 of file TAttLine.h.

◆ fMarkerColor

Color_t TAttMarker::fMarkerColor
protectedinherited

Marker color.

Definition at line 24 of file TAttMarker.h.

◆ fMarkerSize

Size_t TAttMarker::fMarkerSize
protectedinherited

Marker size.

Definition at line 26 of file TAttMarker.h.

◆ fMarkerStyle

Style_t TAttMarker::fMarkerStyle
protectedinherited

Marker style.

Definition at line 25 of file TAttMarker.h.

◆ fName

TString TNamed::fName
protectedinherited

Definition at line 32 of file TNamed.h.

◆ fNameToAtom

std::map<std::string, Atom_t> TGCocoa::fNameToAtom
privateinherited

Definition at line 465 of file TGCocoa.h.

◆ fPimpl

std::unique_ptr<ROOT::MacOSX::Details::CocoaPrivate> TGCocoa::fPimpl
protectedinherited

!

Definition at line 451 of file TGCocoa.h.

◆ fSelectedDrawable

Drawable_t TGCocoa::fSelectedDrawable
protectedinherited

Definition at line 449 of file TGCocoa.h.

◆ fSelectionOwners

std::map<Atom_t, Window_t> TGCocoa::fSelectionOwners
privateinherited

Definition at line 468 of file TGCocoa.h.

◆ fSetApp

bool TGCocoa::fSetApp
privateinherited

Definition at line 471 of file TGCocoa.h.

◆ fTextAlign

Short_t TAttText::fTextAlign
protectedinherited

Text alignment.

Definition at line 26 of file TAttText.h.

◆ fTextAngle

Float_t TAttText::fTextAngle
protectedinherited

Text angle.

Definition at line 24 of file TAttText.h.

◆ fTextColor

Color_t TAttText::fTextColor
protectedinherited

Text color.

Definition at line 27 of file TAttText.h.

◆ fTextFont

Font_t TAttText::fTextFont
protectedinherited

Text font.

Definition at line 28 of file TAttText.h.

◆ fTextSize

Float_t TAttText::fTextSize
protectedinherited

Text size.

Definition at line 25 of file TAttText.h.

◆ fTitle

TString TNamed::fTitle
protectedinherited

Definition at line 33 of file TNamed.h.

◆ fUniqueID

UInt_t TObject::fUniqueID
privateinherited

object unique identifier

Definition at line 46 of file TObject.h.

◆ fUseAA

bool TGQuartz::fUseAA
private

Definition at line 108 of file TGQuartz.h.

◆ fUseFAAA

bool TGQuartz::fUseFAAA
private

Definition at line 109 of file TGQuartz.h.

◆ fX11Contexts

std::vector<GCValues_t> TGCocoa::fX11Contexts
privateinherited

Definition at line 463 of file TGCocoa.h.


The documentation for this class was generated from the following files: