Lomse library. API documentation
0.30.0
|
#include <lomse_events.h>
An object holding information about an score player control event. The event type informs the user application about the specific action.
This event is generated only from LMD documents with embedded controls (buttons, links, etc.). In particular, these events are generated by the ScorePlayerCtrl object associated to an ImoScorePlayer object embedded in the Document. These events inform about a user action on any of the buttons of the ScorePlayerCtrl, so that the user application can perform the expected actions associated to these buttons. If your application is oriented to process scores in MusicXML format or regular LDP files without embedded controls you will never receive these event types.
Example
For instance, in an application oriented to process LMD documents with embedded controls, written using the wxWidgets framework, you could handle these events as follows:
Public Member Functions | |
EventPlayCtrl (EEventType evType, WpInteractor wpInteractor, WpDocument wpDoc, ImoScore *pScore, PlayerGui *pPlayer) | |
ImoScore * | get_score () const |
PlayerGui * | get_player () const |
Public Member Functions inherited from EventAction | |
virtual | ~EventAction () |
WpInteractor | get_interactor () |
WpDocument | get_document () |
bool | is_still_valid () |
Public Member Functions inherited from EventInfo | |
virtual | ~EventInfo () |
virtual Observable * | get_source () |
EEventType | get_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 () |
|
inline |
Constructor.
|
inline |
Returns a ptr. to the PlayerGui object associated with this score playback.
|
inline |
Returns a ptr. to the score affected by the event.