Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

TGFrame Class Reference

#include <TGFrame.h>

Inheritance diagram for TGFrame:

Inheritance graph
[legend]
Collaboration diagram for TGFrame:

Collaboration graph
[legend]
List of all members.

Public Methods

 TGFrame (const TGWindow *p, UInt_t w, UInt_t h, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
 TGFrame (TGClient *c, Window_t id, const TGWindow *parent=0)
virtual ~TGFrame ()
virtual void DeleteWindow ()
virtual void ReallyDelete ()
UInt_t GetEventMask () const
void AddInput (UInt_t emask)
void RemoveInput (UInt_t emask)
virtual Bool_t HandleEvent (Event_t *event)
virtual Bool_t HandleConfigureNotify (Event_t *event)
virtual Bool_t HandleButton (Event_t *)
virtual Bool_t HandleDoubleClick (Event_t *)
virtual Bool_t HandleCrossing (Event_t *)
virtual Bool_t HandleMotion (Event_t *)
virtual Bool_t HandleKey (Event_t *)
virtual Bool_t HandleFocusChange (Event_t *)
virtual Bool_t HandleClientMessage (Event_t *event)
virtual Bool_t HandleSelection (Event_t *)
virtual Bool_t HandleSelectionRequest (Event_t *)
virtual Bool_t HandleSelectionClear (Event_t *)
virtual Bool_t HandleColormapChange (Event_t *)
virtual void ProcessedEvent (Event_t *event)
virtual void SendMessage (const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
virtual Bool_t ProcessMessage (Long_t, Long_t, Long_t)
virtual void Move (Int_t x, Int_t y)
virtual void Resize (UInt_t w, UInt_t h)
virtual void Resize (TGDimension size)
virtual void MoveResize (Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual UInt_t GetDefaultWidth () const
virtual UInt_t GetDefaultHeight () const
virtual TGDimension GetDefaultSize () const
virtual Pixel_t GetBackground () const
virtual void ChangeBackground (Pixel_t back)
virtual void SetBackgroundColor (Pixel_t back)
virtual UInt_t GetOptions () const
virtual void ChangeOptions (UInt_t options)
virtual void Layout ()
virtual void MapSubwindows ()
virtual void DrawBorder ()
virtual void DrawCopy (Handle_t, Int_t, Int_t)
virtual void Activate (Bool_t)
virtual Bool_t IsActive () const
virtual Bool_t IsComposite () const
virtual const TGWindowGetMainFrame () const
UInt_t GetWidth () const
UInt_t GetHeight () const
TGDimension GetSize () const
Int_t GetX () const
Int_t GetY () const
Int_t GetBorderWidth () const
Bool_t Contains (Int_t x, Int_t y) const
virtual TGFrame * GetFrameFromPoint (Int_t x, Int_t y)
void SetWidth (UInt_t w)
void SetHeight (UInt_t h)
void SetSize (const TGDimension &s)

Static Public Methods

Pixel_t GetDefaultFrameBackground ()
Pixel_t GetDefaultSelectedBackground ()
Pixel_t GetWhitePixel ()
Pixel_t GetBlackPixel ()
const TGGCGetBlackGC ()
const TGGCGetWhiteGC ()
const TGGCGetHilightGC ()
const TGGCGetShadowGC ()
const TGGCGetBckgndGC ()

Protected Methods

virtual void * GetSender ()
virtual void Draw3dRectangle (UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual void DoRedraw ()
const TGResourcePoolGetResourcePool () const

Static Protected Methods

Time_t GetLastClick ()

Protected Attributes

Int_t fX
Int_t fY
UInt_t fWidth
UInt_t fHeight
Int_t fBorderWidth
UInt_t fOptions
Pixel_t fBackground
UInt_t fEventMask

Static Protected Attributes

Bool_t fgInit
Pixel_t fgDefaultFrameBackground
Pixel_t fgDefaultSelectedBackground
Pixel_t fgWhitePixel
Pixel_t fgBlackPixel
const TGGCfgBlackGC
const TGGCfgWhiteGC
const TGGCfgHilightGC
const TGGCfgShadowGC
const TGGCfgBckgndGC
Time_t fgLastClick
UInt_t fgLastButton
Int_t fgDbx
Int_t fgDby
Window_t fgDbw

Constructor & Destructor Documentation

TGFrame::TGFrame const TGWindow   p,
UInt_t    w,
UInt_t    h,
UInt_t    options = 0,
Pixel_t    back = GetDefaultFrameBackground()
 

TGFrame::TGFrame TGClient   c,
Window_t    id,
const TGWindow   parent = 0
 

virtual TGFrame::~TGFrame   [virtual]
 

Definition at line 174 of file TGFrame.h.


Member Function Documentation

Time_t TGFrame::GetLastClick   [static, protected]
 

virtual void* TGFrame::GetSender   [protected, virtual]
 

Reimplemented from TQObject.

Definition at line 151 of file TGFrame.h.

virtual void TGFrame::Draw3dRectangle UInt_t    type,
Int_t    x,
Int_t    y,
UInt_t    w,
UInt_t    h
[protected, virtual]
 

virtual void TGFrame::DoRedraw   [protected, virtual]
 

Reimplemented from TGWindow.

Reimplemented in TGTextButton, TGPictureButton, TGCheckButton, TGRadioButton, TGContainer, TGColorPalette, TGColorPick, TGColorSelect, TGDoubleVSlider, TGDoubleHSlider, TGGroupFrame, TGTreeLBEntry, TGFileIcon, TGFileItem, TGIcon, TGLabel, TGLBEntry, TGTextLBEntry, TGListTree, TGLVEntry, TGPopupMenu, TGMenuTitle, TGProgressBar, TGHProgressBar, TGVProgressBar, TGVSlider, TGHSlider, TGStatusBar, and TGTextEntry.

const TGResourcePool* TGFrame::GetResourcePool   const [protected]
 

Definition at line 156 of file TGFrame.h.

References TGObject::fClient, and TGClient::GetResourcePool().

Pixel_t TGFrame::GetDefaultFrameBackground   [static]
 

Pixel_t TGFrame::GetDefaultSelectedBackground   [static]
 

Pixel_t TGFrame::GetWhitePixel   [static]
 

Pixel_t TGFrame::GetBlackPixel   [static]
 

const TGGC& TGFrame::GetBlackGC   [static]
 

const TGGC& TGFrame::GetWhiteGC   [static]
 

const TGGC& TGFrame::GetHilightGC   [static]
 

Referenced by TGVertical3DLine::DrawBorder(), and TGHorizontal3DLine::DrawBorder().

const TGGC& TGFrame::GetShadowGC   [static]
 

Referenced by TGVertical3DLine::DrawBorder(), and TGHorizontal3DLine::DrawBorder().

const TGGC& TGFrame::GetBckgndGC   [static]
 

virtual void TGFrame::DeleteWindow   [virtual]
 

virtual void TGFrame::ReallyDelete   [virtual]
 

Reimplemented in TRootBrowser, TRootCanvas, and TRootControlBar.

Definition at line 176 of file TGFrame.h.

UInt_t TGFrame::GetEventMask   const
 

Definition at line 178 of file TGFrame.h.

References fEventMask.

void TGFrame::AddInput UInt_t    emask
 

void TGFrame::RemoveInput UInt_t    emask
 

virtual Bool_t TGFrame::HandleEvent Event_t *    event [virtual]
 

Reimplemented from TGWindow.

virtual Bool_t TGFrame::HandleConfigureNotify Event_t *    event [virtual]
 

Reimplemented in TGViewPort, and TGTextEntry.

virtual Bool_t TGFrame::HandleButton Event_t *    [virtual]
 

Reimplemented in TGButton, TGCheckButton, TGRadioButton, TGContainer, TGColorPalette, TGColorPick, TGColorFrame, TGColorPopup, TGColorSelect, TGComboBoxPopup, TGComboBox, TGDoubleSlider, TGDoubleVSlider, TGDoubleHSlider, TGCompositeFrame, TGImageMap, TGLBContainer, TGListTree, TGPopupMenu, TGMenuBar, TGScrollBar, TGHScrollBar, TGVScrollBar, TGSlider, TGVSlider, TGHSlider, TGSplitter, TGVSplitter, TGHSplitter, TGTab, TGTextEdit, TGTextEntry, TGTextView, TGView, TGViewFrame, and TTVLVContainer.

Definition at line 184 of file TGFrame.h.

virtual Bool_t TGFrame::HandleDoubleClick Event_t *    [virtual]
 

Reimplemented in TGContainer, TGCompositeFrame, TGImageMap, TGListTree, and TGTextEntry.

Definition at line 185 of file TGFrame.h.

virtual Bool_t TGFrame::HandleCrossing Event_t *    [virtual]
 

Reimplemented in TGButton, TGCheckButton, TGRadioButton, TGCompositeFrame, TGListTree, TGPopupMenu, TGSplitter, TGVSplitter, TGHSplitter, TGTextEdit, TGTextEntry, TGView, TGViewFrame, and TTVLVEntry.

Definition at line 186 of file TGFrame.h.

virtual Bool_t TGFrame::HandleMotion Event_t *    [virtual]
 

Reimplemented in TGContainer, TGColorPalette, TGColorPick, TGDoubleSlider, TGDoubleVSlider, TGDoubleHSlider, TGCompositeFrame, TGImageMap, TGLBContainer, TGListTree, TGPopupMenu, TGMenuBar, TGScrollBar, TGHScrollBar, TGVScrollBar, TGSlider, TGVSlider, TGHSlider, TGSplitter, TGVSplitter, TGHSplitter, TGTextEdit, TGTextEntry, TGView, TGViewFrame, and TTVLVContainer.

Definition at line 187 of file TGFrame.h.

virtual Bool_t TGFrame::HandleKey Event_t *    [virtual]
 

Reimplemented in TGTextButton, TGCheckButton, TGRadioButton, TGContainer, TGColorPalette, TGCompositeFrame, TGMainFrame, TGListTree, TGMenuBar, TGNumberEntryField, TGTextEdit, TGTextEntry, and TGViewFrame.

Definition at line 188 of file TGFrame.h.

virtual Bool_t TGFrame::HandleFocusChange Event_t *    [virtual]
 

Reimplemented in TGCompositeFrame, TGNumberEntryField, TGTextEdit, and TGTextEntry.

Definition at line 189 of file TGFrame.h.

virtual Bool_t TGFrame::HandleClientMessage Event_t *    event [virtual]
 

Reimplemented in TGMainFrame.

virtual Bool_t TGFrame::HandleSelection Event_t *    [virtual]
 

Reimplemented in TGCompositeFrame, TGTextEdit, TGTextEntry, and TGViewFrame.

Definition at line 191 of file TGFrame.h.

virtual Bool_t TGFrame::HandleSelectionRequest Event_t *    [virtual]
 

Reimplemented in TGTextEntry, TGTextView, and TGViewFrame.

Definition at line 192 of file TGFrame.h.

Referenced by TGViewFrame::HandleSelectionRequest().

virtual Bool_t TGFrame::HandleSelectionClear Event_t *    [virtual]
 

Reimplemented in TGViewFrame.

Definition at line 193 of file TGFrame.h.

Referenced by TGViewFrame::HandleSelectionClear().

virtual Bool_t TGFrame::HandleColormapChange Event_t *    [virtual]
 

Definition at line 194 of file TGFrame.h.

virtual void TGFrame::ProcessedEvent Event_t *    event [virtual]
 

Definition at line 195 of file TGFrame.h.

References TQObject::Emit().

virtual void TGFrame::SendMessage const TGWindow   w,
Long_t    msg,
Long_t    parm1,
Long_t    parm2
[virtual]
 

virtual Bool_t TGFrame::ProcessMessage Long_t   ,
Long_t   ,
Long_t   
[virtual]
 

Reimplemented in TGCanvas, TGColorDialog, TG16ColorSelector, TGColorPopup, TGColorSelect, TGComboBox, TGFileDialog, TGCompositeFrame, TGListBox, TGListView, TGMsgBox, TGNumberEntry, TGShutter, TGTextEdit, TGSearchDialog, TGPrintDialog, TGGotoDialog, TGView, TRootBrowser, TRootCanvas, TRootContextMenu, TRootControlBar, TRootGLViewer, TRootHelpDialog, TTreeViewer, TGSelectBox, and TViewerX3D.

Definition at line 199 of file TGFrame.h.

virtual void TGFrame::Move Int_t    x,
Int_t    y
[virtual]
 

Reimplemented from TGWindow.

virtual void TGFrame::Resize UInt_t    w,
UInt_t    h
[virtual]
 

Reimplemented from TGWindow.

Reimplemented in TGListBox.

virtual void TGFrame::Resize TGDimension    size [virtual]
 

Reimplemented in TGListBox.

virtual void TGFrame::MoveResize Int_t    x,
Int_t    y,
UInt_t    w,
UInt_t    h
[virtual]
 

Reimplemented from TGWindow.

Reimplemented in TGListBox.

virtual UInt_t TGFrame::GetDefaultWidth   const [virtual]
 

Reimplemented in TGCompositeFrame.

Definition at line 205 of file TGFrame.h.

References TGDimension::fWidth, and GetDefaultSize().

virtual UInt_t TGFrame::GetDefaultHeight   const [virtual]
 

Reimplemented in TGCompositeFrame.

Definition at line 206 of file TGFrame.h.

References TGDimension::fHeight, and GetDefaultSize().

virtual TGDimension TGFrame::GetDefaultSize   const [virtual]
 

Reimplemented in TGTextButton, TGCheckButton, TGRadioButton, TGViewPort, TGCanvas, TGColorPalette, TGColorSelect, TGComboBox, TGDoubleVSlider, TGDoubleHSlider, TGCompositeFrame, TGGroupFrame, TGTreeLBEntry, TGIcon, TGLabel, TGTextLBEntry, TGListBox, TGListTree, TGLVEntry, TGHProgressBar, TGVProgressBar, TGHScrollBar, TGVScrollBar, TGVSlider, TGHSlider, TGTabElement, and TGView.

Definition at line 207 of file TGFrame.h.

References fHeight, and fWidth.

Referenced by GetDefaultHeight(), and GetDefaultWidth().

virtual Pixel_t TGFrame::GetBackground   const [virtual]
 

Definition at line 210 of file TGFrame.h.

References fBackground.

virtual void TGFrame::ChangeBackground Pixel_t    back [virtual]
 

virtual void TGFrame::SetBackgroundColor Pixel_t    back [virtual]
 

Reimplemented from TGWindow.

virtual UInt_t TGFrame::GetOptions   const [virtual]
 

Definition at line 213 of file TGFrame.h.

References fOptions.

virtual void TGFrame::ChangeOptions UInt_t    options [virtual]
 

Reimplemented in TGCompositeFrame.

virtual void TGFrame::Layout   [virtual]
 

Reimplemented in TGContainer, TGViewPort, TGCanvas, TGCompositeFrame, TGListBox, TGListTree, TGListView, TGNumberEntryField, TGScrollBar, TGHScrollBar, TGVScrollBar, TGShutter, TGTextEntry, and TGView.

Definition at line 215 of file TGFrame.h.

virtual void TGFrame::MapSubwindows   [virtual]
 

Reimplemented from TGWindow.

Reimplemented in TGContainer, TGCanvas, TGDoubleSlider, TGCompositeFrame, TGScrollBar, and TGSlider.

Definition at line 216 of file TGFrame.h.

virtual void TGFrame::DrawBorder   [virtual]
 

Reimplemented in TGHorizontal3DLine, TGVertical3DLine, TGButtonGroup, TGViewPort, TGCanvas, TGColorFrame, TGComboBox, TGGroupFrame, TGListBox, TGPopupMenu, TGScrollBarElement, TGScrollBar, TGVSplitter, TGHSplitter, TGStatusBar, TGTabElement, TGTab, TGTextEntry, TGToolTip, and TGView.

virtual void TGFrame::DrawCopy Handle_t   ,
Int_t   ,
Int_t   
[virtual]
 

Reimplemented in TGLVEntry.

Definition at line 219 of file TGFrame.h.

virtual void TGFrame::Activate Bool_t    [virtual]
 

Reimplemented in TGTreeLBEntry, TGLBEntry, TGLVEntry, and TGPopupMenu.

Definition at line 220 of file TGFrame.h.

virtual Bool_t TGFrame::IsActive   const [virtual]
 

Reimplemented in TGFileItem, TGLBEntry, and TGLVEntry.

Definition at line 221 of file TGFrame.h.

virtual Bool_t TGFrame::IsComposite   const [virtual]
 

Reimplemented in TGCompositeFrame.

Definition at line 222 of file TGFrame.h.

virtual const TGWindow* TGFrame::GetMainFrame   const [virtual]
 

Reimplemented from TGWindow.

Reimplemented in TGMainFrame.

Definition at line 224 of file TGFrame.h.

References TGWindow::GetMainFrame().

UInt_t TGFrame::GetWidth   const
 

Definition at line 226 of file TGFrame.h.

References fWidth.

UInt_t TGFrame::GetHeight   const
 

Definition at line 227 of file TGFrame.h.

References fHeight.

TGDimension TGFrame::GetSize   const
 

Reimplemented in TGFileItem.

Definition at line 228 of file TGFrame.h.

References fHeight, and fWidth.

Int_t TGFrame::GetX   const
 

Definition at line 229 of file TGFrame.h.

References fX.

Int_t TGFrame::GetY   const
 

Definition at line 230 of file TGFrame.h.

References fY.

Int_t TGFrame::GetBorderWidth   const
 

Definition at line 231 of file TGFrame.h.

References fBorderWidth.

Bool_t TGFrame::Contains Int_t    x,
Int_t    y
const
 

Definition at line 232 of file TGFrame.h.

References fHeight.

Referenced by GetFrameFromPoint().

virtual TGFrame* TGFrame::GetFrameFromPoint Int_t    x,
Int_t    y
[virtual]
 

Reimplemented in TGCompositeFrame.

Definition at line 234 of file TGFrame.h.

References Contains().

void TGFrame::SetWidth UInt_t    w
 

Definition at line 238 of file TGFrame.h.

References fWidth.

void TGFrame::SetHeight UInt_t    h
 

Definition at line 239 of file TGFrame.h.

References fHeight.

void TGFrame::SetSize const TGDimension   s
 

Definition at line 240 of file TGFrame.h.

References TGDimension::fHeight, fHeight, TGDimension::fWidth, and fWidth.


Member Data Documentation

Int_t TGFrame::fX [protected]
 

Definition at line 125 of file TGFrame.h.

Referenced by GetX().

Int_t TGFrame::fY [protected]
 

Definition at line 126 of file TGFrame.h.

Referenced by GetY().

UInt_t TGFrame::fWidth [protected]
 

Definition at line 127 of file TGFrame.h.

Referenced by TGHorizontal3DLine::DrawBorder(), TGView::GetDefaultSize(), TGHSlider::GetDefaultSize(), TGHScrollBar::GetDefaultSize(), TGHProgressBar::GetDefaultSize(), GetDefaultSize(), TGDoubleHSlider::GetDefaultSize(), TGComboBox::GetDefaultSize(), TGCanvas::GetDefaultSize(), TGViewPort::GetDefaultSize(), GetSize(), GetWidth(), SetSize(), and SetWidth().

UInt_t TGFrame::fHeight [protected]
 

Definition at line 128 of file TGFrame.h.

Referenced by Contains(), TGVertical3DLine::DrawBorder(), TGView::GetDefaultSize(), TGVSlider::GetDefaultSize(), TGVScrollBar::GetDefaultSize(), TGVProgressBar::GetDefaultSize(), GetDefaultSize(), TGDoubleVSlider::GetDefaultSize(), TGComboBox::GetDefaultSize(), TGCanvas::GetDefaultSize(), TGViewPort::GetDefaultSize(), GetHeight(), GetSize(), SetHeight(), and SetSize().

Int_t TGFrame::fBorderWidth [protected]
 

Definition at line 129 of file TGFrame.h.

Referenced by GetBorderWidth().

UInt_t TGFrame::fOptions [protected]
 

Definition at line 130 of file TGFrame.h.

Referenced by GetOptions(), and TGButton::IsDown().

Pixel_t TGFrame::fBackground [protected]
 

Definition at line 131 of file TGFrame.h.

Referenced by GetBackground().

UInt_t TGFrame::fEventMask [protected]
 

Definition at line 132 of file TGFrame.h.

Referenced by GetEventMask().

Bool_t TGFrame::fgInit [static, protected]
 

Definition at line 134 of file TGFrame.h.

Pixel_t TGFrame::fgDefaultFrameBackground [static, protected]
 

Definition at line 135 of file TGFrame.h.

Pixel_t TGFrame::fgDefaultSelectedBackground [static, protected]
 

Definition at line 136 of file TGFrame.h.

Pixel_t TGFrame::fgWhitePixel [static, protected]
 

Definition at line 137 of file TGFrame.h.

Pixel_t TGFrame::fgBlackPixel [static, protected]
 

Definition at line 138 of file TGFrame.h.

const TGGC* TGFrame::fgBlackGC [static, protected]
 

Definition at line 139 of file TGFrame.h.

const TGGC* TGFrame::fgWhiteGC [static, protected]
 

Definition at line 140 of file TGFrame.h.

const TGGC* TGFrame::fgHilightGC [static, protected]
 

Definition at line 141 of file TGFrame.h.

const TGGC* TGFrame::fgShadowGC [static, protected]
 

Definition at line 142 of file TGFrame.h.

const TGGC* TGFrame::fgBckgndGC [static, protected]
 

Definition at line 143 of file TGFrame.h.

Time_t TGFrame::fgLastClick [static, protected]
 

Definition at line 144 of file TGFrame.h.

UInt_t TGFrame::fgLastButton [static, protected]
 

Definition at line 145 of file TGFrame.h.

Int_t TGFrame::fgDbx [static, protected]
 

Definition at line 146 of file TGFrame.h.

Int_t TGFrame::fgDby [static, protected]
 

Definition at line 146 of file TGFrame.h.

Window_t TGFrame::fgDbw [static, protected]
 

Definition at line 147 of file TGFrame.h.


The documentation for this class was generated from the following file:
Generated on Thu Dec 18 14:59:44 2003 for ROOT by doxygen1.2.16