TGPack Class Reference

#include <TGPack.h>

Inheritance diagram for TGPack:

TGCompositeFrame TGCompositeFrame TGFrame TGFrame TGFrame TGFrame TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow TQObject TGWindow List of all members.

Public Member Functions

 TGPack (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
 TGPack (TGClient *c, Window_t id, const TGWindow *parent=0)
virtual ~TGPack ()
virtual void AddFrameWithWeight (TGFrame *f, TGLayoutHints *l, Float_t w)
virtual void AddFrame (TGFrame *f, TGLayoutHints *l=0)
virtual void DeleteFrame (TGFrame *f)
virtual void RemoveFrame (TGFrame *f)
virtual void ShowFrame (TGFrame *f)
virtual void HideFrame (TGFrame *f)
virtual void Resize (UInt_t w=0, UInt_t h=0)
virtual void MapSubwindows ()
virtual void MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
virtual void Layout ()
virtual void Dump () const
void EqualizeFrames ()
void HandleSplitterStart ()
void HandleSplitterResize (Int_t delta)
Bool_t GetVertical () const
void SetVertical (Bool_t x)
Bool_t GetUseSplitters () const
void SetUseSplitters (Bool_t x)
 ClassDef (TGPack, 0)
 TGPack (const TGWindow *p=0, UInt_t w=1, UInt_t h=1, UInt_t options=0, Pixel_t back=GetDefaultFrameBackground())
 TGPack (TGClient *c, Window_t id, const TGWindow *parent=0)
virtual ~TGPack ()
virtual void AddFrameWithWeight (TGFrame *f, TGLayoutHints *l, Float_t w)
virtual void AddFrame (TGFrame *f, TGLayoutHints *l=0)
virtual void DeleteFrame (TGFrame *f)
virtual void RemoveFrame (TGFrame *f)
virtual void ShowFrame (TGFrame *f)
virtual void HideFrame (TGFrame *f)
virtual void Resize (UInt_t w=0, UInt_t h=0)
virtual void MapSubwindows ()
virtual void MoveResize (Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
virtual void Layout ()
virtual void Dump () const
void EqualizeFrames ()
void HandleSplitterStart ()
void HandleSplitterResize (Int_t delta)
Bool_t GetVertical () const
void SetVertical (Bool_t x)
Bool_t GetUseSplitters () const
void SetUseSplitters (Bool_t x)
 ClassDef (TGPack, 0)

Protected Member Functions

Int_t GetFrameLength (const TGFrame *f) const
Int_t GetLength () const
Int_t GetAvailableLength () const
void SetFrameLength (TGFrame *f, Int_t len)
void SetFramePosition (TGFrame *f, Int_t pos)
void FindFrames (TGFrame *splitter, TGFrameElementPack *&f0, TGFrameElementPack *&f1) const
void CheckSplitterVisibility ()
void ResizeExistingFrames ()
void RefitFramesToPack ()
void AddFrameInternal (TGFrame *f, TGLayoutHints *l=0, Float_t weight=1)
void RemoveFrameInternal (TGFrame *f)
Int_t GetFrameLength (const TGFrame *f) const
Int_t GetLength () const
Int_t GetAvailableLength () const
void SetFrameLength (TGFrame *f, Int_t len)
void SetFramePosition (TGFrame *f, Int_t pos)
void FindFrames (TGFrame *splitter, TGFrameElementPack *&f0, TGFrameElementPack *&f1) const
void CheckSplitterVisibility ()
void ResizeExistingFrames ()
void RefitFramesToPack ()
void AddFrameInternal (TGFrame *f, TGLayoutHints *l=0, Float_t weight=1)
void RemoveFrameInternal (TGFrame *f)

Protected Attributes

Bool_t fVertical
Bool_t fUseSplitters
Int_t fSplitterLen
Int_t fDragOverflow
Float_t fWeightSum
Int_t fNVisible

Private Member Functions

 TGPack (const TGPack &)
TGPackoperator= (const TGPack &)
 TGPack (const TGPack &)
TGPackoperator= (const TGPack &)

Detailed Description

Definition at line 39 of file TGPack.h.


Constructor & Destructor Documentation

TGPack::TGPack ( const TGPack  )  [private]

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

Definition at line 30 of file TGPack.cxx.

References kLocalCleanup, and TGCompositeFrame::SetCleanup().

TGPack::TGPack ( TGClient c,
Window_t  id,
const TGWindow parent = 0 
)

Definition at line 45 of file TGPack.cxx.

References kLocalCleanup, and TGCompositeFrame::SetCleanup().

TGPack::~TGPack (  )  [virtual]

Definition at line 60 of file TGPack.cxx.

TGPack::TGPack ( const TGPack  )  [private]

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

TGPack::TGPack ( TGClient c,
Window_t  id,
const TGWindow parent = 0 
)

virtual TGPack::~TGPack (  )  [virtual]


Member Function Documentation

TGPack& TGPack::operator= ( const TGPack  )  [private]

Int_t TGPack::GetFrameLength ( const TGFrame f  )  const [inline, protected]

Definition at line 55 of file TGPack.h.

References fVertical.

Referenced by GetLength(), HandleSplitterResize(), Layout(), and ResizeExistingFrames().

Int_t TGPack::GetLength (  )  const [inline, protected]

Definition at line 56 of file TGPack.h.

References GetFrameLength().

Int_t TGPack::GetAvailableLength (  )  const [protected]

Definition at line 68 of file TGPack.cxx.

References fNVisible, fSplitterLen, fVertical, TGFrame::GetHeight(), TGFrame::GetWidth(), and len.

Referenced by HandleSplitterResize(), and ResizeExistingFrames().

void TGPack::SetFrameLength ( TGFrame f,
Int_t  len 
) [protected]

Definition at line 79 of file TGPack.cxx.

References fVertical, TGFrame::GetHeight(), and TGFrame::GetWidth().

Referenced by HandleSplitterResize(), and ResizeExistingFrames().

void TGPack::SetFramePosition ( TGFrame f,
Int_t  pos 
) [protected]

Definition at line 90 of file TGPack.cxx.

References fVertical.

Referenced by Layout().

void TGPack::FindFrames ( TGFrame splitter,
TGFrameElementPack *&  f0,
TGFrameElementPack *&  f1 
) const [protected]

Definition at line 204 of file TGPack.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, TGFrameElement::fState, and kIsVisible.

Referenced by HandleSplitterResize().

void TGPack::CheckSplitterVisibility (  )  [protected]

Definition at line 101 of file TGPack.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, TGFrameElementPack::fSplitFE, TGFrameElement::fState, TGFrame::MapWindow(), and TGFrame::UnmapWindow().

Referenced by AddFrameInternal(), HideFrame(), RemoveFrameInternal(), and ShowFrame().

void TGPack::ResizeExistingFrames (  )  [protected]

Definition at line 135 of file TGPack.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, TGFrameElement::fState, TGFrameElementPack::fWeight, fWeightSum, GetAvailableLength(), GetFrameLength(), TCollection::IsEmpty(), l, TMath::Nint(), RefitFramesToPack(), SetFrameLength(), TMath::Sign(), and unit.

Referenced by AddFrameInternal(), EqualizeFrames(), HandleSplitterResize(), HideFrame(), RemoveFrameInternal(), Resize(), and ShowFrame().

void TGPack::RefitFramesToPack (  )  [protected]

Definition at line 187 of file TGPack.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, fVertical, TGFrame::GetHeight(), TGFrame::GetWidth(), and TGFrame::Resize().

Referenced by ResizeExistingFrames().

void TGPack::AddFrameInternal ( TGFrame f,
TGLayoutHints l = 0,
Float_t  weight = 1 
) [protected]

Definition at line 227 of file TGPack.cxx.

References TList::Add(), CheckSplitterVisibility(), TGCompositeFrame::fgDefaultHints, TGCompositeFrame::fList, TGCompositeFrame::fMustCleanup, fNVisible, TGFrameElementPack::fSplitFE, fSplitterLen, fUseSplitters, fVertical, fWeightSum, TGFrame::GetHeight(), TGFrame::GetWidth(), kDeepCleanup, kTRUE, l, ResizeExistingFrames(), and s.

Referenced by AddFrame(), AddFrameWithWeight(), and SetVertical().

void TGPack::RemoveFrameInternal ( TGFrame f  )  [protected]

Definition at line 291 of file TGPack.cxx.

References CheckSplitterVisibility(), TGObject::fClient, TGFrameElement::fFrame, TGCompositeFrame::FindFrameElement(), fNVisible, TGFrameElementPack::fSplitFE, TGFrameElement::fState, fUseSplitters, TGFrameElementPack::fWeight, fWeightSum, TGClient::GetDefaultRoot(), kIsVisible, TGCompositeFrame::RemoveFrame(), TGFrame::ReparentWindow(), ResizeExistingFrames(), and TGFrame::UnmapWindow().

Referenced by DeleteFrame(), RemoveFrame(), and SetVertical().

void TGPack::AddFrameWithWeight ( TGFrame f,
TGLayoutHints l,
Float_t  w 
) [virtual]

Definition at line 271 of file TGPack.cxx.

References AddFrameInternal(), l, and Layout().

Referenced by TEveWindowPack::NewSlotWithWeight(), pack(), and testPack().

void TGPack::AddFrame ( TGFrame f,
TGLayoutHints l = 0 
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 281 of file TGPack.cxx.

References AddFrameInternal(), l, and Layout().

Referenced by pack(), and testPack().

void TGPack::DeleteFrame ( TGFrame f  )  [virtual]

Definition at line 321 of file TGPack.cxx.

References Layout(), and RemoveFrameInternal().

void TGPack::RemoveFrame ( TGFrame f  )  [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 332 of file TGPack.cxx.

References Layout(), and RemoveFrameInternal().

Referenced by TEveCompositeFrameInPack::Destroy().

void TGPack::ShowFrame ( TGFrame f  )  [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 359 of file TGPack.cxx.

References CheckSplitterVisibility(), TGFrameElement::fFrame, TGCompositeFrame::FindFrameElement(), fNVisible, TGFrameElementPack::fSplitFE, TGFrameElement::fState, fUseSplitters, TGFrameElementPack::fWeight, fWeightSum, Layout(), TGFrame::MapWindow(), and ResizeExistingFrames().

void TGPack::HideFrame ( TGFrame f  )  [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 389 of file TGPack.cxx.

References CheckSplitterVisibility(), TGFrameElement::fFrame, TGCompositeFrame::FindFrameElement(), fNVisible, TGFrameElementPack::fSplitFE, TGFrameElement::fState, fUseSplitters, TGFrameElementPack::fWeight, fWeightSum, Layout(), ResizeExistingFrames(), and TGFrame::UnmapWindow().

Referenced by SetVertical().

void TGPack::Resize ( UInt_t  w = 0,
UInt_t  h = 0 
) [virtual]

Reimplemented from TGFrame.

Definition at line 446 of file TGPack.cxx.

References TGFrame::fHeight, TGFrame::fWidth, Layout(), TGWindow::Resize(), and ResizeExistingFrames().

Referenced by MoveResize().

void TGPack::MapSubwindows (  )  [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 421 of file TGPack.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, TGCompositeFrame::fMapSubwindows, TGFrameElement::fState, TGFrame::GetFrameElement(), kIsVisible, TGFrame::MapSubwindows(), and TGFrame::MapWindow().

void TGPack::MoveResize ( Int_t  x,
Int_t  y,
UInt_t  w = 0,
UInt_t  h = 0 
) [virtual]

Reimplemented from TGFrame.

Definition at line 463 of file TGPack.cxx.

References TGFrame::Move(), and Resize().

void TGPack::Layout (  )  [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 472 of file TGPack.cxx.

References TGFrameElement::fFrame, TGCompositeFrame::fList, TGFrameElement::fState, GetFrameLength(), TGFrame::Layout(), and SetFramePosition().

Referenced by AddFrame(), AddFrameWithWeight(), DeleteFrame(), EqualizeFrames(), TEveWindowPack::EqualizeFrames(), HandleSplitterResize(), HideFrame(), TEveWindowPack::NewSlotWithWeight(), RemoveFrame(), Resize(), SetVertical(), and ShowFrame().

void TGPack::Dump (  )  const [virtual]

Reimplemented from TGFrame.

Definition at line 342 of file TGPack.cxx.

References xmlio::cnt, TGFrameElement::fFrame, TGCompositeFrame::fList, TGFrameElement::fState, and TGWindow::GetName().

void TGPack::EqualizeFrames (  ) 

Definition at line 494 of file TGPack.cxx.

References TGCompositeFrame::fList, TGFrameElement::fState, TGFrameElementPack::fWeight, fWeightSum, TCollection::IsEmpty(), Layout(), and ResizeExistingFrames().

Referenced by TEveWindowPack::EqualizeFrames().

void TGPack::HandleSplitterStart (  ) 

Definition at line 516 of file TGPack.cxx.

References fDragOverflow.

void TGPack::HandleSplitterResize ( Int_t  delta  ) 

Definition at line 524 of file TGPack.cxx.

References fDragOverflow, TGFrameElement::fFrame, FindFrames(), fNVisible, TGFrameElementPack::fWeight, fWeightSum, GetAvailableLength(), GetFrameLength(), gTQSender, Layout(), ResizeExistingFrames(), s, and SetFrameLength().

Bool_t TGPack::GetVertical (  )  const [inline]

Definition at line 103 of file TGPack.h.

References fVertical.

Referenced by TEveWindowPack::FlipOrientation().

void TGPack::SetVertical ( Bool_t  x  ) 

Definition at line 593 of file TGPack.cxx.

References AddFrameInternal(), TList::At(), TGCompositeFrame::fList, fVertical, HideFrame(), TCollection::IsEmpty(), kIsVisible, kTempFrame, Layout(), list, and RemoveFrameInternal().

Referenced by TEveWindowPack::FlipOrientation(), pack(), TEveWindowPack::SetVertical(), and testPack().

Bool_t TGPack::GetUseSplitters (  )  const [inline]

Definition at line 107 of file TGPack.h.

References fUseSplitters.

void TGPack::SetUseSplitters ( Bool_t  x  )  [inline]

Definition at line 108 of file TGPack.h.

References fUseSplitters.

TGPack::ClassDef ( TGPack  ,
 
)

TGPack& TGPack::operator= ( const TGPack  )  [private]

Int_t TGPack::GetFrameLength ( const TGFrame f  )  const [inline, protected]

Definition at line 55 of file TGPack.h.

References fVertical.

Int_t TGPack::GetLength (  )  const [inline, protected]

Definition at line 56 of file TGPack.h.

References GetFrameLength().

Int_t TGPack::GetAvailableLength (  )  const [protected]

void TGPack::SetFrameLength ( TGFrame f,
Int_t  len 
) [protected]

void TGPack::SetFramePosition ( TGFrame f,
Int_t  pos 
) [protected]

void TGPack::FindFrames ( TGFrame splitter,
TGFrameElementPack *&  f0,
TGFrameElementPack *&  f1 
) const [protected]

void TGPack::CheckSplitterVisibility (  )  [protected]

void TGPack::ResizeExistingFrames (  )  [protected]

void TGPack::RefitFramesToPack (  )  [protected]

void TGPack::AddFrameInternal ( TGFrame f,
TGLayoutHints l = 0,
Float_t  weight = 1 
) [protected]

void TGPack::RemoveFrameInternal ( TGFrame f  )  [protected]

virtual void TGPack::AddFrameWithWeight ( TGFrame f,
TGLayoutHints l,
Float_t  w 
) [virtual]

virtual void TGPack::AddFrame ( TGFrame f,
TGLayoutHints l = 0 
) [virtual]

Reimplemented from TGCompositeFrame.

virtual void TGPack::DeleteFrame ( TGFrame f  )  [virtual]

virtual void TGPack::RemoveFrame ( TGFrame f  )  [virtual]

Reimplemented from TGCompositeFrame.

virtual void TGPack::ShowFrame ( TGFrame f  )  [virtual]

Reimplemented from TGCompositeFrame.

virtual void TGPack::HideFrame ( TGFrame f  )  [virtual]

Reimplemented from TGCompositeFrame.

virtual void TGPack::Resize ( UInt_t  w = 0,
UInt_t  h = 0 
) [virtual]

Reimplemented from TGFrame.

virtual void TGPack::MapSubwindows (  )  [virtual]

Reimplemented from TGCompositeFrame.

virtual void TGPack::MoveResize ( Int_t  x,
Int_t  y,
UInt_t  w = 0,
UInt_t  h = 0 
) [virtual]

Reimplemented from TGFrame.

virtual void TGPack::Layout (  )  [virtual]

Reimplemented from TGCompositeFrame.

virtual void TGPack::Dump (  )  const [virtual]

Reimplemented from TGFrame.

void TGPack::EqualizeFrames (  ) 

void TGPack::HandleSplitterStart (  ) 

void TGPack::HandleSplitterResize ( Int_t  delta  ) 

Bool_t TGPack::GetVertical (  )  const [inline]

Definition at line 103 of file TGPack.h.

References fVertical.

void TGPack::SetVertical ( Bool_t  x  ) 

Bool_t TGPack::GetUseSplitters (  )  const [inline]

Definition at line 107 of file TGPack.h.

References fUseSplitters.

void TGPack::SetUseSplitters ( Bool_t  x  )  [inline]

Definition at line 108 of file TGPack.h.

References fUseSplitters.

TGPack::ClassDef ( TGPack  ,
 
)


Member Data Documentation

Bool_t TGPack::fVertical [protected]

Definition at line 46 of file TGPack.h.

Referenced by AddFrameInternal(), GetAvailableLength(), GetFrameLength(), GetVertical(), RefitFramesToPack(), SetFrameLength(), SetFramePosition(), and SetVertical().

Bool_t TGPack::fUseSplitters [protected]

Definition at line 47 of file TGPack.h.

Referenced by AddFrameInternal(), GetUseSplitters(), HideFrame(), RemoveFrameInternal(), SetUseSplitters(), and ShowFrame().

Int_t TGPack::fSplitterLen [protected]

Definition at line 48 of file TGPack.h.

Referenced by AddFrameInternal(), and GetAvailableLength().

Int_t TGPack::fDragOverflow [protected]

Definition at line 50 of file TGPack.h.

Referenced by HandleSplitterResize(), and HandleSplitterStart().

Float_t TGPack::fWeightSum [protected]

Definition at line 52 of file TGPack.h.

Referenced by AddFrameInternal(), EqualizeFrames(), HandleSplitterResize(), HideFrame(), RemoveFrameInternal(), ResizeExistingFrames(), and ShowFrame().

Int_t TGPack::fNVisible [protected]

Definition at line 53 of file TGPack.h.

Referenced by AddFrameInternal(), GetAvailableLength(), HandleSplitterResize(), HideFrame(), RemoveFrameInternal(), and ShowFrame().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:40:29 2011 for ROOT_528-00b_version by  doxygen 1.5.1