|
mousetrap v0.2.0
|
handles cursor motion events More...
#include <motion_event_controller.hpp>
Public Member Functions | |
| MotionEventController () | |
| ctor, needs to be connected to a widget to start emitting events | |
| MotionEventController (detail::MotionEventControllerInternal *) | |
| construct from internal | |
Public Member Functions inherited from mousetrap::EventController | |
| EventController ()=delete | |
| default ctor delete, cannot be instantiated. Use one of its base classes instead | |
| ~EventController () | |
| dtor | |
| operator NativeObject () const override | |
| expose as native object | |
| NativeObject | get_internal () const override |
| expose internal | |
| void | set_propagation_phase (PropagationPhase) |
| set propagation phase | |
| PropagationPhase | get_propagation_phase () const |
| get propagation phase | |
Public Member Functions inherited from mousetrap::SignalEmitter | |
| void | set_signal_blocked (const std::string &signal_id, bool b) |
| block a signal by id \for_internal_use_only | |
| bool | get_signal_blocked (const std::string &signal_id) const |
| get whether a signal is currently blocked | |
| std::vector< std::string > | get_all_signal_names () |
| get list of possible signal ids \for_internal_use_only | |
| template<typename Function_t > | |
| void | connect_signal (const std::string &signal_id, Function_t *function, void *data=nullptr) |
| connect static function to signal, does not work with lambdas \for_internal_use_only | |
| void | disconnect_signal (const std::string &signal_id) |
| disconnect signal, it may not be invoked until reconnected, if signal is not registered, does nothing. For internal use only | |
| virtual | operator NativeObject () const =0 |
| expose as NativeObject, this is the GLib instance that signals are emitted on \for_internal_use_only | |
| virtual NativeObject | get_internal () const |
| expose internally managed object, \for_internal_use_only | |
Public Member Functions inherited from mousetrap::has_signal_motion_enter< MotionEventController > | |
| void | connect_signal_motion_enter (Function_t f, Data_t data) |
| connect handler, will be invoked when signal is emitted. Data is passed to the signal handler function | |
| void | connect_signal_motion_enter (Function_t f) |
| connect handler, will be invoked when signal is emitted | |
| void | set_signal_motion_enter_blocked (bool b) |
| bool | get_signal_motion_enter_blocked () const |
| void | emit_signal_motion_enter (double x, double y) |
| invoke signal handler manually | |
| void | disconnect_signal_motion_enter () |
Public Member Functions inherited from mousetrap::has_signal_motion< MotionEventController > | |
| void | connect_signal_motion (Function_t f, Data_t data) |
| connect handler, will be invoked when signal is emitted. Data is passed to the signal handler function | |
| void | connect_signal_motion (Function_t f) |
| connect handler, will be invoked when signal is emitted | |
| void | set_signal_motion_blocked (bool b) |
| bool | get_signal_motion_blocked () const |
| void | emit_signal_motion (double x, double y) |
| invoke signal handler manually | |
| void | disconnect_signal_motion () |
Public Member Functions inherited from mousetrap::has_signal_motion_leave< MotionEventController > | |
| void | connect_signal_motion_leave (Function_t f, Data_t data) |
| connect handler, will be invoked when signal is emitted. Data is passed to the signal handler function | |
| void | connect_signal_motion_leave (Function_t f) |
| connect handler, will be invoked when signal is emitted | |
| void | set_signal_motion_leave_blocked (bool b) |
| bool | get_signal_motion_leave_blocked () const |
| void | emit_signal_motion_leave () |
| invoke signal handler manually | |
| void | disconnect_signal_motion_leave () |
Additional Inherited Members | |
Static Public Attributes inherited from mousetrap::has_signal_motion_enter< MotionEventController > | |
| static const char * | signal_id |
| glib ID | |
Static Public Attributes inherited from mousetrap::has_signal_motion< MotionEventController > | |
| static const char * | signal_id |
| glib ID | |
Static Public Attributes inherited from mousetrap::has_signal_motion_leave< MotionEventController > | |
| static const char * | signal_id |
| glib ID | |
Protected Member Functions inherited from mousetrap::EventController | |
| EventController (GtkEventController *) | |
Protected Member Functions inherited from mousetrap::SignalEmitter | |
| SignalEmitter () | |
| ctor | |
| ~SignalEmitter () | |
| destructor | |
Protected Member Functions inherited from mousetrap::has_signal_motion_enter< MotionEventController > | |
| has_signal_motion_enter (MotionEventController *instance) | |
Protected Member Functions inherited from mousetrap::has_signal_motion< MotionEventController > | |
| has_signal_motion (MotionEventController *instance) | |
Protected Member Functions inherited from mousetrap::has_signal_motion_leave< MotionEventController > | |
| has_signal_motion_leave (MotionEventController *instance) | |
handles cursor motion events
| signal id | signature | emitted when... |
|---|---|---|
motion_enter | (MotionEventController&, double x, double y, (Data_t)) -> void | When cursor enters the allocated area of a widget that has a MotionEventController connected |
motion | (MotionEventController&, double x, double y, (Data_t)) -> void | Once per frame while cursor that is inside the allocated area of a widget that has a MotionEventController connected moves |
motion_leave | (MotionEventController&, (Data_t)) -> void | When cursor leaves the allocated area of a widget that has a MotionEventController connected |