library: libGui #include "TGSlider.h" |
Inheritance Chart: | |||||||||||||||||||||||||||||
|
protected:
virtual void DoRedraw() public:
TGVSlider(const TGWindow* p = 0, UInt_t h = 40, UInt_t type = kSlider1|kScaleBoth, Int_t id = -1, UInt_t options = kVerticalFrame, Pixel_t back = GetDefaultFrameBackground()) TGVSlider(const TGVSlider&) virtual ~TGVSlider() 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(ostream& out, Option_t* option = "") virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b)
protected:
Int_t fYp vertical slider y 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)
Create a vertical slider widget.
Save an horizontal slider as a C++ statement(s) on output stream out.