63 class TSBRepeatTimer :
public TTimer {
69 { fScrollBar = s; fSmallInc = inc; }
72 Int_t GetSmallInc()
const {
return fSmallInc; }
78 Bool_t TSBRepeatTimer::Notify()
80 fScrollBar->HandleTimer(
this);
165 img2->
Merge(img,
"overlay");
278 if ((el = bar->
GetHead()) !=
this) {
282 if ((el = bar->
GetTail()) !=
this) {
301 fX0(0), fY0(0), fXp(0), fYp(0), fDragging(
kFALSE), fGrabPointer(
kTRUE),
302 fRange(0), fPsize(0), fPos(0), fSliderSize(0), fSliderRange(0),
303 fSmallInc(1), fHead(0), fTail(0), fSlider(0), fHeadPic(0),
304 fTailPic(0), fRepeat(0), fSubw()
427 Error(
"TGHScrollBar",
"arrow_*.xpm not found");
487 if (newpos<0) newpos = 0;
684 Error(
"TGVScrollBar",
"arrow_*.xpm not found");
744 if (newpos<0) newpos = 0;
942 out <<
" TGHScrollBar *";
948 out <<
");" << std::endl;
955 if (option && strstr(option,
"keep_names"))
956 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
969 out<<
" TGVScrollBar *";
976 out <<
");" << std::endl;
983 if (option && strstr(option,
"keep_names"))
984 out <<
" " <<
GetName() <<
"->SetName(\"" <<
GetName() <<
"\");" << std::endl;
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual UInt_t GetOptions() const
const char * GetName() const
Returns name of object.
void Reset()
Reset the timer.
void AddInput(UInt_t emask)
Add events specified in the emask to the events the frame should handle.
static const TGGC & GetHilightGC()
Get highlight color graphics context.
const Mask_t kLeaveWindowMask
Short_t Min(Short_t a, Short_t b)
An abstract interface to image processing library.
virtual void Merge(const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
virtual void SetImage(const Double_t *, UInt_t, UInt_t, TImagePalette *=0)
virtual Pixmap_t GetPixmap()
void Draw(Option_t *="")
Default Draw method for all objects.
const Mask_t kPointerMotionMask
virtual void DoRedraw()
Redraw the frame.
virtual void ChangeBackground(Pixel_t back)
Change frame background color.
virtual void FillRectangle(const char *=0, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
TGPicturePool * GetPicturePool() const
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
void FreePicture(const TGPicture *pic)
Free picture resource.
virtual void SendMessage(const TGWindow *w, Long_t msg, Long_t parm1, Long_t parm2)
Send message (i.e.
virtual Bool_t Notify()
Notify when timer times out.
const Mask_t kButtonPressMask
Pixmap_t GetPicture() const
R__EXTERN TSystem * gSystem
Bool_t IsEditable() const
static const TGGC & GetWhiteGC()
Get white graphics context.
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
const TGPicture * GetPicture(const char *name)
Get a picture from the picture pool.
Handles synchronous and a-synchronous timer events.
virtual void SetBackgroundPixmap(Pixmap_t pixmap)
static const TGGC & GetBlackGC()
Get black graphics context.
virtual void Move(Int_t x, Int_t y)
Move frame.
const Mask_t kEnterWindowMask
virtual Pixmap_t GetMask()
const Mask_t kButtonReleaseMask
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
virtual void SetEditDisabled(UInt_t on=kEditDisable)
virtual void AddTimer(TTimer *t)
Add timer to list of system timers.
Short_t Max(Short_t a, Short_t b)
void NeedRedraw(TGWindow *w, Bool_t force=kFALSE)
Set redraw flags.
void SaveUserColor(std::ostream &out, Option_t *)
Save a user color in a C++ macro file - used in SavePrimitive().
TString GetOptionString() const
Returns a frame option string - used in SavePrimitive().
static TImage * Create()
Create an image.
const Mask_t kAnyModifier
static const TGGC & GetShadowGC()
Get shadow color graphics context.
static const TGGC & GetBckgndGC()
Get background color graphics context.
if(line.BeginsWith("/*"))
virtual void SetWindowName(const char *name=0)
Set window name.
void SetTime(Long_t milliSec)
const char * Data() const