library: libGui
#include "TGCanvas.h"

TGContainer


class description - header file - source file
viewCVS header - viewCVS source

class TGContainer: public TGCompositeFrame

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TGContainer(TGCanvas* p, UInt_t options = kSunkenFrame, Pixel_t back = GetDefaultFrameBackground())
TGContainer(const TGWindow* p = 0, UInt_t w = 1, UInt_t h = 1, UInt_t options = kSunkenFrame, Pixel_t back = GetDefaultFrameBackground())
virtual~TGContainer()
voidTObject::AbstractMethod(const char* method) const
virtual voidTGFrame::Activate(Bool_t)
virtual voidTGCompositeFrame::AddFrame(TGFrame* f, TGLayoutHints* l = 0)
voidTGFrame::AddInput(UInt_t emask)
virtual voidAdjustPosition()
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidAssociate(const TGWindow* w)
virtual voidTObject::Browse(TBrowser* b)
virtual voidTGFrame::ChangeBackground(Pixel_t back)
virtual voidTQObject::ChangedBy(const char* method)
virtual voidTGCompositeFrame::ChangeOptions(UInt_t options)
virtual voidTGCompositeFrame::ChangeSubframesBackground(Pixel_t back)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTGCompositeFrame::Cleanup()
virtual voidTObject::Clear(Option_t* = "")
virtual voidClicked(TGFrame* f, Int_t btn)
virtual voidClicked(TGFrame* f, Int_t btn, Int_t x, Int_t y)
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
Bool_tTQObject::Connect(const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(TQObject* sender, const char* signal, const char* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::Connect(const char* sender_class, const char* signal, const char* receiver_class, void* receiver, const char* slot)
virtual voidTQObject::Connected(const char*)
Bool_tTGFrame::Contains(Int_t x, Int_t y) const
virtual voidTObject::Copy(TObject& object) const
virtual voidCurrentChanged(TGFrame* f)
virtual voidCurrentChanged(Int_t x, Int_t y)
virtual voidTGFrame::Delete(Option_t* = "")
virtual voidTGFrame::DeleteWindow()
virtual voidTQObject::Destroyed()
virtual voidTGWindow::DestroySubwindows()
virtual voidTGWindow::DestroyWindow()
Bool_tTQObject::Disconnect(const char* signal = "0", void* receiver = 0, const char* slot = "0")
static Bool_tTQObject::Disconnect(TQObject* sender, const char* signal = "0", void* receiver = 0, const char* slot = "0")
static Bool_tTQObject::Disconnect(const char* class_name, const char* signal, void* receiver = 0, const char* slot = "0")
virtual voidTQObject::Disconnected(const char*)
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidDoubleClicked(TGFrame* f, Int_t btn)
virtual voidDoubleClicked(TGFrame* f, Int_t btn, Int_t x, Int_t y)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTGFrame::DrawBorder()
virtual voidTGFrame::DrawClass() const
virtual TObject*TGFrame::DrawClone(Option_t* = "") const
virtual voidTGFrame::DrawCopy(Handle_t, Int_t, Int_t)
virtual voidDrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
virtual voidTGFrame::Dump() const
voidTQObject::Emit(const char* signal)
voidTQObject::Emit(const char* signal, Long_t* paramArr)
voidTQObject::Emit(const char* signal, const char* params)
voidTQObject::Emit(const char* signal, Double_t param)
voidTQObject::Emit(const char* signal, Long_t param)
voidTQObject::Emit(const char* signal, Long64_t param)
voidTQObject::Emit(const char* signal, Bool_t param)
voidTQObject::Emit(const char* signal, Char_t param)
voidTQObject::Emit(const char* signal, UChar_t param)
voidTQObject::Emit(const char* signal, Short_t param)
voidTQObject::Emit(const char* signal, UShort_t param)
voidTQObject::Emit(const char* signal, Int_t param)
voidTQObject::Emit(const char* signal, UInt_t param)
voidTQObject::Emit(const char* signal, ULong_t param)
voidTQObject::Emit(const char* signal, ULong64_t param)
voidTQObject::Emit(const char* signal, Float_t param)
voidTQObject::EmitVA(const char* signal, Int_t nargs)
voidTQObject::EmitVA(const char* signal, Int_t nargs, va_list va)
virtual voidEnd(Bool_t select = kFALSE)
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TGFrameElement*FindFrame(Int_t x, Int_t y, Bool_t exclude = kTRUE)
virtual TGFrame*FindFrameByName(const char* name)
virtual void*FindItem(const TString& name, Bool_t direction = kTRUE, Bool_t caseSensitive = kTRUE, Bool_t beginWith = kFALSE)
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Pixel_tTGFrame::GetBackground() const
static const TGGC&TGFrame::GetBckgndGC()
static const TGGC&TGFrame::GetBlackGC()
static Pixel_tTGFrame::GetBlackPixel()
Int_tTGFrame::GetBorderWidth() const
TGCanvas*GetCanvas() const
TGClient*TGObject::GetClient() const
static Int_tTGWindow::GetCounter()
static Pixel_tTGFrame::GetDefaultFrameBackground()
virtual UInt_tTGCompositeFrame::GetDefaultHeight() const
static Pixel_tTGFrame::GetDefaultSelectedBackground()
virtual TGDimensionTGCompositeFrame::GetDefaultSize() const
virtual UInt_tTGCompositeFrame::GetDefaultWidth() const
virtual Int_tTGFrame::GetDragType() const
virtual Option_t*TObject::GetDrawOption() const
virtual Int_tTGFrame::GetDropType() const
static Long_tTObject::GetDtorOnly()
virtual UInt_tTGWindow::GetEditDisabled() const
UInt_tTGFrame::GetEventMask() const
virtual Pixel_tTGFrame::GetForeground() const
TGFrameElement*TGFrame::GetFrameElement() const
virtual TGFrame*TGCompositeFrame::GetFrameFromPoint(Int_t x, Int_t y)
UInt_tTGFrame::GetHeight() const
static const TGGC&TGFrame::GetHilightGC()
virtual TGHScrollBar*GetHScrollbar() const
virtual const char*TObject::GetIconName() const
Handle_tTGObject::GetId() const
virtual TGFrame*GetLastActive() const
virtual TGLayoutManager*TGCompositeFrame::GetLayoutManager() const
virtual TList*TGCompositeFrame::GetList() const
TList*TQObject::GetListOfClassSignals() const
TList*TQObject::GetListOfConnections() const
TList*TQObject::GetListOfSignals() const
virtual const TGWindow*TGWindow::GetMainFrame() const
UInt_tTGFrame::GetMaxHeight() const
UInt_tTGFrame::GetMaxWidth() const
const TGWindow*GetMessageWindow() const
UInt_tTGFrame::GetMinHeight() const
UInt_tTGFrame::GetMinWidth() const
virtual const char*TGWindow::GetName() const
virtual const TGFrame*GetNextSelected(void** current)
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
virtual UInt_tTGFrame::GetOptions() const
TGDimensionGetPageDimension() const
TGPositionGetPagePosition() const
const TGWindow*TGWindow::GetParent() const
static const TGGC&TGFrame::GetShadowGC()
TGDimensionTGFrame::GetSize() const
Int_tTGCompositeFrame::GetState(TGFrame* f) const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual TGVScrollBar*GetVScrollbar() const
static const TGGC&TGFrame::GetWhiteGC()
static Pixel_tTGFrame::GetWhitePixel()
UInt_tTGFrame::GetWidth() const
Int_tTGFrame::GetX() const
Int_tTGFrame::GetY() const
virtual Bool_tHandleButton(Event_t* event)
virtual Bool_tTGFrame::HandleClientMessage(Event_t* event)
virtual Bool_tTGFrame::HandleColormapChange(Event_t*)
virtual Bool_tTGFrame::HandleConfigureNotify(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleCrossing(Event_t*)
virtual Bool_tHandleDoubleClick(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleDragDrop(TGFrame* frame, Int_t x, Int_t y, TGLayoutHints* lo)
virtual Bool_tTGCompositeFrame::HandleDragEnter(TGFrame*)
virtual Bool_tTGCompositeFrame::HandleDragLeave(TGFrame*)
virtual Bool_tTGCompositeFrame::HandleDragMotion(TGFrame*)
virtual Bool_tTGFrame::HandleEvent(Event_t* event)
virtual Bool_tHandleExpose(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleFocusChange(Event_t*)
virtual Bool_tTGWindow::HandleIdleEvent(TGIdleHandler*)
virtual Bool_tHandleKey(Event_t* event)
virtual Bool_tHandleMotion(Event_t* event)
virtual Bool_tTGCompositeFrame::HandleSelection(Event_t*)
virtual Bool_tTGFrame::HandleSelectionClear(Event_t*)
virtual Bool_tTGFrame::HandleSelectionRequest(Event_t*)
virtual Bool_tTGWindow::HandleTimer(TTimer*)
virtual Bool_tTQObject::HasConnection(const char* signal_name) const
virtual ULong_tTGObject::Hash() const
virtual voidTGCompositeFrame::HideFrame(TGFrame* f)
virtual voidTQObject::HighPriority(const char* signal_name, const char* slot_name = "0")
virtual voidHome(Bool_t select = kFALSE)
virtual voidTGWindow::IconifyWindow()
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTGFrame::Inspect() const
voidTObject::InvertBit(UInt_t f)
virtual voidInvertSelection()
virtual TClass*IsA() const
virtual Bool_tTGFrame::IsActive() const
Bool_tTGCompositeFrame::IsArranged(TGFrame* f) const
Bool_tTGCompositeFrame::IsArranged(TGFrameElement* ptr) const
virtual Bool_tTGCompositeFrame::IsComposite() const
virtual Bool_tTGCompositeFrame::IsEditable() const
virtual Bool_tTGObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
virtual Bool_tTGCompositeFrame::IsLayoutBroken() const
virtual Bool_tTGWindow::IsMapped()
virtual Bool_tTGCompositeFrame::IsMapSubwindows() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTGCompositeFrame::IsVisible(TGFrame* f) const
Bool_tTGCompositeFrame::IsVisible(TGFrameElement* ptr) const
Bool_tTObject::IsZombie() const
virtual voidKeyPressed(TGFrame*, UInt_t keysym, UInt_t mask)
virtual voidLayout()
virtual voidLineDown(Bool_t select = kFALSE)
virtual voidLineLeft(Bool_t select = kFALSE)
virtual voidLineRight(Bool_t select = kFALSE)
virtual voidLineUp(Bool_t select = kFALSE)
static voidTQObject::LoadRQ_OBJECT()
virtual voidTGWindow::LowerWindow()
virtual voidTQObject::LowPriority(const char* signal_name, const char* slot_name = "0")
virtual voidTObject::ls(Option_t* option = "") const
virtual voidTGFrame::MapRaised()
virtual voidTGCompositeFrame::MapSubwindows()
virtual voidTGFrame::MapWindow()
voidTObject::MayNotUse(const char* method) const
virtual voidTQObject::Message(const char* msg)
virtual voidTGFrame::Move(Int_t x, Int_t y)
virtual voidTGFrame::MoveResize(Int_t x, Int_t y, UInt_t w = 0, UInt_t h = 0)
virtual Int_tTGCompositeFrame::MustCleanup() const
virtual Bool_tTObject::Notify()
virtual Int_tTQObject::NumberOfConnections() const
virtual Int_tTQObject::NumberOfSignals() const
virtual Int_tNumItems() const
virtual Int_tNumSelected() const
virtual voidOnMouseOver(TGFrame*)
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidPageDown(Bool_t select = kFALSE)
virtual voidPageUp(Bool_t select = kFALSE)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTGCompositeFrame::Print(Option_t* option = "") const
virtual voidTGFrame::ProcessedEvent(Event_t* event)
virtual Bool_tTGCompositeFrame::ProcessMessage(Long_t, Long_t, Long_t)
virtual voidTGWindow::RaiseWindow()
virtual Int_tTObject::Read(const char* name)
virtual voidTGFrame::ReallyDelete()
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidRemoveAll()
virtual voidTGCompositeFrame::RemoveFrame(TGFrame* f)
voidTGFrame::RemoveInput(UInt_t emask)
virtual voidRemoveItem(TGFrame* item)
virtual voidTGFrame::ReparentWindow(const TGWindow* p, Int_t x = 0, Int_t y = 0)
virtual voidTGWindow::RequestFocus()
voidTObject::ResetBit(UInt_t f)
virtual voidTGFrame::Resize(TGDimension size)
virtual voidTGFrame::Resize(UInt_t w = 0, UInt_t h = 0)
virtual voidReturnPressed(TGFrame*)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") const
virtual voidSavePrimitive(ostream& out, Option_t* option = "")
virtual voidTGCompositeFrame::SavePrimitiveSubframes(ostream& out, Option_t* option = "")
voidTGFrame::SaveUserColor(ostream& out, Option_t*)
virtual voidSearch(Bool_t close = kTRUE)
virtual voidSelectAll()
virtual voidTGFrame::SendMessage(const TGWindow* w, Long_t msg, Long_t parm1, Long_t parm2)
virtual voidTGFrame::SetBackgroundColor(Pixel_t back)
virtual voidTGWindow::SetBackgroundPixmap(Pixmap_t pixmap)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTGCompositeFrame::SetCleanup(Int_t mode = kLocalCleanup)
virtual voidTGFrame::SetDragType(Int_t type)
virtual voidTGFrame::SetDrawOption(Option_t* = "")
virtual voidTGFrame::SetDropType(Int_t type)
static voidTObject::SetDtorOnly(void* obj)
virtual voidTGCompositeFrame::SetEditable(Bool_t on = kTRUE)
virtual voidTGCompositeFrame::SetEditDisabled(UInt_t on = 1)
virtual voidTGFrame::SetForegroundColor(Pixel_t)
voidTGFrame::SetFrameElement(TGFrameElement* fe)
virtual voidTGFrame::SetHeight(UInt_t h)
virtual voidSetHsbPosition(Int_t newPos)
virtual voidTGCompositeFrame::SetLayoutBroken(Bool_t on = kTRUE)
virtual voidTGCompositeFrame::SetLayoutManager(TGLayoutManager* l)
virtual voidTGCompositeFrame::SetMapSubwindows(Bool_t on)
virtual voidTGFrame::SetMaxHeight(UInt_t h)
virtual voidTGFrame::SetMaxWidth(UInt_t w)
virtual voidTGFrame::SetMinHeight(UInt_t h)
virtual voidTGFrame::SetMinWidth(UInt_t w)
virtual voidTGWindow::SetName(const char* name)
static voidTObject::SetObjectStat(Bool_t stat)
virtual voidSetPageDimension(const TGDimension& dim)
virtual voidSetPageDimension(UInt_t w, UInt_t h)
virtual voidSetPagePosition(const TGPosition& pos)
virtual voidSetPagePosition(Int_t x, Int_t y)
virtual voidTGFrame::SetSize(const TGDimension& s)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidSetVsbPosition(Int_t newPos)
virtual voidTGFrame::SetWidth(UInt_t w)
virtual voidTGWindow::SetWindowName(const char* name = "0")
virtual voidTGFrame::SetX(Int_t x)
virtual voidTGFrame::SetY(Int_t y)
virtual voidTGCompositeFrame::ShowFrame(TGFrame* f)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidSpacePressed(TGFrame*)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual Bool_tTGCompositeFrame::TranslateCoordinates(TGFrame* child, Int_t x, Int_t y, Int_t& fx, Int_t& fy)
virtual voidTGFrame::UnmapWindow()
virtual voidUnSelectAll()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = "0", Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidActivateItem(TGFrameElement* el)
static Int_tTQObject::CheckConnectArgs(TQObject* sender, TClass* sender_class, const char* signal, TClass* receiver_class, const char* slot)
virtual voidClearViewPort()
static Bool_tTQObject::ConnectToClass(TQObject* sender, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
static Bool_tTQObject::ConnectToClass(const char* sender_class, const char* signal, TClass* receiver_class, void* receiver, const char* slot)
virtual voidDeActivateItem(TGFrameElement* el)
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
virtual voidDoRedraw()
virtual voidTGFrame::Draw3dRectangle(UInt_t type, Int_t x, Int_t y, UInt_t w, UInt_t h)
static Time_tTGFrame::GetLastClick()
static const TGGC&GetLineGC()
TStringTGFrame::GetOptionString() const
const TGResourcePool*TGFrame::GetResourcePool() const
virtual void*TGFrame::GetSender()
virtual const char*TQObject::GetSenderClassName() const
voidTObject::MakeZombie()
virtual voidOnAutoScroll()
virtual voidRepeatSearch()
virtual voidSearchPattern()
virtual voidTGFrame::StartGuiBuilding(Bool_t on = kTRUE)
private:
TGContainer(const TGContainer&)
TGContainer&operator=(const TGContainer&)

Data Members

public:
enum TGWindow::EEditMode { kEditEnable
kEditDisable
kEditDisableEvents
kEditDisableGrab
kEditDisableLayout
kEditDisableResize
kEditDisableHeight
kEditDisableWidth
kEditDisableBtnEnable
kEditDisableKeyEnable
};
enum TObject::EStatusBits { kCanDelete
kMustCleanup
kObjInCanvas
kIsReferenced
kHasUUID
kCannotPick
kNoContextMenu
kInvalidObject
};
enum TObject::[unnamed] { kIsOnHeap
kNotDeleted
kZombie
kBitMask
kSingleKey
kOverwrite
kWriteDelete
};
protected:
TGViewPort*fViewPortcontainer viewport
TGCanvas*fCanvaspointer to canvas
const TGWindow*fMsgWindowwindow handling container messages
TGFrameElement*fLastActiveEllast active item
Int_tfXp
Int_tfYpprevious pointer position
Int_tfX0
Int_tfY0corner of rubber band box
Int_tfXf
Int_tfYfother corner of rubber band box
Bool_tfDraggingtrue if in dragging mode
Int_tfTotaltotal items
Int_tfSelectednumber of selected items
TTimer*fScrollTimerautoscroll timer
Bool_tfOnMouseOverkTRUE when mouse pointer is over entry
Bool_tfLastDirdirection of last search
Bool_tfLastCasecase sensetivity of last search
TStringfLastNamethe name of object of last search
TTimer*fKeyTimerkeyboard timer
TStringfKeyInputkeyboard input (buffer)
Bool_tfKeyTimerActivekTRUE - keyboard timer is active
Bool_tfScrollingkTRUE - when scrolling is ON
static TGGC*fgLineGC
TGLayoutManager*TGCompositeFrame::fLayoutManagerlayout manager
TList*TGCompositeFrame::fListcontainer of frame elements
Bool_tTGCompositeFrame::fLayoutBrokenno layout manager is used
Int_tTGCompositeFrame::fMustCleanupcleanup mode (see EFrameCleanup)
Bool_tTGCompositeFrame::fMapSubwindowskTRUE - map subwindows
static TGLayoutHints*TGCompositeFrame::fgDefaultHintsdefault hints used by AddFrame()
Int_tTGFrame::fXframe x position
Int_tTGFrame::fYframe y position
UInt_tTGFrame::fWidthframe width
UInt_tTGFrame::fHeightframe height
UInt_tTGFrame::fMinWidthminimal frame width
UInt_tTGFrame::fMinHeightminimal frame height
UInt_tTGFrame::fMaxWidthmaximal frame width
UInt_tTGFrame::fMaxHeightmaximal frame height
Int_tTGFrame::fBorderWidthframe border width
UInt_tTGFrame::fOptionsframe options
Pixel_tTGFrame::fBackgroundframe background color
UInt_tTGFrame::fEventMaskcurrenty active event mask
TGFrameElement*TGFrame::fFEpointer to frame element
static Bool_tTGFrame::fgInit
static Pixel_tTGFrame::fgDefaultFrameBackground
static Pixel_tTGFrame::fgDefaultSelectedBackground
static Pixel_tTGFrame::fgWhitePixel
static Pixel_tTGFrame::fgBlackPixel
static const TGGC*TGFrame::fgBlackGC
static const TGGC*TGFrame::fgWhiteGC
static const TGGC*TGFrame::fgHilightGC
static const TGGC*TGFrame::fgShadowGC
static const TGGC*TGFrame::fgBckgndGC
static Time_tTGFrame::fgLastClick
static UInt_tTGFrame::fgLastButton
static Int_tTGFrame::fgDbx
static Int_tTGFrame::fgDby
static Window_tTGFrame::fgDbw
static UInt_tTGFrame::fgUserColor
const TGWindow*TGWindow::fParentParent window
Bool_tTGWindow::fNeedRedrawkTRUE if window needs to be redrawn
TStringTGWindow::fNamename of the window used in SavePrimitive()
static Int_tTGWindow::fgCountercounter of created windows in SavePrimitive
UInt_tTGWindow::fEditDisabledflags used for "guibuilding"
Handle_tTGObject::fIdX11/Win32 Window identifier
TGClient*TGObject::fClientConnection to display server
TList*TQObject::fListOfSignals! list of signals from this object
TList*TQObject::fListOfConnections! list of connections to this object

Class Description

                                                                      
 TGCanvas and TGViewPort and TGContainer                              
                                                                      
 A TGCanvas is a frame containing two scrollbars (a horizontal and    
 a vertical) and a viewport. The viewport acts as the window through  
 which we look at the contents of the container frame.                
                                                                      
 A TGContainer frame manages a content area. It can display and       
 control a hierarchy of multi-column items, and provides the ability  
 to add new items at any time. By default it doesn't map subwindows   
 which are items of the container. In this case subwindow must        
 provide DrawCopy method, see for example TGLVEntry class.            
 It is also possible to use option which allow to map subwindows.     
 This option has much slower drawing speed in case of more than 1000  
 items placed in container. To activate this option the fMapSubwindows
 data member must be set to kTRUE (for example TTVLVContainer class)  
                                                                      
   The TGContainer class can handle the keys:                         
                                                                      
    o  F7, Ctnrl-F - activate search dialog                           
    o  F3, Ctnrl-G - continue search                                  
    o  End - go to the last item in container                         
    o  Home - go to the first item in container                       
    o  PageUp,PageDown,arrow keys - navigate inside container         
    o  Return/Enter - equivalent to double click of the mouse button  
    o  Contrl-A - select/activate all items.                          
    o  Space - invert selection.                                      
                                                                      

TGContainer(const TGWindow *p, UInt_t w, UInt_t h, UInt_t options, ULong_t back)
 Create a canvas container. This is the (large) frame that contains
 all the list items. It will be shown through a TGViewPort (which is
 created by the TGCanvas).
TGContainer(TGCanvas *p, UInt_t options, ULong_t back)
 Create a canvas container. This is the (large) frame that contains
 all the list items. It will be shown through a TGViewPort (which is
 created by the TGCanvas).
~TGContainer()
 Delete canvas container.
void Layout()
 Layout container entries.
void CurrentChanged(Int_t x, Int_t y)
 Emit signal when current position changed.
void CurrentChanged(TGFrame* f)
 Emit signal when current selected frame changed.
void KeyPressed(TGFrame *frame, UInt_t keysym, UInt_t mask)
 Signal emitted when keyboard key pressed

 frame - activated frame
 keysym - defined in "KeySymbols.h"
 mask - modifier key mask, defined in "GuiTypes.h"

 const Mask_t kKeyShiftMask   = BIT(0);
 const Mask_t kKeyLockMask    = BIT(1);
 const Mask_t kKeyControlMask = BIT(2);
 const Mask_t kKeyMod1Mask    = BIT(3);   // typically the Alt key
 const Mask_t kButton1Mask    = BIT(8);
 const Mask_t kButton2Mask    = BIT(9);
 const Mask_t kButton3Mask    = BIT(10);
 const Mask_t kButton4Mask    = BIT(11);
 const Mask_t kButton5Mask    = BIT(12);
 const Mask_t kAnyModifier    = BIT(15);
void ReturnPressed(TGFrame* f)
 Signal emitted when Return/Enter key pressed.
 It's equivalent to "double click" of mouse button.
void SpacePressed(TGFrame* f)
 Signal emitted when space key pressed.
 Pressing space key inverts selection.
void OnMouseOver(TGFrame* f)
 Signal emitted when pointer is over entry.
void Clicked(TGFrame *entry, Int_t btn)
 Emit Clicked() signal.
void Clicked(TGFrame *entry, Int_t btn, Int_t x, Int_t y)
 Emit Clicked() signal.
void DoubleClicked(TGFrame *entry, Int_t btn)
 Emit DoubleClicked() signal.
void DoubleClicked(TGFrame *entry, Int_t btn, Int_t x, Int_t y)
 Emit DoubleClicked() signal.
void SelectAll()
 Select all items in the container.
 SelectAll() signal emitted.
void UnSelectAll()
 Unselect all items in the container.
void InvertSelection()
 Invert the selection, all selected items become unselected and
 vice versa.
void RemoveAll()
 Remove all items from the container.
void RemoveItem(TGFrame *item)
 Remove item from container.
const TGFrame * GetNextSelected(void **current)
 Return next selected item.
void ActivateItem(TGFrameElement* el)
 Activate item.
void DeActivateItem(TGFrameElement* el)
 DeActivate item.
TGPosition GetPagePosition()
 Returns page position.
TGDimension GetPageDimension()
 Returns page dimension.
void SetPagePosition(const TGPosition& pos)
 Set page position.
void SetPagePosition(Int_t x, Int_t y)
 Set page position.
void SetPageDimension(const TGDimension& dim)
 Set page dimension.
void SetPageDimension(UInt_t w, UInt_t h)
 Set page dimension.
void DoRedraw()
 Redraw content of container in the viewport region.
void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
 Draw a region of container in viewport.
void ClearViewPort()
 Clear view port.
Bool_t HandleExpose(Event_t *event)
 Handle expose events. Do not use double buffer.
Bool_t HandleButton(Event_t *event)
 Handle mouse button event in container.
Bool_t HandleDoubleClick(Event_t *event)
 Handle double click mouse event.
Bool_t HandleMotion(Event_t *event)
 Handle mouse motion events.
Bool_t HandleKey(Event_t *event)
 The key press event handler converts a key press to some line editor
 action.
TGFrame * FindFrameByName(const char *name)
 Find frame by name.
void Search(Bool_t close)
 Invokes search dialog. Looks for item with the entered name.
void OnAutoScroll()
 Autoscroll while close to & beyond  The Wall
void SearchPattern()
 Search for entry which name begins with pattern.
void RepeatSearch()
 Repeats search.
TGFrameElement * FindFrame(Int_t x,Int_t y,Bool_t exclude)
 Find frame located int container at position x,y.
void * FindItem(const TString& name, Bool_t direction, Bool_t caseSensitive, Bool_t beginWith)
TGHScrollBar * GetHScrollbar()
 returns pointer to hor. scroll bar
TGVScrollBar * GetVScrollbar()
 returns pointer to vert. scroll bar
void SetVsbPosition(Int_t newPos)
 Set position of vertical scrollbar.
void SetHsbPosition(Int_t newPos)
 set new hor. position
void AdjustPosition()
 Move content to position of highlighted/activated frame.
void LineLeft(Bool_t select)
 Move current position one column left.
void LineRight(Bool_t select)
 Move current position one column right.
void LineUp(Bool_t select)
 Make current position first line in window by scrolling up.
void LineDown(Bool_t select)
 Move one line down.
void PageUp(Bool_t select)
 Move  position one page up.
void PageDown(Bool_t select)
 Move position one page down.
void Home(Bool_t select)
 Move to upper-left corner of container.
void End(Bool_t select)
 Move to the bottom-right corner of container.
const TGGC & GetLineGC()
 Get graphics context for line drawing.
void SavePrimitive(ostream &out, Option_t *option /*= ""*/)
 Save a canvas container as a C++ statement(s) on output stream out.
TGContainer(const TGContainer&)
TGContainer& operator=(const TGContainer&)
void Associate(const TGWindow *w)
{ fMsgWindow = w; }
const TGWindow * GetMessageWindow()
{ return fMsgWindow; }
TGCanvas * GetCanvas()
{ return fCanvas; }
Int_t NumSelected()
{ return fSelected; }
Int_t NumItems()
{ return fTotal; }
TGFrame * GetLastActive()
{ return fLastActiveEl ? fLastActiveEl->fFrame : 0; }

Author: Fons Rademakers 11/01/98
Last update: root/gui:$Name: $:$Id: TGCanvas.cxx,v 1.49 2006/07/26 13:36:43 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.