225 {
Emit(
"ProcessedConfigure(Event_t*)", (
Long_t)event); }
227 {
Emit(
"ProcessedEvent(Event_t*)", (
Long_t)event); }
286 {
return ((x >= 0) && (x < (
Int_t)fWidth) && (y >= 0) && (y < (
Int_t)fHeight)); }
288 {
return (
Contains(x, y) ?
this : 0); }
403 virtual void RemoveAll();
404 virtual void RemoveFrame(
TGFrame *f);
405 virtual void ShowFrame(
TGFrame *f);
406 virtual void HideFrame(
TGFrame *f);
417 {
return fLayoutBroken || !fLayoutManager; }
421 virtual void Cleanup();
426 virtual void ChangeSubframesBackground(
Pixel_t back);
428 virtual void SavePrimitiveSubframes(std::ostream &out,
Option_t *option =
"");
469 enum { kDontCallClose =
BIT(14) };
504 TString GetMWMvalueString()
const;
505 TString GetMWMfuncString()
const;
506 TString GetMWMinpString()
const;
523 virtual Bool_t SaveFrameAsCodeOrImage();
524 virtual void SendCloseMessage();
525 virtual void CloseWindow();
527 void DontCallClose();
529 void SetIconName(
const char *
name);
530 const TGPicture *SetIconPixmap(
const char *iconName);
531 void SetIconPixmap(
char **xpm_array);
532 void SetClassHints(
const char *className,
const char *resourceName);
548 { className = fClassName.
Data(); resourceName = fResourceName.
Data(); }
550 { value = fMWMValue; funcs = fMWMFuncs; input = fMWMInput; }
555 { wmin = fWMMinWidth; hmin = fWMMinHeight; wmax = fWMMaxWidth;
556 hmax = fWMMaxHeight; winc = fWMWidthInc; hinc = fWMHeightInc; }
560 virtual void SaveSource(
const char *filename =
"Rootappl.C",
Option_t *option =
"");
593 virtual void SaveSource(
const char *filename =
"Rootdlog.C",
Option_t *option =
"");
631 static const TGGC &GetDefaultGC();
647 virtual void SetTitle(
TGString *title);
648 virtual void SetTitle(
const char *title);
649 virtual void Rename(
const char *title) { SetTitle(title); }
659 Bool_t HasOwnFont()
const;
const TGWindow * GetMain() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
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.
virtual void MapSubwindows()
void GetClassHints(const char *&className, const char *&resourceName) const
TGLayoutManager * fLayoutManager
Int_t GetBorderWidth() const
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
virtual Bool_t HandleFocusChange(Event_t *)
virtual UInt_t GetOptions() 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 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.
virtual Bool_t IsMapSubwindows() const
virtual TObject * DrawClone(Option_t *="") const
Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad...
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 Dump() const
Dump contents of object on stdout.
static UInt_t fgUserColor
virtual void Print(Option_t *option="") const
Print window id.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
static Pixel_t GetWhitePixel()
Get white pixel value.
virtual void SetDropType(Int_t type)
SetDropType.
virtual void SetForegroundColor(Pixel_t)
This is the ROOT implementation of the Qt object communication mechanism (see also http://www...
const TGResourcePool * GetResourcePool() const
virtual void DrawBorder()
Draw frame border.
static Pixel_t fgWhitePixel
virtual void SetMapSubwindows(Bool_t on)
virtual UInt_t GetDefaultHeight() const
static Pixel_t fgDefaultSelectedBackground
EInitialState GetWMState() const
UInt_t GetMinHeight() const
virtual Bool_t IsComposite() const
virtual Bool_t HandleColormapChange(Event_t *)
static const TGGC * fgShadowGC
virtual void Inspect() const
Dump contents of this object in a graphics canvas.
UInt_t GetMinWidth() const
virtual Bool_t HandleDNDFinished()
virtual Bool_t HandleEvent(Event_t *event)
Handle all frame events.
UInt_t GetMaxWidth() const
FontStruct_t GetFontStruct() const
void SetDNDTarget(Bool_t onoff)
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)
#define ClassDef(name, id)
static UInt_t fgLastButton
static const TGGC * fgBckgndGC
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
NSPoint TranslateCoordinates(NSView< X11Window > *fromView, NSView< X11Window > *toView, NSPoint sourcePoint)
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...
Bool_t Contains(Int_t x, Int_t y) const
virtual Bool_t IsLayoutBroken() 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...
virtual Pixel_t GetForeground() const
Return frame foreground color.
static Pixel_t fgBlackPixel
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.
virtual void Activate(Bool_t)
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
virtual TList * GetList() const
static const TGFont * fgDefaultFont
virtual Bool_t HandleSelectionRequest(Event_t *)
virtual TDNDData * GetDNDData(Atom_t)
void GetWMPosition(Int_t &x, Int_t &y) const
virtual void SetMaxHeight(UInt_t h)
virtual TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
UInt_t GetEventMask() const
virtual void ReallyDelete()
Bool_t IsDNDTarget() const
void SetDNDSource(Bool_t onoff)
virtual Atom_t HandleDNDEnter(Atom_t *)
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 SetSize(const TGDimension &s)
static const TGGC * fgHilightGC
virtual void ProcessedEvent(Event_t *event)
virtual UInt_t GetDefaultWidth() const
virtual Bool_t HandleMotion(Event_t *)
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
void GetWMSize(UInt_t &w, UInt_t &h) const
void GetMWMHints(UInt_t &value, UInt_t &funcs, UInt_t &input) const
static const TGGC & GetWhiteGC()
Get white graphics context.
virtual void * GetSender()
virtual void SetMinWidth(UInt_t w)
virtual Int_t GetDropType() const
Returns drop target type.
virtual Bool_t HandleFocusChange(Event_t *)
static TGLayoutHints * fgDefaultHints
virtual Bool_t IsLayoutBroken() const
virtual UInt_t GetDefaultWidth() const
virtual Pixel_t GetBackground() const
GContext_t GetNormGC() const
static Pixel_t fgDefaultFrameBackground
Bool_t IsArranged(TGFrameElement *ptr) const
virtual const char * GetTitle() const
Returns title of object.
virtual void SetX(Int_t x)
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 IsEditable() const
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.
const char * GetString() const
virtual Bool_t HandleMotion(Event_t *)
TGDimension GetSize() const
virtual Bool_t HandleConfigureNotify(Event_t *event)
This event is generated when the frame is resized.
virtual UInt_t GetDefaultHeight() const
const char * GetIconPixmap() const
virtual void SetWidth(UInt_t w)
virtual void DrawCopy(Handle_t, Int_t, Int_t)
virtual void DrawClass() const
Draw class inheritance tree of the class to which this object belongs.
Int_t GetTitlePos() const
virtual Bool_t HandleSelection(Event_t *)
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.
virtual Bool_t HandleButton(Event_t *)
virtual void SetCleanup(Int_t=kLocalCleanup)
virtual Bool_t IsActive() const
TGMapKey(UInt_t keycode, TGWindow *w)
Mother of all ROOT objects.
virtual ~TGFrame()
Destructor.
virtual void SetY(Int_t y)
virtual Bool_t HandleDoubleClick(Event_t *)
Bool_t IsVisible(TGFrameElement *ptr) const
virtual TGLayoutManager * GetLayoutManager() const
virtual void UnmapWindow()
virtual void SetEditDisabled(UInt_t on=kEditDisable)
void SetFrameElement(TGFrameElement *fe)
Bool_t IsComposite() const
virtual void SetHeight(UInt_t h)
virtual Bool_t HandleDragDrop(TGFrame *, Int_t, Int_t, TGLayoutHints *)
virtual void ProcessedConfigure(Event_t *event)
TGFrame & operator=(const TGFrame &)
virtual void SetLayoutBroken(Bool_t=kTRUE)
const char * GetWindowName() const
Bool_t IsDNDSource() const
TGFrameElement * GetFrameElement() const
TList * GetBindList() const
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
virtual void UnmapWindow()
void GetWMSizeHints(UInt_t &wmin, UInt_t &hmin, UInt_t &wmax, UInt_t &hmax, UInt_t &winc, UInt_t &hinc) const
virtual void SetMinHeight(UInt_t h)
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
UInt_t GetMaxHeight() const
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.
static const TGGC * fgWhiteGC
const TGResourcePool * GetResourcePool() const
virtual void DeleteWindow()
Delete window.
double norm(double *x, double *p)
virtual void ChangeOptions(UInt_t options)
Change frame options. Options is an OR of the EFrameTypes.
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.
int main(int argc, char **argv)
virtual Int_t GetDragType() const
Returns drag source type.
virtual Bool_t HandleCrossing(Event_t *)
virtual Bool_t HandleSelection(Event_t *)
virtual void SetWindowName(const char *name=0)
Set window name.
virtual void SetMaxWidth(UInt_t w)
virtual Int_t MustCleanup() const
virtual Bool_t HandleDNDLeave()
const char * Data() const