31 #ifndef ROOT_TGDimension
241 {
Emit(
"ProcessedConfigure(Event_t*)", (
Long_t)event); }
243 {
Emit(
"ProcessedEvent(Event_t*)", (
Long_t)event); }
304 {
return (
Contains(x, y) ?
this : 0); }
548 void SetClassHints(
const char *className,
const char *resourceName);
664 virtual void SetTitle(
const char *title);
UInt_t GetMinHeight() const
virtual void HideFrame(TGFrame *f)
Hide sub frame.
virtual Bool_t HandleDragMotion(TGFrame *)
Handle drag motion event.
Bool_t HasOwnFont() const
Returns kTRUE if text attributes are unique, returns kFALSE if text attributes are shared (global)...
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void SetDrawOption(Option_t *="")
Set drawing option for object.
const char * GetIconName() const
Returns mime type name of object.
GContext_t GetNormGC() const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a group frame widget as a C++ statement(s) on output stream out.
virtual void MapSubwindows()
TGLayoutManager * fLayoutManager
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
virtual Bool_t HandleFocusChange(Event_t *)
virtual Bool_t IsActive() const
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
virtual void Print(Option_t *option="") const
Print all frames in this composite frame.
static const TGGC & GetDefaultGC()
Return default graphics context in use.
virtual Bool_t HandleButton(Event_t *)
static const TGGC * fgBlackGC
virtual Bool_t HandleKey(Event_t *)
TGHorizontalFrame(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
EInitialState fWMInitState
virtual Bool_t HandleDNDDrop(TDNDData *)
virtual Bool_t HandleDoubleClick(Event_t *)
virtual void StartGuiBuilding(Bool_t on=kTRUE)
Go into GUI building mode.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
virtual Bool_t HandleKey(Event_t *)
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
virtual void RemoveBind(const TGWindow *w, Int_t keycode, Int_t modifier) const
Remove key binding.
virtual Bool_t IsComposite() const
virtual Bool_t HandleKey(Event_t *event)
Handle keyboard events.
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
FontStruct_t GetFontStruct() const
static UInt_t fgUserColor
virtual Bool_t HandleClientMessage(Event_t *event)
Handle client messages sent to this frame.
virtual void Inspect() const
Dump contents of this object in a graphics canvas.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
static Pixel_t GetWhitePixel()
Get white pixel value.
TList * GetBindList() const
virtual void SetDropType(Int_t type)
SetDropType.
virtual void SetForegroundColor(Pixel_t)
virtual Bool_t HandleDragEnter(TGFrame *)
Handle drag enter event.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
static const char * filename()
const TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name.
virtual Bool_t TranslateCoordinates(TGFrame *child, Int_t x, Int_t y, Int_t &fx, Int_t &fy)
Translate coordinates to child frame.
virtual void DrawBorder()
Draw frame border.
TGMainFrame(const TGMainFrame &)
virtual TList * GetList() const
Bool_t IsArranged(TGFrame *f) const
Get state of sub frame.
virtual Bool_t HandleSelection(Event_t *event)
Handle primary selection event.
virtual void SetLayoutManager(TGLayoutManager *l)
Set the layout manager for the composite frame.
static Pixel_t fgWhitePixel
virtual void SetTextColor(Pixel_t color, Bool_t local=kTRUE)
Changes text color.
virtual void ShowFrame(TGFrame *f)
Show sub frame.
virtual void RemoveAll()
Remove all frames from composite frame.
virtual void SetMapSubwindows(Bool_t on)
static Pixel_t fgDefaultSelectedBackground
Bool_t IsArranged(TGFrameElement *ptr) const
TString GetMWMinpString() const
Returns MWM input mode hints as a string - used in SavePrimitive().
virtual Bool_t HandleColormapChange(Event_t *)
const char * GetIconPixmap() const
static const TGGC * fgShadowGC
virtual TObject * DrawClone(Option_t *="") const
Draw a clone of this object in the current pad.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow() signal to prevent the calling o...
virtual void Layout()
Layout the elements of the composite frame.
virtual Bool_t HandleDNDFinished()
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a transient frame widget as a C++ statement(s) on output stream out.
virtual Bool_t HandleEvent(Event_t *event)
Handle all frame events.
virtual void RemoveFrame(TGFrame *f)
Remove frame from composite frame.
void SetDNDTarget(Bool_t onoff)
const char * Data() const
virtual void DoRedraw()
Redraw the frame.
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
virtual Bool_t HandleCrossing(Event_t *)
virtual void SetTitlePos(ETitlePos pos=kLeft)
virtual ~TGCompositeFrame()
Delete a composite frame.
#define ClassDef(name, id)
Bool_t IsDNDSource() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
static UInt_t fgLastButton
static const TGGC * fgBckgndGC
virtual Bool_t HandleDragLeave(TGFrame *)
Handle drag leave event.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual Bool_t IsMapSubwindows() const
virtual UInt_t GetOptions() const
virtual Atom_t HandleDNDPosition(Int_t, Int_t, Atom_t, Int_t, Int_t)
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent...
TGTransientFrame(const TGTransientFrame &)
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
Give the window manager minimum and maximum size hints.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a horizontal frame widget as a C++ statement(s) on output stream out.
virtual ~TGGroupFrame()
Delete a group frame.
TGTransientFrame & operator=(const TGTransientFrame &)
virtual ~TGMainFrame()
TGMainFrame destructor.
void GetWMSize(UInt_t &w, UInt_t &h) const
virtual TGDimension GetDefaultSize() const =0
virtual void ReparentWindow(const TGWindow *p, Int_t x=0, Int_t y=0)
Reparent window, make p the new parent and position the window at position (x,y) in new parent...
TGCompositeFrame(const TGCompositeFrame &)
UInt_t GetEventMask() const
static Pixel_t fgBlackPixel
TGFrameElement * GetFrameElement() const
static Time_t fgLastClick
virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
Send message (i.e.
virtual void SetDragType(Int_t type)
SetDragType.
const char * GetWindowName() const
virtual void Activate(Bool_t)
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name.
static const TGFont * fgDefaultFont
TString GetMWMfuncString() const
Returns MWM function hints as a string - used in SavePrimitive().
virtual Bool_t HandleSelectionRequest(Event_t *)
void GetWMPosition(Int_t &x, Int_t &y) const
const TGWindow * GetMain() const
virtual Bool_t IsEditable() const
virtual UInt_t GetDefaultWidth() const
TGMainFrame & operator=(const TGMainFrame &)
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events.
EInitialState GetWMState() const
Bool_t IsDNDTarget() const
void Emit(const char *signal)
Acitvate signal without args.
virtual TDNDData * GetDNDData(Atom_t)
TGMapKey & operator=(const TGMapKey &)
virtual void SetMaxHeight(UInt_t h)
TGGroupFrame & operator=(const TGGroupFrame &)
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
void GetWMSizeHints(UInt_t &wmin, UInt_t &hmin, UInt_t &wmax, UInt_t &hmax, UInt_t &winc, UInt_t &hinc) const
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a main frame widget as a C++ statement(s) on output stream out.
virtual void ReallyDelete()
virtual TGDimension GetDefaultSize() const
Returns default size.
virtual Int_t MustCleanup() const
void SetDNDSource(Bool_t onoff)
virtual Atom_t HandleDNDEnter(Atom_t *)
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
Get frame located at specified point.
virtual void SendCloseMessage()
Send close message to self.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a frame widget as a C++ statement(s) on output stream out.
virtual Bool_t HandleDragLeave(TGFrame *)
virtual void SetLayoutBroken(Bool_t on=kTRUE)
Set broken layout. No Layout method is called.
virtual void SetSize(const TGDimension &s)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a vertical frame widget as a C++ statement(s) on output stream out.
static const TGGC * fgHilightGC
virtual void ProcessedEvent(Event_t *event)
virtual void SavePrimitiveSubframes(std::ostream &out, Option_t *option="")
Auxilary protected method used to save subframes.
UInt_t GetMinWidth() const
virtual UInt_t GetDefaultWidth() const
virtual Bool_t HandleMotion(Event_t *)
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
Bool_t IsVisible(TGFrame *f) const
Get state of sub frame.
static const TGGC & GetWhiteGC()
Get white graphics context.
virtual void SetTextFont(const char *fontName, Bool_t local=kTRUE)
Changes text font specified by name.
virtual UInt_t GetDefaultHeight() const
virtual void * GetSender()
virtual void SetMinWidth(UInt_t w)
virtual Bool_t HandleFocusChange(Event_t *)
static TGLayoutHints * fgDefaultHints
virtual void CloseWindow()
Close and delete main frame.
virtual Int_t GetDragType() const
Returns drag source type.
TGCompositeFrame & operator=(const TGCompositeFrame &)
virtual Int_t GetDropType() const
Returns drop target type.
TGMapKey(const TGMapKey &)
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual void SaveSource(const char *filename="Rootdlog.C", Option_t *option="")
Save the GUI tranzient frame widget in a C++ macro file.
virtual void DrawBorder()
Draw border of around the group frame.
static Pixel_t fgDefaultFrameBackground
virtual void SetX(Int_t x)
virtual Bool_t IsLayoutBroken() const
TGVerticalFrame(const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
static const TGGC * fgDefaultGC
virtual Bool_t HandleDragMotion(TGFrame *)
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
static const TGGC & GetBlackGC()
Get black graphics context.
virtual Bool_t HandleDragDrop(TGFrame *frame, Int_t x, Int_t y, TGLayoutHints *lo)
Handle drop event.
virtual TGFrameElement * FindFrameElement(TGFrame *f) const
Find frame-element holding frame f.
virtual Bool_t HandleSelectionClear(Event_t *)
virtual void Delete(Option_t *="")
Delete this object.
virtual void Move(Int_t x, Int_t y)
Move frame.
virtual Bool_t HandleMotion(Event_t *)
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
virtual void SetWidth(UInt_t w)
Bool_t Contains(Int_t x, Int_t y) const
UInt_t GetMaxHeight() const
virtual void DrawCopy(Handle_t, Int_t, Int_t)
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
const TGResourcePool * GetResourcePool() const
virtual void Print(Option_t *option="") const
Print window id.
const TGResourcePool * GetResourcePool() const
virtual void SetCleanup(Int_t mode=kLocalCleanup)
Turn on automatic cleanup of child frames in dtor.
void GetClassHints(const char *&className, const char *&resourceName) const
virtual void ChangeSubframesBackground(Pixel_t back)
Change background color for this frame and all subframes.
virtual Bool_t HandleSelection(Event_t *)
virtual void DrawClass() const
Draw class inheritance tree of the class to which this object belongs.
TGDimension GetSize() const
virtual void SetEditable(Bool_t)
static Time_t GetLastClick()
Get time of last mouse click.
virtual Bool_t HandleClientMessage(Event_t *event)
Handle a client message.
void GetMWMHints(UInt_t &value, UInt_t &funcs, UInt_t &input) const
virtual Bool_t IsEditable() const
Return kTRUE if frame is being edited.
virtual Bool_t HandleButton(Event_t *)
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
TGMapKey(UInt_t keycode, TGWindow *w)
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a composite frame widget as a C++ statement(s) on output stream out.
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
Mother of all ROOT objects.
virtual ~TGFrame()
Destructor.
virtual const char * GetTitle() const
Returns title of object.
virtual void SetY(Int_t y)
virtual Bool_t HandleDoubleClick(Event_t *)
virtual Pixel_t GetBackground() const
virtual void UnmapWindow()
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
static FontStruct_t GetDefaultFontStruct()
Return default font structure in use.
void SetFrameElement(TGFrameElement *fe)
virtual UInt_t GetDefaultHeight() const
virtual Bool_t SaveFrameAsCodeOrImage()
Opens dialog window allowing user to save the frame contents as a ROOT macro or as an image...
virtual void SetHeight(UInt_t h)
Bool_t IsComposite() const
virtual Bool_t HandleDragDrop(TGFrame *, Int_t, Int_t, TGLayoutHints *)
Int_t GetBorderWidth() const
virtual void ProcessedConfigure(Event_t *event)
UInt_t GetMaxWidth() const
TGFrame & operator=(const TGFrame &)
virtual void SetLayoutBroken(Bool_t=kTRUE)
TString GetMWMvalueString() const
Returns MWM decoration hints as a string - used in SavePrimitive().
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button events.
virtual void SetTitle(TGString *title)
Set or change title of the group frame.
virtual Bool_t HandleSelectionRequest(Event_t *event)
Handle selection request event.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
virtual Bool_t IsLayoutBroken() const
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
virtual void UnmapWindow()
virtual void SetMinHeight(UInt_t h)
const char * GetString() const
TGGroupFrame(const TGGroupFrame &)
virtual Pixel_t GetForeground() const
Return frame foreground color.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void SetEditable(Bool_t on=kTRUE)
Switch ON/OFF edit mode.
virtual void Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw 3D rectangle on the frame border.
Int_t GetTitlePos() const
static const TGGC * fgWhiteGC
virtual void Cleanup()
Cleanup and delete all objects contained in this composite frame.
virtual void DeleteWindow()
Delete window.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
virtual Bool_t BindKey(const TGWindow *w, Int_t keycode, Int_t modifier) const
Bind key to a window.
double norm(double *x, double *p)
virtual void SaveSource(const char *filename="Rootappl.C", Option_t *option="")
Save the GUI main frame widget in a C++ macro file.
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
virtual void DoRedraw()
Redraw the group frame.
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
static const TGGC & GetShadowGC()
Get shadow color graphics context.
virtual void Rename(const char *title)
static const TGGC & GetBckgndGC()
Get background color graphics context.
static Pixel_t GetBlackPixel()
Get black pixel value.
virtual Bool_t HandleDragEnter(TGFrame *)
static Pixel_t GetDefaultSelectedBackground()
Get default selected frame background.
virtual Bool_t HandleCrossing(Event_t *)
Bool_t IsVisible(TGFrameElement *ptr) const
virtual Bool_t HandleSelection(Event_t *)
Int_t GetState(TGFrame *f) const
Get state of sub frame.
virtual TGLayoutManager * GetLayoutManager() const
virtual void SetWindowName(const char *name=0)
Set window name.
virtual void Dump() const
Dump contents of object on stdout.
virtual void SetMaxWidth(UInt_t w)
virtual Bool_t HandleDNDLeave()
void SetWMState(EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.