class TGFrame: public TGWindow, public TQObject


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.


/* */

Function Members (Methods)

public:
TGFrame(TGClient* c, Window_t id, const TGWindow* parent = 0)
TGFrame(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = 0, Pixel_t back = GetDefaultFrameBackground())
virtual~TGFrame()
voidTObject::AbstractMethod(const char* method) const
virtual voidActivate(Bool_t)
voidAddInput(UInt_t emask)
virtual voidTObject::AppendPad(Option_t* option = "")
static Bool_tTQObject::AreAllSignalsBlocked()
Bool_tTQObject::AreSignalsBlocked() const
static Bool_tTQObject::BlockAllSignals(Bool_t b)
Bool_tTQObject::BlockSignals(Bool_t b)
virtual voidTObject::Browse(TBrowser* b)
virtual voidChangeBackground(Pixel_t back)
virtual voidTQObject::ChangedBy(const char* method)SIGNAL
virtual voidChangeOptions(UInt_t options)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
voidTQObject::CollectClassSignalLists(TList& list, TClass* cls)
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
Bool_tContains(Int_t x, Int_t y) const
virtual voidTObject::Copy(TObject& object) const
virtual voidDelete(Option_t* = "")
virtual voidDeleteWindow()
virtual voidTQObject::Destroyed()SIGNAL
virtual voidTGWindow::DestroySubwindows()
virtual voidTGWindow::DestroyWindow()
Bool_tTQObject::Disconnect(const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = 0, void* receiver = 0, const char* slot = 0)
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = 0)
virtual voidTQObject::Disconnected(const char*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidDrawBorder()
virtual voidDrawClass() const
virtual TObject*DrawClone(Option_t* = "") const
virtual voidDrawCopy(Handle_t, Int_t, Int_t)
virtual voidDump() const
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Pixel_tGetBackground() const
static const TGGC&GetBckgndGC()
static const TGGC&GetBlackGC()
static Pixel_tGetBlackPixel()
Int_tGetBorderWidth() const
TGClient*TGObject::GetClient() const
static Int_tTGWindow::GetCounter()
static Pixel_tGetDefaultFrameBackground()
virtual UInt_tGetDefaultHeight() const
static Pixel_tGetDefaultSelectedBackground()
virtual TGDimensionGetDefaultSize() const
virtual UInt_tGetDefaultWidth() const
virtual TDNDData*GetDNDData(Atom_t)
virtual Int_tGetDragType() const
virtual Option_t*TObject::GetDrawOption() const
virtual Int_tGetDropType() const
static Long_tTObject::GetDtorOnly()
virtual UInt_tTGWindow::GetEditDisabled() const
UInt_tGetEventMask() const
virtual Pixel_tGetForeground() const
TGFrameElement*GetFrameElement() const
virtual TGFrame*GetFrameFromPoint(Int_t x, Int_t y)
UInt_tGetHeight() const
static const TGGC&GetHilightGC()
virtual const char*TObject::GetIconName() const
Handle_tTGObject::GetId() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const TGWindow*TGWindow::GetMainFrame() const
UInt_tGetMaxHeight() const
UInt_tGetMaxWidth() const
UInt_tGetMinHeight() const
UInt_tGetMinWidth() const
virtual const char*TGWindow::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual UInt_tGetOptions() const
const TGWindow*TGWindow::GetParent() const
static const TGGC&GetShadowGC()
TGDimensionGetSize() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
static const TGGC&GetWhiteGC()
static Pixel_tGetWhitePixel()
UInt_tGetWidth() const
Int_tGetX() const
Int_tGetY() const
virtual Bool_tHandleButton(Event_t*)
virtual Bool_tHandleClientMessage(Event_t* event)
virtual Bool_tHandleColormapChange(Event_t*)
virtual Bool_tHandleConfigureNotify(Event_t* event)
virtual Bool_tHandleCrossing(Event_t*)
virtual Bool_tHandleDNDDrop(TDNDData*)
virtual Atom_tHandleDNDEnter(Atom_t*)
virtual Bool_tHandleDNDFinished()
virtual Bool_tHandleDNDLeave()
virtual Atom_tHandleDNDPosition(Int_t, Int_t, Atom_t, Int_t, Int_t)
virtual Bool_tHandleDoubleClick(Event_t*)
virtual Bool_tHandleDragDrop(TGFrame*, Int_t, Int_t, TGLayoutHints*)
virtual Bool_tHandleDragEnter(TGFrame*)
virtual Bool_tHandleDragLeave(TGFrame*)
virtual Bool_tHandleDragMotion(TGFrame*)
virtual Bool_tHandleEvent(Event_t* event)
virtual Bool_tTGWindow::HandleExpose(Event_t* event)
virtual Bool_tHandleFocusChange(Event_t*)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tHandleKey(Event_t*)
virtual Bool_tHandleMotion(Event_t*)
virtual Bool_tHandleSelection(Event_t*)
virtual Bool_tHandleSelectionClear(Event_t*)
virtual Bool_tHandleSelectionRequest(Event_t*)
virtual Bool_tTGWindow::HandleTimer(TTimer*)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual ULong_tTGObject::Hash() const
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTGWindow::IconifyWindow()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidInspect() const
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tIsActive() const
virtual Bool_tIsComposite() const
Bool_tIsDNDSource() const
Bool_tIsDNDTarget() const
virtual Bool_tIsEditable() const
virtual Bool_tTGObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tIsLayoutBroken() const
virtual Bool_tTGWindow::IsMapped()
virtual Bool_tTGWindow::IsMapSubwindows() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidLayout()
static voidTQObject::LoadRQ_OBJECT()
virtual voidTGWindow::LowerWindow()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = 0)
virtual voidTObject::ls(Option_t* option = "") const
virtual voidMapRaised()
virtual voidMapSubwindows()
virtual voidMapWindow()
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)SIGNAL
virtual voidMove(Int_t x, Int_t y)
virtual voidMoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0)
virtual Int_tTGWindow::MustCleanup() const
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidPrint(Option_t* option = "") const
virtual voidProcessedConfigure(Event_t* event)SIGNAL
virtual voidProcessedEvent(Event_t* event)SIGNAL
virtual Bool_tProcessMessage(Long_t, Long_t, Long_t)
virtual voidTGWindow::RaiseWindow()
virtual Int_tTObject::Read(const char* name)
virtual voidReallyDelete()
virtual voidTObject::RecursiveRemove(TObject* obj)
voidRemoveInput(UInt_t emask)
virtual voidReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual voidTGWindow::RequestFocus()
voidTObject::ResetBit(UInt_t f)
virtual voidResize(TGDimension size)
virtual voidResize(UInt_t w = 0, UInt_t h = 0)
virtual voidTGObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
voidSaveUserColor(ostream& out, Option_t*)
virtual voidSendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
virtual voidSetBackgroundColor(Pixel_t back)
virtual voidTGWindow::SetBackgroundPixmap(Pixmap_t pixmap)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidSetCleanup(Int_t = kLocalCleanup)
voidSetDNDSource(Bool_t onoff)
voidSetDNDTarget(Bool_t onoff)
virtual voidSetDragType(Int_t type)
virtual voidSetDrawOption(Option_t* = "")
virtual voidSetDropType(Int_t type)
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEditable(Bool_t)
virtual voidTGWindow::SetEditDisabled(UInt_t on = kEditDisable)
virtual voidSetForegroundColor(Pixel_t)
voidSetFrameElement(TGFrameElement* fe)
virtual voidSetHeight(UInt_t h)
virtual voidSetLayoutBroken(Bool_t = kTRUE)
virtual voidTGWindow::SetMapSubwindows(Bool_t)
virtual voidSetMaxHeight(UInt_t h)
virtual voidSetMaxWidth(UInt_t w)
virtual voidSetMinHeight(UInt_t h)
virtual voidSetMinWidth(UInt_t w)
virtual voidTGWindow::SetName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetSize(const TGDimension& s)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetWidth(UInt_t w)
virtual voidTGWindow::SetWindowName(const char* name = 0)
virtual voidSetX(Int_t x)
virtual voidSetY(Int_t y)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidUnmapWindow()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidDoRedraw()
virtual voidDraw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
static Time_tGetLastClick()
TStringGetOptionString() const
const TGResourcePool*GetResourcePool() const
virtual void*GetSender()
virtual const char*TQObject::GetSenderClassName() const
voidTObject::MakeZombie()
virtual voidStartGuiBuilding(Bool_t on = kTRUE)
private:
TGFrame(const TGFrame&)
TGFrame&operator=(const TGFrame&)

