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

#include <mouse.hpp>

Inheritance diagram for neogfx::mouse:
neogfx::hid_device< i_mouse > neolib::reference_counted< Base, DeallocateOnRelease >

Public Member Functions

 define_declared_event (ButtonPressed, button_pressed, mouse_button) define_declared_event(ButtonReleased
 
 mouse (const i_string &aName=string{ "Generic Mouse" })
 
bool is_mouse_grabbed () const override
 
bool is_mouse_grabbed_by (i_mouse_handler &aMouseHandler) const override
 
bool is_front_grabber (i_mouse_handler &aMouseHandler) const override
 
void grab_mouse (i_mouse_handler &aMouseHandler) override
 
void ungrab_mouse (i_mouse_handler &aMouseHandler) override
 
i_mouse_handlergrabber () const override
 
- Public Member Functions inherited from neogfx::hid_device< i_mouse >
 define_declared_event (Enabled, enabled) define_declared_event(Disabled
 
 hid_device (hid_device_type aType, hid_device_class aClass, hid_device_subclass aSubclass, const hid_device_uuid &aProductId={}, const hid_device_uuid &aInstanceId={})
 
hid_device_type device_type () const override
 
hid_device_class device_class () const override
 
hid_device_subclass device_subclass () const override
 
hid_device_uuid product_id () const override
 
hid_device_uuid instance_id () const override
 
bool is_enabled () const override
 
void enable () override
 
void disable () override
 
const i_stringproduct_name () const override
 
- Public Member Functions inherited from neolib::reference_counted< Base, DeallocateOnRelease >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_type * release_and_take_ownership () const override
 
base_type * release_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 

Public Attributes

 button_released
 

Friends

class mouse_grabber
 

Additional Inherited Members

- Public Types inherited from neogfx::hid_device< i_mouse >
typedef i_mouse abstract_type
 

Detailed Description

Definition at line 41 of file mouse.hpp.

Constructor & Destructor Documentation

◆ mouse()

neogfx::mouse::mouse ( const i_string aName = string{ "Generic Mouse" })

Member Function Documentation

◆ define_declared_event()

neogfx::mouse::define_declared_event ( ButtonPressed  ,
button_pressed  ,
mouse_button   
)

◆ grab_mouse()

void neogfx::mouse::grab_mouse ( i_mouse_handler aMouseHandler)
override

◆ grabber()

i_mouse_handler & neogfx::mouse::grabber ( ) const
override

◆ is_front_grabber()

bool neogfx::mouse::is_front_grabber ( i_mouse_handler aMouseHandler) const
override

◆ is_mouse_grabbed()

bool neogfx::mouse::is_mouse_grabbed ( ) const
override

◆ is_mouse_grabbed_by()

bool neogfx::mouse::is_mouse_grabbed_by ( i_mouse_handler aMouseHandler) const
override

◆ ungrab_mouse()

void neogfx::mouse::ungrab_mouse ( i_mouse_handler aMouseHandler)
override

Friends And Related Symbol Documentation

◆ mouse_grabber

friend class mouse_grabber
friend

Definition at line 47 of file mouse.hpp.

Member Data Documentation

◆ button_released

neogfx::mouse::button_released

Definition at line 45 of file mouse.hpp.


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