#ifndef ROOT_TGPack
#define ROOT_TGPack
#include "TGFrame.h"
class TGPack : public TGCompositeFrame
{
private:
TGPack(const TGPack&);
TGPack& operator=(const TGPack&);
protected:
Bool_t fVertical;
Bool_t fUseSplitters;
Int_t fSplitterLen;
Int_t fDragOverflow;
Int_t GetFrameLength(const TGFrame* f) const { return fVertical ? f->GetHeight() : f->GetWidth(); }
Int_t GetLength() const { return GetFrameLength(this); }
Int_t GetAvailableLength() const;
void SetFrameLength (TGFrame* f, Int_t len);
void SetFramePosition(TGFrame* f, Int_t pos);
Int_t NumberOfRealFrames() const;
Int_t LengthOfRealFrames() const;
void ResizeExistingFrames(Int_t amount);
void ExpandExistingFrames(Int_t amount);
void ShrinkExistingFrames(Int_t amount);
void RefitFramesToPack();
void FindFrames(TGFrame* splitter, TGFrame*& f0, TGFrame*& f1);
void AddFrameInternal(TGFrame *f, TGLayoutHints* l = 0);
Int_t RemoveFrameInternal(TGFrame *f);
public:
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 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);
using TGCompositeFrame::Resize;
virtual void Resize(UInt_t w = 0, UInt_t h = 0);
virtual void MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0);
virtual void Layout();
void EqualizeFrames();
void HandleSplitterStart();
void HandleSplitterResize(Int_t delta);
Bool_t GetVertical() const { return fVertical; }
void SetVertical(Bool_t x);
ClassDef(TGPack, 0);
};
#endif
Last change: Thu Dec 11 16:27:48 2008
Last generated: 2008-12-11 16:27
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.