Lomse library. API documentation  0.30.0
EventInfo Class Reference

#include <lomse_events.h>

Inheritance diagram for EventInfo:
EventAction EventDoc EventPaint EventPlayback EventControlPointMoved EventMouse EventPlayCtrl EventUpdateUI EventEndOfPlayback EventUpdateViewport EventVisualTracking

Detailed Description

Abstract class holding information about an event. All events derive from it.

Public Member Functions

virtual ~EventInfo ()
 
virtual Observableget_source ()
 
EEventType get_event_type ()
 
Helpers for checking event type
bool is_doc_modified_event ()
 
bool is_update_window_event ()
 
bool is_mouse_in_event ()
 
bool is_mouse_out_event ()
 
bool is_on_click_event ()
 
bool is_link_clicked_event ()
 
bool is_show_contextual_menu_event ()
 
bool is_control_point_moved_event ()
 
bool is_selection_set_change ()
 
bool is_pointed_object_change ()
 
bool is_do_play_score_event ()
 
bool is_pause_score_event ()
 
bool is_stop_playback_event ()
 
bool is_tracking_event ()
 
bool is_update_viewport_event ()
 
bool is_end_of_playback_event ()
 

Friends

class Interactor
 

Constructor & Destructor Documentation

◆ ~EventInfo()

virtual EventInfo::~EventInfo ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ get_event_type()

EEventType EventInfo::get_event_type ( )
inline

Returns the event type. It is a value from enmun EEventType.

◆ get_source()

virtual Observable* EventInfo::get_source ( )
inlinevirtual

Returns a pointer to the Observable object (an ImoContentObj) related to the event. It is either the mouse pointed object or the first ancestor of type ImoContentObj in the internal model hierarchy. If the event is not related to an Observable object it returns nullptr.

Reimplemented in EventMouse.