library: libGui #include "TGSlider.h" |
TGHSlider
class description - source file - inheritance tree (.pdf)
protected:
virtual void DoRedraw()
public:
TGHSlider(const TGWindow* p = 0, UInt_t w = 40, UInt_t type = kSlider1|kScaleBoth, Int_t id = -1, UInt_t options = kHorizontalFrame, Pixel_t back = GetDefaultFrameBackground())
TGHSlider(const TGHSlider&)
virtual ~TGHSlider()
static TClass* Class()
virtual TGDimension GetDefaultSize() const
virtual Bool_t HandleButton(Event_t* event)
virtual Bool_t HandleMotion(Event_t* event)
virtual TClass* IsA() const
virtual void Resize(UInt_t w, UInt_t h)
virtual void Resize(TGDimension size)
virtual void SavePrimitive(ofstream& out, Option_t* option)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
protected:
Int_t fXp horizontal slider x position in pixel coordinates
TGSlider, TGVSlider and TGHSlider
Slider widgets allow easy selection of a range.
Sliders can be either horizontal or vertical oriented and there is
a choice of two different slider types and three different types
of tick marks.
TGSlider is an abstract base class. Use the concrete TGVSlider and
TGHSlider.
Dragging the slider will generate the event:
kC_VSLIDER, kSL_POS, slider id, position (for vertical slider)
kC_HSLIDER, kSL_POS, slider id, position (for horizontal slider)
Pressing the mouse will generate the event:
kC_VSLIDER, kSL_PRESS, slider id, 0 (for vertical slider)
kC_HSLIDER, kSL_PRESS, slider id, 0 (for horizontal slider)
Releasing the mouse will generate the event:
kC_VSLIDER, kSL_RELEASE, slider id, 0 (for vertical slider)
kC_HSLIDER, kSL_RELEASE, slider id, 0 (for horizontal slider)
TGHSlider(const TGWindow *p, UInt_t w, UInt_t type, Int_t id,
UInt_t options, ULong_t back) :
TGSlider(p, w, kSliderHeight, type, id, options, back)
Create horizontal slider widget.
~TGHSlider()
Delete a horizontal slider widget.
void DoRedraw()
Redraw horizontal slider widget.
Bool_t HandleButton(Event_t *event)
Handle mouse button event in horizontal slider widget.
Bool_t HandleMotion(Event_t *event)
Handle mouse motion event in horizontal slide widget.
void SavePrimitive(ofstream &out, Option_t *option)
Save an horizontal slider as a C++ statement(s) on output stream out.
Inline Functions
TGDimension GetDefaultSize() const
void Resize(UInt_t w, UInt_t h)
void Resize(TGDimension size)
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
TGHSlider TGHSlider(const TGHSlider&)
Author: Fons Rademakers 14/01/98
Last update: root/gui:$Name: $:$Id: TGSlider.cxx,v 1.11 2004/09/16 09:44:11 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.