TGMainFrame
class description - source file - inheritance tree
protected:
virtual const TGWindow* GetMainFrame()
public:
TGMainFrame TGMainFrame(TGWindow* p, UInt_t w, UInt_t h, UInt_t options = kMainFrame|kVerticalFrame)
TGMainFrame TGMainFrame(TGMainFrame&)
virtual void ~TGMainFrame()
virtual Bool_t BindKey(TGWindow* w, Int_t keycode, Int_t modifier)
TClass* Class()
virtual void CloseWindow()
virtual Bool_t HandleClientMessage(Event_t* event)
virtual Bool_t HandleKey(Event_t* event)
virtual TClass* IsA()
virtual void RemoveBind(TGWindow* w, Int_t keycode, Int_t modifier)
void SetClassHints(char* className, char* resourceName)
void SetIconName(char* name)
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
void SetWindowName(char* name)
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)
protected:
TList* fBindList list with key bindings
See also
-
TGTransientFrame, TRootBrowser, TRootCanvas, TRootControlBar
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 cildren 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.
/*
*/
TGMainFrame(const TGWindow *p, UInt_t w, UInt_t h,
UInt_t options) : TGCompositeFrame(p, w, h, options | kMainFrame)
Create a top level main frame. A main frame interacts
with the window manager.
~TGMainFrame()
TGMainFrame destructor.
Bool_t HandleKey(Event_t *event)
Handle keyboard events.
Bool_t BindKey(const TGWindow *w, Int_t keycode, Int_t modifier) const
Bind key to a window.
void RemoveBind(const TGWindow *, Int_t keycode, Int_t modifier) const
Remove key binding.
Bool_t HandleClientMessage(Event_t *event)
Handle client messages sent to this frame.
void CloseWindow()
Close 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).
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.
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 SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void SetWMPosition(Int_t x, Int_t y)
Give the window manager a window position hint.
void SetWMSize(UInt_t w, UInt_t h)
Give the window manager a window size hint.
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. Also
specify via winc and hinc the resize increments.
void SetWMState(EInitialState state)
Set the initial state of the window. Either kNormalState or kIconicState.
Inline Functions
const TGWindow* GetMainFrame()
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
TGMainFrame TGMainFrame(TGMainFrame&)
Author: Fons Rademakers 03/01/98
Last update: 2.21/06 15/02/99 15.31.41 by Fons Rademakers
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - 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.