neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::i_mouse Class Referenceabstract

#include <i_mouse.hpp>

Inheritance diagram for neogfx::i_mouse:
neogfx::i_hid_device neolib::services::i_service neolib::i_reference_counted

Classes

struct  already_capturing
 
struct  already_grabbed
 
struct  bad_surface
 
struct  no_grab
 
struct  not_capturing
 

Public Types

typedef i_mouse abstract_type
 
- Public Types inherited from neogfx::i_hid_device
typedef i_hid_device abstract_type
 

Public Member Functions

 declare_event (button_pressed, mouse_button) declare_event(button_released
 
virtual point position () const =0
 
virtual mouse_button button_state () const =0
 
virtual bool capturing () const =0
 
virtual i_surfacecapture_target () const =0
 
virtual mouse_capture_type capture_type () const =0
 
virtual void capture (i_surface &aTarget)=0
 
virtual void capture_raw (i_surface &aTarget)=0
 
virtual void release_capture ()=0
 
virtual bool is_mouse_grabbed () const =0
 
virtual bool is_mouse_grabbed_by (i_mouse_handler &aMouseHandler) const =0
 
virtual bool is_front_grabber (i_mouse_handler &aMouseHandler) const =0
 
virtual void grab_mouse (i_mouse_handler &aMouseHandler)=0
 
virtual void ungrab_mouse (i_mouse_handler &aMouseHandler)=0
 
virtual i_mouse_handlergrabber () const =0
 
bool is_button_pressed (mouse_button aButton) const
 
- Public Member Functions inherited from neogfx::i_hid_device
virtual declare_event(enabled) declare_event(disabled) public hid_device_class device_class () const =0
 
virtual hid_device_subclass device_subclass () const =0
 
virtual hid_device_uuid product_id () const =0
 
virtual hid_device_uuid instance_id () const =0
 
virtual bool is_enabled () const =0
 
virtual void enable ()=0
 
virtual void disable ()=0
 
virtual const i_stringproduct_name () const =0
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
virtual void add_ref () const noexcept=0
 
virtual void release () const =0
 
virtual int32_t use_count () const noexcept=0
 
virtual const i_reference_countedrelease_and_take_ownership () const =0
 
virtual i_reference_countedrelease_and_take_ownership ()=0
 
virtual void pin () const noexcept=0
 
virtual void unpin () const =0
 
virtual i_ref_control_blockcontrol_block ()=0
 
- Public Member Functions inherited from neolib::services::i_service
virtual ~i_service ()=default
 

Static Public Member Functions

static uuid const & iid ()
 

Detailed Description

Definition at line 147 of file i_mouse.hpp.

Member Typedef Documentation

◆ abstract_type

Definition at line 150 of file i_mouse.hpp.

Member Function Documentation

◆ button_state()

virtual mouse_button neogfx::i_mouse::button_state ( ) const
pure virtual

◆ capture()

virtual void neogfx::i_mouse::capture ( i_surface aTarget)
pure virtual

◆ capture_raw()

virtual void neogfx::i_mouse::capture_raw ( i_surface aTarget)
pure virtual

◆ capture_target()

virtual i_surface & neogfx::i_mouse::capture_target ( ) const
pure virtual

◆ capture_type()

virtual mouse_capture_type neogfx::i_mouse::capture_type ( ) const
pure virtual

◆ capturing()

virtual bool neogfx::i_mouse::capturing ( ) const
pure virtual

◆ declare_event()

neogfx::i_mouse::declare_event ( button_pressed  ,
mouse_button   
)

◆ grab_mouse()

virtual void neogfx::i_mouse::grab_mouse ( i_mouse_handler aMouseHandler)
pure virtual

◆ grabber()

virtual i_mouse_handler & neogfx::i_mouse::grabber ( ) const
pure virtual

◆ iid()

static uuid const & neogfx::i_mouse::iid ( )
inlinestatic

Definition at line 183 of file i_mouse.hpp.

◆ is_button_pressed()

bool neogfx::i_mouse::is_button_pressed ( mouse_button  aButton) const
inline

Definition at line 178 of file i_mouse.hpp.

◆ is_front_grabber()

virtual bool neogfx::i_mouse::is_front_grabber ( i_mouse_handler aMouseHandler) const
pure virtual

◆ is_mouse_grabbed()

virtual bool neogfx::i_mouse::is_mouse_grabbed ( ) const
pure virtual

◆ is_mouse_grabbed_by()

virtual bool neogfx::i_mouse::is_mouse_grabbed_by ( i_mouse_handler aMouseHandler) const
pure virtual

◆ position()

virtual point neogfx::i_mouse::position ( ) const
pure virtual

◆ release_capture()

virtual void neogfx::i_mouse::release_capture ( )
pure virtual

◆ ungrab_mouse()

virtual void neogfx::i_mouse::ungrab_mouse ( i_mouse_handler aMouseHandler)
pure virtual

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