library: libGui #include "TGFrame.h" |
TGFrame
class description - header file - source file - inheritance tree (.pdf)
protected:
virtual void DoRedraw()
virtual void Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
static Time_t GetLastClick()
TString GetOptionString() const
const TGResourcePool* GetResourcePool() const
virtual void* GetSender()
virtual void StartGuiBuilding(Bool_t on = kTRUE)
public:
TGFrame(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = 0, Pixel_t back = GetDefaultFrameBackground())
TGFrame(TGClient* c, Window_t id, const TGWindow* parent = 0)
TGFrame(const TGFrame& tgf)
virtual ~TGFrame()
virtual void Activate(Bool_t)
void AddInput(UInt_t emask)
virtual void ChangeBackground(Pixel_t back)
virtual void ChangeOptions(UInt_t options)
static TClass* Class()
Bool_t Contains(Int_t x, Int_t y) const
virtual void Delete(Option_t* = "")
virtual void DeleteWindow()
virtual void DrawBorder()
virtual void DrawClass() const
virtual TObject* DrawClone(Option_t* = "") const
virtual void DrawCopy(Handle_t, Int_t, Int_t)
virtual void Dump() const
virtual Pixel_t GetBackground() const
static const TGGC& GetBckgndGC()
static const TGGC& GetBlackGC()
static Pixel_t GetBlackPixel()
Int_t GetBorderWidth() const
static Pixel_t GetDefaultFrameBackground()
virtual UInt_t GetDefaultHeight() const
static Pixel_t GetDefaultSelectedBackground()
virtual TGDimension GetDefaultSize() const
virtual UInt_t GetDefaultWidth() const
virtual Int_t GetDragType() const
virtual Int_t GetDropType() const
UInt_t GetEventMask() const
virtual Pixel_t GetForeground() const
TGFrameElement* GetFrameElement() const
virtual TGFrame* GetFrameFromPoint(Int_t x, Int_t y)
UInt_t GetHeight() const
static const TGGC& GetHilightGC()
UInt_t GetMaxHeight() const
UInt_t GetMaxWidth() const
UInt_t GetMinHeight() const
UInt_t GetMinWidth() const
virtual UInt_t GetOptions() const
static const TGGC& GetShadowGC()
TGDimension GetSize() const
static const TGGC& GetWhiteGC()
static Pixel_t GetWhitePixel()
UInt_t GetWidth() const
Int_t GetX() const
Int_t GetY() const
virtual Bool_t HandleButton(Event_t*)
virtual Bool_t HandleClientMessage(Event_t* event)
virtual Bool_t HandleColormapChange(Event_t*)
virtual Bool_t HandleConfigureNotify(Event_t* event)
virtual Bool_t HandleCrossing(Event_t*)
virtual Bool_t HandleDoubleClick(Event_t*)
virtual Bool_t HandleDragDrop(TGFrame*, Int_t, Int_t, TGLayoutHints*)
virtual Bool_t HandleDragEnter(TGFrame*)
virtual Bool_t HandleDragLeave(TGFrame*)
virtual Bool_t HandleDragMotion(TGFrame*)
virtual Bool_t HandleEvent(Event_t* event)
virtual Bool_t HandleFocusChange(Event_t*)
virtual Bool_t HandleKey(Event_t*)
virtual Bool_t HandleMotion(Event_t*)
virtual Bool_t HandleSelection(Event_t*)
virtual Bool_t HandleSelectionClear(Event_t*)
virtual Bool_t HandleSelectionRequest(Event_t*)
virtual void Inspect() const
virtual TClass* IsA() const
virtual Bool_t IsActive() const
virtual Bool_t IsComposite() const
virtual Bool_t IsEditable() const
virtual Bool_t IsLayoutBroken() const
virtual void Layout()
virtual void MapRaised()
virtual void MapSubwindows()
virtual void MapWindow()
virtual void Move(Int_t x, Int_t y)
virtual void MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0)
TGFrame& operator=(const TGFrame&)
virtual void Print(Option_t* option = "") const
virtual void ProcessedEvent(Event_t* event)
virtual Bool_t ProcessMessage(Long_t, Long_t, Long_t)
virtual void ReallyDelete()
void RemoveInput(UInt_t emask)
virtual void ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual void Resize(UInt_t w = 0, UInt_t h = 0)
virtual void Resize(TGDimension size)
virtual void SavePrimitive(ostream& out, Option_t* option = "")
void SaveUserColor(ostream& out, Option_t*)
virtual void SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
virtual void SetBackgroundColor(Pixel_t back)
virtual void SetCleanup(Int_t = kLocalCleanup)
virtual void SetDragType(Int_t type)
virtual void SetDrawOption(Option_t* = "")
virtual void SetDropType(Int_t type)
virtual void SetEditable(Bool_t)
virtual void SetForegroundColor(Pixel_t)
void SetFrameElement(TGFrameElement* fe)
virtual void SetHeight(UInt_t h)
virtual void SetLayoutBroken(Bool_t = kTRUE)
virtual void SetMaxHeight(UInt_t h)
virtual void SetMaxWidth(UInt_t w)
virtual void SetMinHeight(UInt_t h)
virtual void SetMinWidth(UInt_t w)
virtual void SetSize(const TGDimension& s)
virtual void SetWidth(UInt_t w)
virtual void SetX(Int_t x)
virtual void SetY(Int_t y)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
virtual void UnmapWindow()
protected:
Int_t fX frame x position
Int_t fY frame y position
UInt_t fWidth frame width
UInt_t fHeight frame height
UInt_t fMinWidth minimal frame width
UInt_t fMinHeight minimal frame height
UInt_t fMaxWidth maximal frame width
UInt_t fMaxHeight maximal frame height
Int_t fBorderWidth frame border width
UInt_t fOptions frame options
Pixel_t fBackground frame background color
UInt_t fEventMask currenty active event mask
TGFrameElement* fFE pointer to frame element
static Bool_t fgInit
static Pixel_t fgDefaultFrameBackground
static Pixel_t fgDefaultSelectedBackground
static Pixel_t fgWhitePixel
static Pixel_t fgBlackPixel
static const TGGC* fgBlackGC
static const TGGC* fgWhiteGC
static const TGGC* fgHilightGC
static const TGGC* fgShadowGC
static const TGGC* fgBckgndGC
static Time_t fgLastClick
static UInt_t fgLastButton
static Int_t fgDbx
static Int_t fgDby
static Window_t fgDbw
static UInt_t fgUserColor
TGFrame, TGCompositeFrame, TGVerticalFrame, TGHorizontalFrame,
TGMainFrame, TGTransientFrame and TGGroupFrame
The frame classes describe the different "dressed" GUI windows.
The TGFrame class is a subclasses of TGWindow, and is used as base
class for some simple widgets (buttons, labels, etc.).
It provides:
- position & dimension fields
- an 'options' attribute (see constant above)
- a generic event handler
- a generic layout mechanism
- a generic border
The TGCompositeFrame class is the base class for composite widgets
(menu bars, list boxes, etc.).
It provides:
- a layout manager
- a frame container (TList *)
The TGVerticalFrame and TGHorizontalFrame are composite frame that
layout their children in vertical or horizontal way.
The TGMainFrame class defines top level windows that interact with
the system Window Manager.
The TGTransientFrame class defines transient windows that typically
are used for dialogs windows.
The TGGroupFrame is a composite frame with a border and a title.
It is typically used to group a number of logically related widgets
visually together.
void DeleteWindow()
Delete window. Use single shot timer to call final delete method.
We use this indirect way since deleting the window in its own
execution "thread" can cause side effects because frame methods
can still be called while the window object has already been deleted.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
void RemoveInput(UInt_t emask)
Remove events specified in emask from the events the frame should handle.
Int_t GetDragType()
Returns drag source type.
If frame is not "draggable" - return zero
Int_t GetDropType()
Returns drop target type.
If frame cannot accept drop - return zero
void SetX(Int_t x)
Modifiers (without graphic update)
void Delete(Option_t * /*option*/ ="")
dummy to remove from context menu
Author: Fons Rademakers 03/01/98
Last update: root/gui:$Name: $:$Id: TGFrame.cxx,v 1.137 2006/07/09 05:27:54 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.