library: libGui #include "TGFrame.h" |
TGTransientFrame
class description - source file - inheritance tree (.pdf)
public:
TGTransientFrame(const TGWindow* p = 0, const TGWindow* main = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kVerticalFrame)
TGTransientFrame(const TGTransientFrame&)
~TGTransientFrame()
virtual void CenterOnParent(Bool_t croot = kTRUE, TGTransientFrame::EPlacement pos = kCenter)
static TClass* Class()
const TGWindow* GetMain() const
virtual TClass* IsA() const
virtual void SavePrimitive(ofstream& out, Option_t* option)
virtual void SaveSource(const char* filename = "Rootdlog.C", Option_t* option = "")
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
const TGWindow* fMain window over which to popup dialog
public:
static const TGTransientFrame::EPlacement kCenter
static const TGTransientFrame::EPlacement kLeft
static const TGTransientFrame::EPlacement kRight
static const TGTransientFrame::EPlacement kTop
static const TGTransientFrame::EPlacement kBottom
static const TGTransientFrame::EPlacement kTopLeft
static const TGTransientFrame::EPlacement kTopRight
static const TGTransientFrame::EPlacement kBottomLeft
static const TGTransientFrame::EPlacement kBottomRight
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.
/*
*/
TGTransientFrame(const TGWindow *p, const TGWindow *main,
UInt_t w, UInt_t h, UInt_t options)
: TGMainFrame(p, w, h, options | kTransientFrame)
Create a transient window. A transient window is typically used for
dialog boxes.
void CenterOnParent(Bool_t croot, EPlacement pos)
Position transient frame centered relative to the parent frame.
If fMain is 0 (i.e. TGTransientFrame is acting just like a
TGMainFrame) and croot is true, the window will be centered on
the root window, otherwise no action is taken and the default
wm placement will be used.
void SaveSource(const char *filename, Option_t *option)
Save the GUI tranzient frame widget in a C++ macro file
void SavePrimitive(ofstream &out, Option_t *option)
Save a transient frame widget as a C++ statement(s) on output stream out.
Inline Functions
void ~TGTransientFrame()
const TGWindow* GetMain() const
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGTransientFrame TGTransientFrame(const TGTransientFrame&)
Author: Fons Rademakers 03/01/98
Last update: root/gui:$Name: $:$Id: TGFrame.cxx,v 1.113 2005/09/05 13:33:08 rdm 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.