34class TGContainerTimer;
35class TGContainerKeyboardTimer;
36class TGContainerScrollTimer;
#define ClassDef(name, id)
virtual void SetContainer(TGFrame *f)
TGFrame * GetContainer() const
virtual void MapSubwindows()
Map all canvas sub windows.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a canvas widget as a C++ statement(s) on output stream out.
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
TGCanvas & operator=(const TGCanvas &)
virtual void SetHsbPosition(Int_t newPos)
Set position of horizontal scrollbar.
virtual Int_t GetVsbPosition() const
Get position of vertical scrollbar.
virtual void DrawBorder()
Draw canvas border.
TGHScrollBar * fHScrollbar
TGVScrollBar * GetVScrollbar() const
TGVScrollBar * fVScrollbar
TGViewPort * GetViewPort() const
virtual Int_t GetHsbPosition() const
Get position of horizontal scrollbar.
virtual void ClearViewPort()
Clear view port and redraw content.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Adding a frame to a canvas is actually adding the frame to the viewport container.
TGCanvas(const TGCanvas &)
@ kCanvasScrollHorizontal
Int_t GetScrolling() const
virtual void Layout()
Create layout for canvas.
void SetScrolling(Int_t scrolling)
Set scrolling policy.
virtual ~TGCanvas()
Delete canvas.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Handle message generated by the canvas scrollbars.
TGHScrollBar * GetHScrollbar() const
virtual Bool_t HandleExpose(Event_t *event)
Handle expose events. Do not use double buffer.
TGContainer & operator=(const TGContainer &)
TGRectangle fExposedRegion
virtual void ActivateItem(TGFrameElement *el)
Activate item.
virtual void Associate(const TGWindow *w)
virtual void RemoveItem(TGFrame *item)
Remove item from container.
virtual TGFrame * GetLastActive() const
virtual Bool_t HandleMotion(Event_t *event)
Handle mouse motion events.
virtual void RepeatSearch()
Repeats search.
virtual void UnSelectAll()
Unselect all items in the container.
virtual Bool_t HandleKey(Event_t *event)
The key press event handler converts a key press to some line editor action.
virtual void PageDown(Bool_t select=kFALSE)
Move position one page down.
virtual Bool_t HandleButton(Event_t *event)
Handle mouse button event in container.
virtual void LineLeft(Bool_t select=kFALSE)
Move current position one column left.
virtual void ClearViewPort()
Clear view port and redraw full content.
const TGWindow * fMsgWindow
virtual TGFrameElement * FindFrame(Int_t x, Int_t y, Bool_t exclude=kTRUE)
Find frame located int container at position x,y.
virtual void AdjustPosition()
Move content to position of highlighted/activated frame.
virtual void OnMouseOver(TGFrame *)
Signal emitted when pointer is over entry.
virtual void Clicked(TGFrame *f, Int_t btn)
Emit Clicked() signal.
virtual void InvertSelection()
Invert the selection, all selected items become unselected and vice versa.
virtual void PageUp(Bool_t select=kFALSE)
Move position one page up.
virtual void LineDown(Bool_t select=kFALSE)
Move one line down.
virtual const TGFrame * GetNextSelected(void **current)
Return the next selected item.
virtual void Search(Bool_t close=kTRUE)
Invokes search dialog. Looks for item with the entered name.
virtual ~TGContainer()
Delete canvas container.
virtual void LineUp(Bool_t select=kFALSE)
Make current position first line in window by scrolling up.
virtual void Home(Bool_t select=kFALSE)
Move to upper-left corner of container.
virtual void KeyPressed(TGFrame *, UInt_t keysym, UInt_t mask)
Signal emitted when keyboard key pressed.
virtual void SetDragPixmap(const TGPicture *pic)
Set drag window pixmaps and hotpoint.
virtual Int_t NumSelected() const
const TGPicture * GetObjPicture(TGFrame *f)
Retrieve icons associated with class "name".
virtual void SetVsbPosition(Int_t newPos)
Set position of vertical scrollbar.
TGCanvas * GetCanvas() const
virtual void ReturnPressed(TGFrame *)
Signal emitted when Return/Enter key pressed.
virtual void SearchPattern()
Search for entry which name begins with pattern.
virtual void SetPageDimension(const TGDimension &dim)
Set page dimension.
virtual void LineRight(Bool_t select=kFALSE)
Move current position one column right.
virtual void SpacePressed(TGFrame *)
Signal emitted when space key pressed.
virtual void SetHsbPosition(Int_t newPos)
set new hor. position
virtual void DoRedraw()
Redraw content of container in the viewport region.
virtual TGDimension GetPageDimension() const
Returns page dimension.
TGContainer(const TGContainer &)
virtual void Layout()
Layout container entries.
virtual void OnAutoScroll()
Autoscroll while close to & beyond The Wall.
static const TGGC & GetLineGC()
Get graphics context for line drawing.
virtual void SavePrimitive(std::ostream &out, Option_t *option="")
Save a canvas container as a C++ statement(s) on output stream out.
virtual void CurrentChanged(Int_t x, Int_t y)
Emit signal when current position changed.
virtual void DrawRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
Draw a region of container in viewport.
virtual void RemoveAll()
Remove all items from the container.
friend class TGContainerScrollTimer
virtual Int_t NumItems() const
virtual TGVScrollBar * GetVScrollbar() const
returns pointer to vert. scroll bar
virtual TGFrame * FindFrameByName(const char *name)
Find frame by name.
friend class TGContainerKeyboardTimer
virtual void * FindItem(const TString &name, Bool_t direction=kTRUE, Bool_t caseSensitive=kTRUE, Bool_t subString=kFALSE)
virtual Bool_t HandleDoubleClick(Event_t *event)
Handle double click mouse event.
const TGWindow * GetMessageWindow() const
virtual void DoubleClicked(TGFrame *f, Int_t btn)
Emit DoubleClicked() signal.
virtual TGPosition GetPagePosition() const
Returns page position.
virtual void End(Bool_t select=kFALSE)
Move to the bottom-right corner of container.
virtual void SetPagePosition(const TGPosition &pos)
Set page position.
virtual Bool_t HandleDNDFinished()
virtual TGHScrollBar * GetHScrollbar() const
returns pointer to hor. scroll bar
TGFrameElement * fLastActiveEl
virtual void SelectAll()
Select all items in the container.
virtual void DeActivateItem(TGFrameElement *el)
DeActivate item.
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
virtual void DrawBorder()
Draw frame border.
TGFrame * GetContainer() const
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual Bool_t HandleConfigureNotify(Event_t *event)
Handle resize events.
void SetContainer(TGFrame *f)
Add container frame to the viewport.
virtual void Layout()
Layout the elements of the composite frame.
virtual void SetHPos(Int_t xpos)
Moves content of container frame in horizontal direction.
virtual void SetVPos(Int_t ypos)
Moves content of container frame in vertical direction.
void SetPos(Int_t xpos, Int_t ypos)
Goto new position.
TGViewPort & operator=(const TGViewPort &)
TGViewPort(const TGViewPort &)
Handles synchronous and a-synchronous timer events.