Data Members

public:
enum { kDeleteWindowCalled
};
enum TGWindow::EEditMode { kEditEnable
kEditDisable
kEditDisableEvents
kEditDisableGrab
kEditDisableLayout
kEditDisableResize
kEditDisableHeight
kEditDisableWidth
kEditDisableBtnEnable
kEditDisableKeyEnable
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
Pixel_tfBackgroundframe background color
Int_tfBorderWidthframe border width
TGClient*TGObject::fClientConnection to display server
Int_tfDNDStateEDNDFlags
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
UInt_tfEventMaskcurrenty active event mask
TGFrameElement*fFEpointer to frame element
UInt_tfHeightframe height
Handle_tTGObject::fIdX11/Win32 Window identifier
TList*TQObject::fListOfConnections! list of connections to this object
TList*TQObject::fListOfSignals! list of signals from this object
UInt_tfMaxHeightmaximal frame height
UInt_tfMaxWidthmaximal frame width
UInt_tfMinHeightminimal frame height
UInt_tfMinWidthminimal frame width
TStringTGWindow::fNamename of the window used in SavePrimitive()
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
UInt_tfOptionsframe options
const TGWindow*TGWindow::fParentParent window
Bool_tTQObject::fSignalsBlocked! flag used for suppression of signals
UInt_tfWidthframe width
Int_tfXframe x position
Int_tfYframe y position
static Bool_tTQObject::fgAllSignalsBlockedflag used for suppression of all signals
static const TGGC*fgBckgndGC
static const TGGC*fgBlackGC
static Pixel_tfgBlackPixel
static Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
static Window_tfgDbw
static Int_tfgDbx
static Int_tfgDby
static Pixel_tfgDefaultFrameBackground
static Pixel_tfgDefaultSelectedBackground
static const TGGC*fgHilightGC
static Bool_tfgInit
static UInt_tfgLastButton
static Time_tfgLastClick
static const TGGC*fgShadowGC
static UInt_tfgUserColor
static const TGGC*fgWhiteGC
static Pixel_tfgWhitePixel

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGFrame(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = 0, Pixel_t back = GetDefaultFrameBackground())
 Create a TGFrame object. Options is an OR of the EFrameTypes.
TGFrame(TGClient* c, Window_t id, const TGWindow* parent = 0)
 Create a frame using an externally created window. For example
 to register the root window (called by TGClient), or a window
 created via TVirtualX::InitWindow() (id is obtained with
 TVirtualX::GetWindowID()).
~TGFrame()
 Destructor.
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 ChangeBackground(Pixel_t back)
 Change frame background color.
Pixel_t GetForeground() const
 Return frame foreground color.
void SetBackgroundColor(Pixel_t back)
 Set background color (override from TGWindow base class).
 Same effect as ChangeBackground().
void ChangeOptions(UInt_t options)
 Change frame options. Options is an OR of the EFrameTypes.
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.
void Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw 3D rectangle on the frame border.
void DrawBorder()
 Draw frame border.
void DoRedraw()
 Redraw the frame.
Bool_t HandleConfigureNotify(Event_t* event)
 This event is generated when the frame is resized.
Bool_t HandleEvent(Event_t* event)
 Handle all frame events. Events are dispatched to the specific
 event handlers.
TGDimension GetDefaultSize() const
   std::cout << fWidth << "x" << fHeight << std::endl;
void Move(Int_t x, Int_t y)
 Move frame.
void Resize(UInt_t w = 0, UInt_t h = 0)
 Resize the frame.
 If w=0 && h=0 - Resize to deafult size
void Resize(TGDimension size)
 Resize the frame.
void MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0)
 Move and/or resize the frame.
 If w=0 && h=0 - Resize to deafult size
void SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
 Send message (i.e. event) to window w. Message is encoded in one long
 as message type and up to two long parameters.
Bool_t HandleClientMessage(Event_t* event)
 Handle a client message. Client messages are the ones sent via
 TGFrame::SendMessage (typically by widgets).
ULong_t GetDefaultFrameBackground()
 Get default frame background.
ULong_t GetDefaultSelectedBackground()
 Get default selected frame background.
ULong_t GetWhitePixel()
 Get white pixel value.
ULong_t GetBlackPixel()
 Get black pixel value.
const TGGC & GetBlackGC()
 Get black graphics context.
const TGGC & GetWhiteGC()
 Get white graphics context.
const TGGC & GetHilightGC()
 Get highlight color graphics context.
const TGGC & GetShadowGC()
 Get shadow color graphics context.
const TGGC & GetBckgndGC()
 Get background color graphics context.
Time_t GetLastClick()
 Get time of last mouse click.
void Print(Option_t* option = "") const
 Print window id.
void SetDragType(Int_t type)
 SetDragType
void SetDropType(Int_t type)
 SetDropType
Int_t GetDragType() const
 Returns drag source type.
 If frame is not "draggable" - return zero
Int_t GetDropType() const
 Returns drop target type.
 If frame cannot accept drop - return zero
void StartGuiBuilding(Bool_t on = kTRUE)
 Go into GUI building mode.
void SaveUserColor(ostream& out, Option_t* )
 Save a user color in a C++ macro file - used in SavePrimitive().
TString GetOptionString() const
 Returns a frame option string - used in SavePrimitive().
void SavePrimitive(ostream& out, Option_t* option = "")
 Save a frame widget as a C++ statement(s) on output stream out.
void * GetSender()
{ return this; }
const TGResourcePool * GetResourcePool() const
{ return fClient->GetResourcePool(); }
TGFrame(const TGFrame& )
TGFrame& operator=(const TGFrame& )
void ReallyDelete()
{ delete this; }
UInt_t GetEventMask() const
{ return fEventMask; }
Bool_t HandleButton(Event_t* )
{ return kFALSE; }
Bool_t HandleDoubleClick(Event_t* )
{ return kFALSE; }
Bool_t HandleCrossing(Event_t* )
{ return kFALSE; }
Bool_t HandleMotion(Event_t* )
{ return kFALSE; }
Bool_t HandleKey(Event_t* )
{ return kFALSE; }
Bool_t HandleFocusChange(Event_t* )
{ return kFALSE; }
Bool_t HandleSelection(Event_t* )
{ return kFALSE; }
Bool_t HandleSelectionRequest(Event_t* )
{ return kFALSE; }
Bool_t HandleSelectionClear(Event_t* )
{ return kFALSE; }
Bool_t HandleColormapChange(Event_t* )
{ return kFALSE; }
Bool_t HandleDragEnter(TGFrame* )
{ return kFALSE; }
Bool_t HandleDragLeave(TGFrame* )
{ return kFALSE; }
Bool_t HandleDragMotion(TGFrame* )
{ return kFALSE; }
Bool_t HandleDragDrop(TGFrame* , Int_t , Int_t , TGLayoutHints* )
{ return kFALSE; }
void ProcessedConfigure(Event_t* event)
{ Emit("ProcessedConfigure(Event_t*)", (Long_t)event); }
void ProcessedEvent(Event_t* event)
{ Emit("ProcessedEvent(Event_t*)", (Long_t)event); }
Bool_t ProcessMessage(Long_t , Long_t , Long_t )
{ return kFALSE; }
UInt_t GetDefaultWidth() const
{ return GetDefaultSize().fWidth; }
UInt_t GetDefaultHeight() const
{ return GetDefaultSize().fHeight; }
Pixel_t GetBackground() const
{ return fBackground; }
void SetForegroundColor(Pixel_t )
{ }
UInt_t GetOptions() const
{ return fOptions; }
void Layout()
{ }
void MapSubwindows()
 Redefine this in TGCompositeFrame!
{ }
void ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
{ TGWindow::ReparentWindow(p, x, y); Move(x, y); }
void MapWindow()
{ TGWindow::MapWindow(); if (fFE) fFE->fState |= kIsVisible; }
void MapRaised()
{ TGWindow::MapRaised(); if (fFE) fFE->fState |= kIsVisible; }
void UnmapWindow()
{ TGWindow::UnmapWindow(); if (fFE) fFE->fState &= ~kIsVisible; }
void DrawCopy(Handle_t , Int_t , Int_t )
{ }
void Activate(Bool_t )
{ }
Bool_t IsActive() const
{ return kFALSE; }
Bool_t IsComposite() const
{ return kFALSE; }
Bool_t IsEditable() const
{ return kFALSE; }
void SetEditable(Bool_t )
{}
void SetLayoutBroken(Bool_t = kTRUE)
{}
Bool_t IsLayoutBroken() const
{ return kFALSE; }
void SetCleanup(Int_t = kLocalCleanup)
{ /* backward compatebility */ }
UInt_t GetWidth() const
{ return fWidth; }
UInt_t GetHeight() const
{ return fHeight; }
UInt_t GetMinWidth() const
{ return fMinWidth; }
UInt_t GetMinHeight() const
{ return fMinHeight; }
UInt_t GetMaxWidth() const
{ return fMaxWidth; }
UInt_t GetMaxHeight() const
{ return fMaxHeight; }
TGDimension GetSize() const
{ return TGDimension(fWidth, fHeight); }
Int_t GetX() const
{ return fX; }
Int_t GetY() const
{ return fY; }
Int_t GetBorderWidth() const
{ return fBorderWidth; }
TGFrameElement * GetFrameElement() const
{ return fFE; }
void SetFrameElement(TGFrameElement* fe)
{ fFE = fe; }
Bool_t Contains(Int_t x, Int_t y) const
{ return ((x >= 0) && (x < (Int_t)fWidth) && (y >= 0) && (y < (Int_t)fHeight)); }
TGFrame * GetFrameFromPoint(Int_t x, Int_t y)
{ return (Contains(x, y) ? this : 0); }
void SetX(Int_t x)
 Modifiers (without graphic update)
{ fX = x; }
void SetY(Int_t y)
{ fY = y; }
void SetWidth(UInt_t w)
{ fWidth = w; }
void SetHeight(UInt_t h)
{ fHeight = h; }
void SetMinWidth(UInt_t w)
{ fMinWidth = w; }
void SetMinHeight(UInt_t h)
{ fMinHeight = h; }
void SetMaxWidth(UInt_t w)
{ fMaxWidth = w; }
void SetMaxHeight(UInt_t h)
{ fMaxHeight = h; }
void SetSize(const TGDimension& s)
{ fWidth = s.fWidth; fHeight = s.fHeight; }
void Delete(Option_t* = "")
 dummy to remove from context menu
{ }
TObject * DrawClone(Option_t* = "") const
{ return 0; }
void DrawClass() const
{ }
void Dump() const
{ }
void Inspect() const
{ }
void SetDrawOption(Option_t* = "")
{ }
void SetDNDSource(Bool_t onoff)
 drag and drop...
{ if (onoff) fDNDState |= kIsDNDSource; else fDNDState &= ~kIsDNDSource; }
void SetDNDTarget(Bool_t onoff)
{ if (onoff) fDNDState |= kIsDNDTarget; else fDNDState &= ~kIsDNDTarget; }
Bool_t IsDNDSource() const
{ return fDNDState & kIsDNDSource; }
Bool_t IsDNDTarget() const
{ return fDNDState & kIsDNDTarget; }
TDNDData * GetDNDData(Atom_t )
{ return 0; }
Bool_t HandleDNDDrop(TDNDData* )
{ return kFALSE; }
Atom_t HandleDNDPosition(Int_t , Int_t , Atom_t , Int_t , Int_t )
{ return kNone; }
Bool_t HandleDNDLeave()
{ return kFALSE; }
Bool_t HandleDNDFinished()
{ return kFALSE; }

Author: Fons Rademakers 03/01/98
Last change: root/gui:$Id: TGFrame.h 25391 2008-09-12 12:40:48Z rdm $
Last generated: 2008-12-03 09:32
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

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.