library: libGui #include "TGFrame.h" |
TGGroupFrame
class description - header file - source file - inheritance tree (.pdf)
private:
TGGroupFrame& operator=(const TGGroupFrame&)
protected:
virtual void DoRedraw()
public:
TGGroupFrame(const TGWindow* p, TGString* title, UInt_t options = kVerticalFrame, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), Pixel_t back = GetDefaultFrameBackground())
TGGroupFrame(const TGWindow* p = 0, const char* title = "0", UInt_t options = kVerticalFrame, GContext_t norm = GetDefaultGC()(), FontStruct_t font = GetDefaultFontStruct(), Pixel_t back = GetDefaultFrameBackground())
TGGroupFrame(const TGGroupFrame& tgf)
virtual ~TGGroupFrame()
static TClass* Class()
virtual void DrawBorder()
static FontStruct_t GetDefaultFontStruct()
static const TGGC& GetDefaultGC()
virtual TGDimension GetDefaultSize() const
FontStruct_t GetFontStruct() const
GContext_t GetNormGC() const
virtual const char* GetTitle() const
Int_t GetTitlePos() const
Bool_t HasOwnFont() const
virtual TClass* IsA() const
virtual void Rename(const char* title)
virtual void SavePrimitive(ostream& out, Option_t* option = "")
virtual void SetTextColor(Pixel_t color, Bool_t local = kTRUE)
virtual void SetTextFont(const char* fontName, Bool_t local = kTRUE)
virtual void SetTextFont(FontStruct_t font, Bool_t local = kTRUE)
virtual void SetTitle(TGString* title)
virtual void SetTitle(const char* title)
virtual void SetTitlePos(TGGroupFrame::ETitlePos pos = kLeft)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
TGString* fText title text
FontStruct_t fFontStruct title fontstruct
GContext_t fNormGC title graphics context
Int_t fTitlePos *OPTION={GetMethod="GetTitlePos";SetMethod="SetTitlePos";Items=(-1="Left",0="Center",1="Right")}*
Bool_t fHasOwnFont kTRUE - font defined locally, kFALSE - globally
static const TGFont* fgDefaultFont
static const TGGC* fgDefaultGC
public:
static const TGGroupFrame::ETitlePos kLeft
static const TGGroupFrame::ETitlePos kCenter
static const TGGroupFrame::ETitlePos kRight
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 DoRedraw()
Redraw the group frame. Need special DoRedraw() since we need to
redraw with fBorderWidth=0.
void SetTextFont(const char *fontName, Bool_t local)
Changes text font specified by name.
If local is true font is changed locally - otherwise globally.
void DrawBorder()
Draw border of around the group frame.
if frame is kRaisedFrame - a frame border is of "wall style",
otherwise of "groove style".
void SetTitle(const char *title)
Set or change title of the group frame.
void Rename(const char *title)
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.