library: libGui #include "TGFrame.h" |
TGMainFrame
class description - header file - source file - inheritance tree (.pdf)
protected:
TString GetMWMfuncString() const
TString GetMWMinpString() const
TString GetMWMvalueString() const
TGMainFrame& operator=(const TGMainFrame&)
public:
TGMainFrame(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kVerticalFrame)
TGMainFrame(const TGMainFrame&)
virtual ~TGMainFrame()
virtual Bool_t BindKey(const TGWindow* w, Int_t keycode, Int_t modifier) const
static TClass* Class()
virtual void CloseWindow()
void DontCallClose()
TList* GetBindList() const
void GetClassHints(const char*& className, const char*& resourceName) const
virtual const char* GetIconName() const
const char* GetIconPixmap() const
void GetMWMHints(UInt_t& value, UInt_t& funcs, UInt_t& input) const
const char* GetWindowName() const
void GetWMPosition(Int_t& x, Int_t& y) const
void GetWMSize(UInt_t& w, UInt_t& h) const
void GetWMSizeHints(UInt_t& wmin, UInt_t& hmin, UInt_t& wmax, UInt_t& hmax, UInt_t& winc, UInt_t& hinc) const
EInitialState GetWMState() const
virtual Bool_t HandleClientMessage(Event_t* event)
virtual Bool_t HandleKey(Event_t* event)
virtual TClass* IsA() const
virtual void RemoveBind(const TGWindow* w, Int_t keycode, Int_t modifier) const
virtual void SavePrimitive(ostream& out, Option_t* option = "")
virtual void SaveSource(const char* filename = "Rootappl.C", Option_t* option = "")
virtual void SendCloseMessage()
void SetClassHints(const char* className, const char* resourceName)
void SetIconName(const char* name)
const TGPicture* SetIconPixmap(const char* iconName)
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
virtual void SetWindowName(const char* name = "0")
void SetWMPosition(Int_t x, Int_t y)
void SetWMSize(UInt_t w, UInt_t h)
void SetWMSizeHints(UInt_t wmin, UInt_t hmin, UInt_t wmax, UInt_t hmax, UInt_t winc, UInt_t hinc)
void SetWMState(EInitialState state)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TList* fBindList list with key bindings
TString fWindowName window name
TString fIconName icon name
TString fIconPixmap icon pixmap name
TString fClassName WM class name
TString fResourceName WM resource name
UInt_t fMWMValue MWM decoration hints
UInt_t fMWMFuncs MWM functions
UInt_t fMWMInput MWM input modes
Int_t fWMX WM x position
Int_t fWMY WM y position
UInt_t fWMWidth WM width
UInt_t fWMHeight WM height
UInt_t fWMMinWidth WM min width
UInt_t fWMMinHeight WM min height
UInt_t fWMMaxWidth WM max width
UInt_t fWMMaxHeight WM max height
UInt_t fWMWidthInc WM width increments
UInt_t fWMHeightInc WM height increments
EInitialState fWMInitState WM initial state
public:
static const enum TGMainFrame:: kDontCallClose
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 SendCloseMessage()
Send close message to self. This method should be called from
a button to close this window.
void CloseWindow()
Close and delete main frame. We get here in response to ALT+F4 or
a window manager close command. To terminate the application when this
happens override this method and call gApplication->Terminate(0) or
make a connection to this signal (if after the slot this method
should not be called call DontCallClose() in the slot).
By default the window will be deleted.
void DontCallClose()
Typically call this method in the slot connected to the CloseWindow()
signal to prevent the calling of the default or any derived CloseWindow()
methods to prevent premature or double deletion of this window.
void SetWindowName(const char *name)
Set window name. This is typically done via the window manager.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
const TGPicture * SetIconPixmap(const char *iconName)
Set window icon pixmap by name. This is typically done via the window
manager.
void SetClassHints(const char *className, const char *resourceName)
Set the windows class and resource name. Used to get the right
resources from the resource database. However, ROOT applications
will typically use the .rootrc file for this.
void SetWMState(EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
void SaveSource(const char *filename, Option_t *option)
Save the GUI main frame widget in a C++ macro file.
void GetClassHints(const char *&className, const char *&resourceName)
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.