![]() |
Lomse library. API documentation
0.30.0
|
#include <lomse_events.h>
An event to inform user application about the need to repaint the screen.
The View content (the buffer bitmap) has been updated by Lomse and the user application is not aware of this update. Therefore, Lomse sends this event to inform the user application that it must immediately update the content of the window associated to the lomse View, by displaying the current bitmap. User application must put immediately the content of the currently rendered buffer into the window without calling any Lomse methods (e.g., force_redraw) or generating application events. .
For receiving these events you will have to register a callback when the View is created. For processing these events take into account that this event is decoupled by design: user must do repaint immediately, without more delays; your application should just blit the new bitmap onto the window.
Example
For instance, in an application written using the wxWidgets framework you could do something as:
Public Member Functions | |
EventPaint (WpInteractor wpInteractor, VRect damagedRectangle) | |
virtual | ~EventPaint () |
WpInteractor | get_interactor () |
VRect | get_damaged_rectangle () |
![]() | |
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.
|
inlinevirtual |
Destructor.
|
inline |
Returns the damaged rectangle, that is, the rectangle that needs repaint.
|
inline |
Returns a weak pointer to the Interactor object managing the View in which the event is generated.