Module dummy_rustwlc::callback
[−]
[src]
Register wlc callbacks to events.
See individual methods for callback details.
wlc Example
use rustwlc; use rustwlc::callback; use rustwlc::WlcView; // An example callback function // See the various functions in this module for more information extern "C" fn view_focus_callback(view: WlcView, focused: bool) { println!("A view came into focus!"); } // Set a default log callback rustwlc::log_set_default_handler(); // Register some callbacks callback::view_focus(view_focus_callback); // ... and additional callbacks // The only thing your code should do before init2 is register callbacks // and log handlers. let run_wlc = rustwlc::init2() .expect("Unable to initialize wlc!"); run_wlc();
Functions
compositor_ready |
Callback invoked by wlc after |
compositor_terminate |
Callback invoked by wlc when a compositor is terminating |
keyboard_key |
Callback invoked on keypresses.
Return |
output_context_created |
Output context destroyed |
output_context_destroyed |
Output context created. This generally happens on a tty switch. |
output_created |
Callback invoked when an output is created.
Return |
output_destroyed |
Callback invoked when an output is destroyed. |
output_focus |
Callback invoked when an output gains focus. |
output_render_post |
Callback invoked post-render for an output. |
output_render_pre |
Callback invoked pre-render for an output. |
output_resolution |
Callback invoked when an output's resolution changes. |
pointer_button |
Callback invoked on mouse clicks.
Return |
pointer_motion |
Callback invoked on pointer motion.
Return |
pointer_scroll |
Callback invoked on mouse scroll.
Return |
touch |
Callback invoked on touchscreen touch.
Return |
view_created |
Callback invoked when a view is created.
Return |
view_destroyed |
Callback invoked when a view is destroyed. |
view_focus |
Callback invoked when a view is focused. |
view_move_to_output |
Callback invoked when a view switches outputs. |
view_render_post |
Callback invoked post-view-render. |
view_render_pre |
Callback invoked pre-view-render. |
view_request_geometry |
Callback invoked when a view requests geometry. |
view_request_move |
Callback invoked when a view requests a move. |
view_request_resize |
Callback invoked when a view requests a resize. |
view_request_state |
Callback invoked when a view requests a |