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