Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class slider

boost::ui::slider — Slider widget base class.

Synopsis

// In header: <boost/ui/slider.hpp>


class slider : public boost::ui::widget {
public:
  // types
  typedef int value_type;  // Slider value type. 

  // construct/copy/destruct
  slider();

  // public member functions
  value_type value() const;
  value_type min() const;
  value_type max() const;
  template<typename F, class ... Args> slider & on_slide(F &&, Args &&...);
  template<typename F, class ... Args> slider & on_slide_end(F &&, Args &&...);

  // private member functions
  void check_range(value_type) const;
  void on_slide_raw(const boost::function< void()> &);
  void on_slide_end_raw(const boost::function< void()> &);
  detail_impl * get_impl();
  const detail_impl * get_impl() const;

  // private static functions
  static void check_range(value_type, value_type, value_type);
};

Description

See Also:

Slider (Wikipedia)

slider public construct/copy/destruct

  1. slider();

slider public member functions

  1. value_type value() const;
    Retruns position value.
  2. value_type min() const;
    Retruns minimum position value.
  3. value_type max() const;
    Retruns maximum position value.
  4. template<typename F, class ... Args> 
      slider & on_slide(F && f, Args &&... args);
    Connects slide handler.
  5. template<typename F, class ... Args> 
      slider & on_slide_end(F && f, Args &&... args);
    Connects slide end handler.

slider private member functions

  1. void check_range(value_type value) const;
  2. void on_slide_raw(const boost::function< void()> & handler);
  3. void on_slide_end_raw(const boost::function< void()> & handler);
  4. detail_impl * get_impl();
  5. const detail_impl * get_impl() const;

slider private static functions

  1. static void check_range(value_type value, value_type min, value_type max);

PrevUpHomeNext