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
const Mask_t kButtonMotionMask
const Mask_t kFocusChangeMask
const Mask_t kButtonPressMask
const Mask_t kWAWinGravity
const Mask_t kAnyModifier
Handle_t Pixmap_t
Pixmap handle.
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.
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=0)
Add frame to the composite frame using the specified layout hints.
virtual Int_t MustCleanup() const
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
static const TGGC & GetBlackGC()
Get black graphics context.
UInt_t fOptions
frame options
virtual void MapRaised()
map raised
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
static const TGGC & GetHilightGC()
Get highlight color graphics context.
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
static const TGGC & GetShadowGC()
Get shadow color graphics context.
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
Move and/or resize the frame.
virtual void SetWidth(UInt_t w)
virtual void MapWindow()
map window
virtual void SetHeight(UInt_t h)
static const TGGC & GetBckgndGC()
Get background color graphics context.
virtual void UnmapWindow()
unmap window
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
TGHScrollBar * fHsb
horizontal scrollbar
virtual ~TGView()
Delete view.
virtual Bool_t ItemLayout()
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Process scrollbar messages.
virtual Bool_t HandleButton(Event_t *event)
handle button
TGDimension fVirtualSize
the current virtual window size
TGVScrollBar * fVsb
vertical scrollbar
virtual void Layout()
layout view
TGLongPosition fMousePos
position of mouse
void ScrollUp(Int_t pixels)
TGLongPosition fVisible
position of visible region
void ScrollDown(Int_t pixels)
virtual void UpdateBackgroundStart()
set some gc values
virtual void DrawBorder()
Draw the border of the text edit widget.
TGView(const TGView &)=delete
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
virtual void SetBackgroundColor(Pixel_t)
Set background color of the canvas frame.
TGLongPosition fScrollVal
scroll value
TGViewFrame * fCanvas
frame containing the text
virtual void ChangeBackground(Pixel_t)
Change background color of the canvas frame.
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.
virtual void DoRedraw()
redraw
TGGC fWhiteGC
graphics context used for scrolling generates GraphicsExposure events
virtual Bool_t HandleExpose(Event_t *event)
Handle expose events.
virtual void ScrollToPosition(TGLongPosition newPos)
Scroll the canvas to pos.
virtual void Clear(Option_t *="")
Clear view.
TGRectangle fExposedRegion
exposed area
virtual void SetBackgroundPixmap(Pixmap_t p)
Set backgound pixmap.
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)
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