52 #ifndef __PCL_Slider_h
53 #define __PCL_Slider_h
61 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
95 BothSides = Top|Bottom
106 #ifndef __PCL_BUILDING_PIXINSIGHT_APPLICATION
165 void GetRange(
int& minValue,
int& maxValue )
const;
174 int m, dum; GetRange( m, dum );
return m;
184 int dum, m; GetRange( dum, m );
return m;
207 SetRange( m, MaxValue() );
220 SetRange( MinValue(), m );
280 return TickInterval();
288 SetTickInterval( q );
309 SetTickStyle( TickStyle::NoTicks );
342 EnableTracking( !disable );
417 EventHandlers() =
default;
418 EventHandlers(
const EventHandlers& ) =
default;
419 EventHandlers& operator =(
const EventHandlers& ) =
default;
424 friend class SliderEventDispatcher;
Client-side interface to a PixInsight Control object.
A type-safe collection of enumerated flags.
Horizontal slider control.
~HorizontalSlider() override
HorizontalSlider(Control &parent=Control::Null())
Client-side interface to a PixInsight Slider control.
void GetRange(int &minValue, int &maxValue) const
void SetTickFrequency(int q)
void EnableTracking(bool=true)
void DisableTracking(bool disable=true)
int TickFrequency() const
TickStyles TickStyle() const
void SetTickInterval(int)
void SetNormalizedValue(double f)
Slider(Control &parent=Control::Null(), bool vertical=false)
void SetTickStyle(TickStyles)
void SetRange(int minValue, int maxValue)
bool IsTrackingEnabled() const
double NormalizedValue() const
~VerticalSlider() override
VerticalSlider(Control &parent=Control::Null())
void OnRangeUpdated(range_event_handler handler, Control &receiver)
void OnValueUpdated(value_event_handler handler, Control &receiver)
void(Control::*)(Slider &sender, int minValue, int maxValue) range_event_handler
void(Control::*)(Slider &sender, int value) value_event_handler