123         else if (
gVirtualX->InheritsFrom(
"TGCocoa"))
 
  128         if (
ph && 
ph->LoadPlugin() != -1) {
 
  129            if (!
ph->ExecPlugin(0)) {
 
  131                       "Cannot load GL, will use default canvas imp instead\n");
 
 
  293         gROOT->SetInterrupt();
 
 
  438      if (!obj) 
return kTRUE;
 
  442         if (!
object) 
return kTRUE;
 
  443         if (
object->InheritsFrom(
"TGraph"))
 
  445         else if (
object->InheritsFrom(
"TImage"))
 
  447         else if (
object->IsA()->GetMethodAllAny(
"Draw"))
 
  452      else if (obj->
IsA()->GetMethodAllAny(
"Draw"))
 
  460      if (
sfname.Length() > 7) {
 
  461         sfname.ReplaceAll(
"\r\n", 
"");
 
  463         if (
sfname.EndsWith(
".bmp") ||
 
  464            sfname.EndsWith(
".gif") ||
 
  465            sfname.EndsWith(
".jpg") ||
 
  466            sfname.EndsWith(
".png") ||
 
  468            sfname.EndsWith(
".eps") ||
 
  469            sfname.EndsWith(
".pdf") ||
 
  470            sfname.EndsWith(
".tiff") ||
 
  471            sfname.EndsWith(
".xpm")) {
 
 
  491   Int_t    px = 0, py = 0;
 
 
  544   out << std::endl << 
"   // embedded canvas" << std::endl;
 
  545   out << 
"   TRootEmbeddedCanvas *";
 
  546   out << 
GetName() << 
" = new TRootEmbeddedCanvas(0" << 
"," << 
fParent->GetName()
 
  551         out <<
");" << std::endl;
 
  559      out << 
"   " << 
GetName() << 
"->SetName(\"" << 
GetName() << 
"\");" << std::endl;
 
  562       << 
"->GetCanvasWindowId();" << std::endl;
 
  568   out <<  
cname << 
" = new TCanvas(";
 
  570       << 
GetName() << 
");" << std::endl;
 
  572       << 
");" << std::endl;
 
 
const Mask_t kButtonPressMask
 
const Mask_t kExposureMask
 
Handle_t Window_t
Window handle.
 
const Mask_t kKeyReleaseMask
 
const Mask_t kAnyModifier
 
const Mask_t kKeyPressMask
 
const Mask_t kPointerMotionMask
 
const Mask_t kKeyShiftMask
 
const Mask_t kLeaveWindowMask
 
const Mask_t kStructureNotifyMask
 
const Mask_t kButtonReleaseMask
 
ULong_t Pixel_t
Pixel value.
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
void Warning(const char *location, const char *msgfmt,...)
Use this function in warning situations.
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t mask
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize wid
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char cname
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t win
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t Atom_t typelist
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t button
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char mx
 
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
 
R__EXTERN TStyle * gStyle
 
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket.
 
void * ReadObjectAny(const TClass *cast) override
Read object from I/O buffer.
 
void SetReadMode()
Set buffer in read mode.
 
TPad * Pick(Int_t px, Int_t py, TObjLink *&pickobj) override
Search for an object at pixel position px,py.
 
virtual void Resize(Option_t *option="")
Recompute canvas parameters following a X11 Resize.
 
virtual void HandleInput(EEventType button, Int_t x, Int_t y)
Handle Input Events.
 
Int_t GetCanvasID() const override
 
void Update() override
Update canvas pad buffers.
 
void Flush()
Flush canvas buffers.
 
Drag and drop data container.
 
A frame containing two scrollbars (a horizontal and a vertical) and a viewport.
 
virtual void SetContainer(TGFrame *f)
 
TGViewPort * GetViewPort() const
 
void MapSubwindows() override
Map all canvas sub windows.
 
The base class for composite widgets (menu bars, list boxes, etc.).
 
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
 
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
 
void Resize(UInt_t w=0, UInt_t h=0) override
Resize the frame.
 
UInt_t fHeight
frame height
 
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
 
virtual UInt_t GetOptions() const
 
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
 
void SetDNDTarget(Bool_t onoff)
 
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
 
Pixel_t fBackground
frame background color
 
Handle_t fId
X11/Win32 Window identifier.
 
ROOT GUI Window base class.
 
const TGWindow * fParent
Parent window.
 
virtual Int_t MustCleanup() const
 
@ kEditDisableLayout
window layout cannot be edited
 
@ kEditDisableGrab
window grab cannot be edited
 
const char * GetName() const override
Return unique name, used in SavePrimitive methods.
 
UInt_t fEditDisabled
flags used for "guibuilding"
 
An abstract interface to image processing library.
 
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
 
Mother of all ROOT objects.
 
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
 
virtual TClass * IsA() const
 
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
 
The most important graphics class in the ROOT system.
 
void SetBorderMode(Short_t bordermode) override
 
This class creates a TGCanvas in which a TCanvas is created.
 
Atom_t HandleDNDEnter(Atom_t *typelist) override
Handle drag enter events.
 
Bool_t HandleDNDDrop(TDNDData *data) override
Handle drop events.
 
Bool_t fAutoFit
canvas container keeps same size as canvas
 
virtual Bool_t HandleContainerCrossing(Event_t *ev)
Handle enter/leave events. Only leave is activated at the moment.
 
virtual Bool_t HandleContainerConfigure(Event_t *ev)
Handle configure (i.e. resize) event.
 
void SavePrimitive(std::ostream &out, Option_t *option="") override
Save an embedded canvas as a C++ statement(s) on output stream out.
 
Int_t fCWinId
window id used by embedded TCanvas
 
Bool_t HandleDNDLeave() override
Handle drag leave events.
 
TCanvas * fCanvas
pointer to TCanvas
 
void AdoptCanvas(TCanvas *c)
Canvas c is adopted from this embedded canvas.
 
virtual Bool_t HandleContainerButton(Event_t *ev)
Handle mouse button events in the canvas container.
 
virtual Bool_t HandleContainerDoubleClick(Event_t *ev)
Handle mouse button double click events in the canvas container.
 
TRootEmbeddedCanvas(const TRootEmbeddedCanvas &)=delete
 
TCanvas * GetCanvas() const
 
Atom_t HandleDNDPosition(Int_t, Int_t, Atom_t action, Int_t, Int_t) override
Handle dragging position events.
 
virtual Bool_t HandleContainerMotion(Event_t *ev)
Handle mouse motion event in the canvas container.
 
Int_t fButton
currently pressed button
 
friend class TRootEmbeddedContainer
 
virtual Bool_t HandleContainerKey(Event_t *ev)
Handle keyboard events in the canvas container.
 
~TRootEmbeddedCanvas() override
Delete embedded ROOT canvas.
 
Atom_t * fDNDTypeList
handles DND types
 
TRootEmbeddedContainer * fCanvasContainer
container in canvas widget
 
virtual Bool_t HandleContainerExpose(Event_t *ev)
Handle expose events.
 
Utility class used by TRootEmbeddedCanvas.
 
Bool_t HandleCrossing(Event_t *ev) override
 
Bool_t HandleDoubleClick(Event_t *ev) override
 
Bool_t HandleButton(Event_t *ev) override
 
TRootEmbeddedCanvas * fCanvas
 
Bool_t HandleConfigureNotify(Event_t *ev) override
This event is generated when the frame is resized.
 
Bool_t HandleKey(Event_t *ev) override
 
Bool_t HandleExpose(Event_t *ev) override
 
Bool_t HandleMotion(Event_t *ev) override
 
void SetEditable(Bool_t) override
Switch ON/OFF edit mode.
 
TRootEmbeddedContainer(TRootEmbeddedCanvas *c, Window_t id, const TGWindow *parent)
Create a canvas container.
 
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
 
Bool_t GetCanvasPreferGL() const
 
void SetCanvasPreferGL(Bool_t prefer=kTRUE)
 
This class represents a WWW compatible URL.
 
const char * GetFile() const
 
EGEventType fType
of event (see EGEventType)
 
Int_t fCount
if non-zero, at least this many more exposes
 
UInt_t fState
key or button mask
 
UInt_t fCode
key or button code