neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::basic_mouse_event< Location > Class Template Reference

#include <window_events.hpp>

Public Types

typedef self_type abstract_type
 
typedef neolib::variant< neogfx::point, neogfx::delta, neogfx::mouse_button, neogfx::mouse_wheel, neogfx::key_modifiers_eparameter_type
 

Public Member Functions

 basic_mouse_event (mouse_event_type aType, const parameter_type &aParameter1=parameter_type{}, const parameter_type &aParameter2=parameter_type{}, const parameter_type &aParameter3=parameter_type{}, const parameter_type &aParameter4=parameter_type{})
 
mouse_event_type type () const
 
neogfx::point position () const
 
self_type with_position (neogfx::point const &aPosition) const
 
neogfx::mouse_button mouse_button () const
 
neogfx::mouse_wheel mouse_wheel () const
 
neogfx::key_modifiers_e key_modifiers () const
 
neogfx::delta wheel_delta () const
 
bool is_left_button () const
 
bool is_middle_button () const
 
bool is_right_button () const
 
bool is_x1_button () const
 
bool is_x2_button () const
 

Detailed Description

template<mouse_event_location Location>
class neogfx::basic_mouse_event< Location >

Definition at line 109 of file window_events.hpp.

Member Typedef Documentation

◆ abstract_type

template<mouse_event_location Location>
typedef self_type neogfx::basic_mouse_event< Location >::abstract_type

Definition at line 113 of file window_events.hpp.

◆ parameter_type

Constructor & Destructor Documentation

◆ basic_mouse_event()

template<mouse_event_location Location>
neogfx::basic_mouse_event< Location >::basic_mouse_event ( mouse_event_type  aType,
const parameter_type aParameter1 = parameter_type{},
const parameter_type aParameter2 = parameter_type{},
const parameter_type aParameter3 = parameter_type{},
const parameter_type aParameter4 = parameter_type{} 
)
inline

Definition at line 117 of file window_events.hpp.

Member Function Documentation

◆ is_left_button()

template<mouse_event_location Location>
bool neogfx::basic_mouse_event< Location >::is_left_button ( ) const
inline

Definition at line 156 of file window_events.hpp.

◆ is_middle_button()

template<mouse_event_location Location>
bool neogfx::basic_mouse_event< Location >::is_middle_button ( ) const
inline

Definition at line 160 of file window_events.hpp.

◆ is_right_button()

template<mouse_event_location Location>
bool neogfx::basic_mouse_event< Location >::is_right_button ( ) const
inline

Definition at line 164 of file window_events.hpp.

◆ is_x1_button()

template<mouse_event_location Location>
bool neogfx::basic_mouse_event< Location >::is_x1_button ( ) const
inline

Definition at line 168 of file window_events.hpp.

◆ is_x2_button()

template<mouse_event_location Location>
bool neogfx::basic_mouse_event< Location >::is_x2_button ( ) const
inline

Definition at line 172 of file window_events.hpp.

◆ key_modifiers()

template<mouse_event_location Location>
neogfx::key_modifiers_e neogfx::basic_mouse_event< Location >::key_modifiers ( ) const
inline

Definition at line 147 of file window_events.hpp.

◆ mouse_button()

template<mouse_event_location Location>
neogfx::mouse_button neogfx::basic_mouse_event< Location >::mouse_button ( ) const
inline

Definition at line 139 of file window_events.hpp.

◆ mouse_wheel()

template<mouse_event_location Location>
neogfx::mouse_wheel neogfx::basic_mouse_event< Location >::mouse_wheel ( ) const
inline

Definition at line 143 of file window_events.hpp.

◆ position()

template<mouse_event_location Location>
neogfx::point neogfx::basic_mouse_event< Location >::position ( ) const
inline

Definition at line 131 of file window_events.hpp.

◆ type()

template<mouse_event_location Location>
mouse_event_type neogfx::basic_mouse_event< Location >::type ( ) const
inline

Definition at line 127 of file window_events.hpp.

◆ wheel_delta()

template<mouse_event_location Location>
neogfx::delta neogfx::basic_mouse_event< Location >::wheel_delta ( ) const
inline

Definition at line 151 of file window_events.hpp.

◆ with_position()

template<mouse_event_location Location>
self_type neogfx::basic_mouse_event< Location >::with_position ( neogfx::point const &  aPosition) const
inline

Definition at line 135 of file window_events.hpp.


The documentation for this class was generated from the following file: