50 #include "RConfigure.h" 65 SetBackgroundColor(back);
78 gVirtualX->ChangeWindowAttributes(fId, &wattr);
81 fEditDisabled = kEditDisableGrab | kEditDisableKeyEnable | kEditDisableBtnEnable;
104 fExposedRegion.Empty();
106 fClipboard = fClient->GetResourcePool()->GetClipboard();
111 if (!(sboptions & kNoHSB)) {
114 fHsb->Associate(
this);
119 if (!(sboptions & kNoVSB)) {
122 fVsb->Associate(
this);
127 fWhiteGC.SetGraphicsExposures(
kTRUE);
128 fWhiteGC.SetBackground(back);
132 fVsb->SetEditDisabled(kEditDisableGrab | kEditDisableBtnEnable);
135 fHsb->SetEditDisabled(kEditDisableGrab | kEditDisableBtnEnable);
138 fEditDisabled = kEditDisableLayout;
141 delete fLayoutManager;
347 Bool_t need_vsb, need_hsb;
350 need_vsb = need_hsb =
kFALSE;
454 if (pos.
fX < 0) pos.
fX = 0;
455 if (pos.
fY < 0) pos.
fY = 0;
466 Int_t xsrc, ysrc, xdest, ydest, cpyheight, cpywidth;
477 points[0].
fX = points[3].
fX = 0;
489 points[1].
fY = points[0].
fY = 0;
490 points[3].
fY = points[2].
fY = ydest;
511 points[0].
fY = points[1].
fY = 0;
523 points[0].
fX = points[3].
fX = 0;
524 points[1].
fX = points[2].
fX = xdest ;
void SetTileStipYOrigin(Int_t v)
Y offset for tile or stipple operations.
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 Layout()
layout view
TGRectangle fExposedRegion
virtual void SetVisibleStart(Int_t newTop, Int_t direction)
Scroll view in specified direction to make newTop the visible location.
const Mask_t kKeyShiftMask
void Merge(const TGRectangle &r)
virtual void DrawRegion(Int_t x, Int_t y, UInt_t width, UInt_t height)
Draw region.
const Mask_t kButtonMotionMask
void SetForeground(Pixel_t v)
Set foreground color.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
const Mask_t kLeaveWindowMask
virtual void ChangeBackground(Pixel_t)
Change background color of the canvas frame.
const Mask_t kWABitGravity
virtual void DrawBorder()
Draw frame border.
virtual Bool_t HandleButton(Event_t *event)
handle button
virtual void DrawBorder()
Draw the border of the text edit widget.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process scrollbar messages.
void SetBackground(Pixel_t v)
Set background color.
virtual Bool_t HandleExpose(Event_t *event)
virtual void SetBackgroundColor(Pixel_t back)
Set background color (override from TGWindow base class).
const Mask_t kButtonPressMask
const Mask_t kKeyPressMask
void SetTileStipXOrigin(Int_t v)
X offset for tile or stipple operations.
virtual Bool_t ItemLayout()
virtual UInt_t GetDefaultWidth() const
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
static const TGGC & GetBlackGC()
Get black graphics context.
virtual void SetBackgroundColor(Pixel_t)
Set background color of the canvas frame.
const Mask_t kEnterWindowMask
virtual UInt_t GetDefaultHeight() const
virtual ~TGView()
Delete view.
virtual void SetWidth(UInt_t w)
virtual Bool_t HandleExpose(Event_t *event)
Handle expose events.
TGLongPosition fScrollVal
virtual void SetBackgroundPixmap(Pixmap_t p)
Set backgound pixmap.
void ScrollUp(Int_t pixels)
const Mask_t kButtonReleaseMask
virtual void UpdateRegion(Int_t x, Int_t y, UInt_t w, UInt_t h)
update a part of view
const Mask_t kWAWinGravity
virtual void DoRedraw()
redraw
virtual void ScrollToPosition(TGLongPosition newPos)
Scroll the canvas to pos.
virtual void UnmapWindow()
virtual void SetHeight(UInt_t h)
virtual void ScrollCanvas(Int_t newTop, Int_t direction)
Scroll the canvas to new_top in the kVertical or kHorizontal direction.
Short_t Max(Short_t a, Short_t b)
const Mask_t kFocusChangeMask
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
const Mask_t kKeyControlMask
virtual void Clear(Option_t *="")
Clear view.
const Mask_t kAnyModifier
void ScrollDown(Int_t pixels)
static const TGGC & GetShadowGC()
Get shadow color graphics context.
static const TGGC & GetBckgndGC()
Get background color graphics context.
virtual void UpdateBackgroundStart()
set some gc values
virtual Int_t MustCleanup() const