mousetrap v0.2.0
Loading...
Searching...
No Matches
mousetrap::EventController Class Reference

event controller More...

#include <event_controller.hpp>

Inheritance diagram for mousetrap::EventController:
mousetrap::SignalEmitter mousetrap::FocusEventController mousetrap::KeyEventController mousetrap::MotionEventController mousetrap::PanEventController mousetrap::PinchZoomEventController mousetrap::RotateEventController mousetrap::ScrollEventController mousetrap::ShortcutEventController mousetrap::SingleClickGesture

Public Member Functions

 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
 

Protected Member Functions

 EventController (GtkEventController *)
 
- Protected Member Functions inherited from mousetrap::SignalEmitter
 SignalEmitter ()
 ctor
 
 ~SignalEmitter ()
 destructor
 

Detailed Description

event controller

Member Function Documentation

◆ get_internal()

NativeObject mousetrap::EventController::get_internal ( ) const
overridevirtual

expose internal

Reimplemented from mousetrap::SignalEmitter.

Referenced by mousetrap::ShortcutEventController::add_action(), mousetrap::RotateEventController::get_angle_delta(), mousetrap::StylusEventController::get_axis_value(), mousetrap::SingleClickGesture::get_current_button(), mousetrap::DragEventController::get_current_offset(), mousetrap::LongPressEventController::get_delay_factor(), mousetrap::StylusEventController::get_hardware_id(), mousetrap::ScrollEventController::get_kinetic_scrolling_enabled(), mousetrap::SingleClickGesture::get_only_listens_to_button(), mousetrap::PanEventController::get_orientation(), mousetrap::PinchZoomEventController::get_scale_delta(), mousetrap::ShortcutEventController::get_scope(), mousetrap::DragEventController::get_start_position(), mousetrap::StylusEventController::get_tool_type(), mousetrap::SingleClickGesture::get_touch_only(), mousetrap::SwipeEventController::get_velocity(), mousetrap::StylusEventController::has_axis(), mousetrap::ShortcutEventController::remove_action(), mousetrap::FocusEventController::self_is_focused(), mousetrap::FocusEventController::self_or_child_is_focused(), mousetrap::LongPressEventController::set_delay_factor(), mousetrap::ScrollEventController::set_kinetic_scrolling_enabled(), mousetrap::SingleClickGesture::set_only_listens_to_button(), mousetrap::PanEventController::set_orientation(), mousetrap::ShortcutEventController::set_scope(), mousetrap::SingleClickGesture::set_touch_only(), and mousetrap::KeyEventController::should_shortcut_trigger_trigger().

◆ get_propagation_phase()

PropagationPhase mousetrap::EventController::get_propagation_phase ( ) const

get propagation phase

Returns
phase

◆ operator NativeObject()

mousetrap::EventController::operator NativeObject ( ) const
overridevirtual

expose as native object

Implements mousetrap::SignalEmitter.

◆ set_propagation_phase()

void mousetrap::EventController::set_propagation_phase ( PropagationPhase  phase)

set propagation phase

Parameters
phase

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