52#include "RConfigure.h"
112 if (!(sboptions &
kNoHSB)) {
120 if (!(sboptions &
kNoVSB)) {
348 Bool_t need_vsb, need_hsb;
351 need_vsb = need_hsb =
kFALSE;
455 if (pos.
fX < 0) pos.
fX = 0;
456 if (pos.
fY < 0) pos.
fY = 0;
467 Int_t xsrc, ysrc, xdest, ydest;
469 Int_t cpyheight = 0, cpywidth = 0;
const Mask_t kWABitGravity
Handle_t Pixmap_t
Pixmap handle.
const Mask_t kButtonMotionMask
const Mask_t kFocusChangeMask
const Mask_t kButtonPressMask
const Mask_t kWAWinGravity
const Mask_t kAnyModifier
const Mask_t kKeyPressMask
const Mask_t kKeyShiftMask
const Mask_t kKeyControlMask
const Mask_t kLeaveWindowMask
const Mask_t kButtonReleaseMask
const Mask_t kEnterWindowMask
ULong_t Pixel_t
Pixel value.
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 WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t rect
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
const TGResourcePool * GetResourcePool() const
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
The base class for composite widgets (menu bars, list boxes, etc.).
TGLayoutManager * fLayoutManager
layout manager
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
Int_t MustCleanup() const override
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
Move and/or resize the frame.
static const TGGC & GetBlackGC()
Get black graphics context.
UInt_t fOptions
frame options
UInt_t fHeight
frame height
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultHeight() const
virtual void DrawBorder()
Draw frame border.
Int_t fBorderWidth
frame border width
void SetBackgroundColor(Pixel_t back) override
Set background color (override from TGWindow base class).
void MapWindow() override
map window
static const TGGC & GetHilightGC()
Get highlight color graphics context.
void UnmapWindow() override
unmap window
static const TGGC & GetShadowGC()
Get shadow color graphics context.
virtual void SetWidth(UInt_t w)
virtual void SetHeight(UInt_t h)
static const TGGC & GetBckgndGC()
Get background color graphics context.
void MapRaised() override
map raised
void SetTileStipYOrigin(Int_t v)
Y offset for tile or stipple operations.
void SetForeground(Pixel_t v)
Set foreground color.
void SetTileStipXOrigin(Int_t v)
X offset for tile or stipple operations.
void SetBackground(Pixel_t v)
Set background color.
void SetGraphicsExposures(Bool_t v)
True if graphics exposure should be generated.
TGClient * fClient
Connection to display server.
Handle_t fId
X11/Win32 Window identifier.
void Merge(const TGRectangle &r)
Atom_t GetClipboard() const
TGViewFrame(const TGViewFrame &)=delete
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
virtual ~TGView()
Delete view.
virtual Bool_t ItemLayout()
void SetBackgroundColor(Pixel_t) override
Set background color of the canvas frame.
void DrawBorder() override
Draw the border of the text edit widget.
TGDimension fVirtualSize
the current virtual window size
TGVScrollBar * fVsb
vertical scrollbar
TGLongPosition fMousePos
position of mouse
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
void Layout() override
layout view
TGView(const TGView &)=delete
void ChangeBackground(Pixel_t) override
Change background color of the canvas frame.
virtual void SetVisibleStart(Int_t newTop, Int_t direction)
Scroll view in specified direction to make newTop the visible location.
Int_t fScrolling
scrolling direction
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.
TGRectangle fExposedRegion
exposed area
Bool_t HandleExpose(Event_t *event) override
Handle expose events.
ROOT GUI Window base class.
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
set background pixmap
virtual void SetEditDisabled(UInt_t on=kEditDisable)
virtual Bool_t HandleExpose(Event_t *event)
@ kEditDisableLayout
window layout cannot be edited
@ kEditDisableBtnEnable
window can handle mouse button events
@ kEditDisableGrab
window grab cannot be edited
@ kEditDisableKeyEnable
window can handle keyboard events
UInt_t fEditDisabled
flags used for "guibuilding"
Short_t Max(Short_t a, Short_t b)
Returns the largest of a and b.
Point structure (maps to the X11 XPoint structure)
Attributes that can be used when creating or changing a window.
Mask_t fMask
bit mask specifying which fields are valid
Int_t fWinGravity
one of the window gravity values
Int_t fBitGravity
one of bit gravity values