Handle_t Pixmap_t
Pixmap handle.
ULong_t Pixel_t
Pixel value.
#define ClassDefOverride(name, id)
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
The base class for composite widgets (menu bars, list boxes, etc.).
Bool_t HandleKey(Event_t *) override
Bool_t HandleCrossing(Event_t *) override
Bool_t HandleSelection(Event_t *) override
Bool_t HandleDoubleClick(Event_t *) override
Bool_t HandleMotion(Event_t *) override
virtual Bool_t HandleSelectionClear(Event_t *)
static Pixel_t GetWhitePixel()
Get white pixel value.
UInt_t fHeight
frame height
virtual Bool_t HandleSelectionRequest(Event_t *)
Encapsulate a graphics context used in the low level graphics.
Bool_t HandleButton(Event_t *event) override
TGViewFrame & operator=(const TGViewFrame &)=delete
Bool_t HandleSelectionRequest(Event_t *event) override
Bool_t HandleCrossing(Event_t *event) override
Bool_t HandleMotion(Event_t *event) override
Bool_t HandleSelection(Event_t *event) override
TGViewFrame(const TGViewFrame &)=delete
Bool_t HandleSelectionClear(Event_t *event) override
Bool_t HandleKey(Event_t *event) override
Bool_t HandleDoubleClick(Event_t *event) override
Bool_t HandleExpose(Event_t *event) override
A TGView provides the infrastructure for text viewer and editor widgets.
Atom_t fClipboard
clipboard property
Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override
Process scrollbar messages.
TGHScrollBar * fHsb
horizontal scrollbar
TGDimension GetDefaultSize() const override
std::cout << fWidth << "x" << fHeight << std::endl;
void ScrollLeft(Int_t pixels)
virtual Bool_t ItemLayout()
void SetBackgroundColor(Pixel_t) override
Set background color of the canvas frame.
void ScrollRight(Int_t pixels)
void DrawBorder() override
Draw the border of the text edit widget.
TGDimension fVirtualSize
the current virtual window size
TGVScrollBar * fVsb
vertical scrollbar
const TGGC & GetViewWhiteGC()
TGLongPosition ToPhysical(TGLongPosition coord) const
TGLongPosition fMousePos
position of mouse
void SetLayoutManager(TGLayoutManager *) override
Set the layout manager for the composite frame.
void ScrollUp(Int_t pixels)
Bool_t HandleButton(Event_t *event) override
handle button
TGLongPosition fVisible
position of visible region
void ScrollDown(Int_t pixels)
virtual void UpdateBackgroundStart()
set some gc values
TGLongPosition ToVirtual(TGLongPosition coord) const
void Layout() override
layout view
TGView(const TGView &)=delete
void ChangeBackground(Pixel_t) override
Change background color of the canvas frame.
TGViewFrame * GetCanvas() const
virtual void SetVisibleStart(Int_t newTop, Int_t direction)
Scroll view in specified direction to make newTop the visible location.
~TGView() override
Delete view.
Int_t fScrolling
scrolling direction
TGLongPosition GetScrollPosition() const
void DoRedraw() override
redraw
TGLongPosition fScrollVal
scroll value
TGViewFrame * fCanvas
frame containing the text
void SetBackgroundPixmap(Pixmap_t p) override
Set backgound pixmap.
void Clear(Option_t *="") override
Clear view.
virtual void UpdateRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
update a part of view
virtual void ScrollCanvas(Int_t newTop, Int_t direction)
Scroll the canvas to new_top in the kVertical or kHorizontal direction.
virtual void DrawRegion(Int_t x, Int_t y, UInt_t width, UInt_t height)
Draw region.
TGGC fWhiteGC
graphics context used for scrolling generates GraphicsExposure events
virtual void ScrollToPosition(TGLongPosition newPos)
Scroll the canvas to pos.
TGLongPosition GetScrollValue() const
TGDimension GetVirtualSize() const
TGView & operator=(const TGView &)=delete
TGRectangle fExposedRegion
exposed area
Bool_t HandleExpose(Event_t *event) override
Handle expose events.
ROOT GUI Window base class.