121 {
return fView->HandleSelectionRequest(event); }
123 {
return fView->HandleSelectionClear(event); }
125 {
return fView->HandleSelection(event); }
127 {
return fView->HandleButton(event); }
129 {
return fView->HandleExpose(event); }
131 {
return fView->HandleCrossing(event); }
133 {
return fView->HandleMotion(event); }
135 {
return fView->HandleKey(event); }
137 {
return fView->HandleDoubleClick(event); }
Handle_t Pixmap_t
Pixmap handle.
ULong_t Pixel_t
Pixel value.
int Int_t
Signed integer 4 bytes (int).
long Longptr_t
Integer large enough to hold a pointer (platform-dependent).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
const char Option_t
Option string (const char).
#define ClassDefOverride(name, id)
TGCompositeFrame(const TGCompositeFrame &)=delete
static Pixel_t GetWhitePixel()
Get white pixel value.
UInt_t fHeight
frame height
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.