Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template basic_size

boost::ui::basic_size — 2D size of object data structure with custom coordinates type

Synopsis

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

template<typename T> 
class basic_size {
public:
  // construct/copy/destruct
  basic_size();
  basic_size(const T &, const T &);
  template<typename D> explicit basic_size(const basic_size< D > &);

  // public member functions
  const T & width() const;
  const T & height() const;
};

Description

basic_size public construct/copy/destruct

  1. basic_size();
    Constructs empty size object.
  2. basic_size(const T & width, const T & height);
    Constructs size with width and height.
  3. template<typename D> explicit basic_size(const basic_size< D > & s);
    Constructs size with an other size object.

basic_size public member functions

  1. const T & width() const;
    Retruns width.
  2. const T & height() const;
    Retruns height.

PrevUpHomeNext