Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class mouse_event

boost::ui::mouse_event — Mouse event class that holds information about mouse when event was generated.

Synopsis

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


class mouse_event : public boost::ui::event {
public:
  // construct/copy/destruct
  mouse_event();

  // public member functions
  coord_type x() const;
  coord_type y() const;
  point pos() const;
};

Description

See Also:

Mouse (Wikipedia)

mouse_event public construct/copy/destruct

  1. mouse_event();

mouse_event public member functions

  1. coord_type x() const;
    Returns x mouse coordinate relative to the parent widget client area.
  2. coord_type y() const;
    Returns y mouse coordinate relative to the parent widget client area.
  3. point pos() const;
    Returns mouse position relative to the parent widget client area.

PrevUpHomeNext