output_created

Function output_created 

Source
pub fn output_created(callback: extern "C" fn(output: WlcOutput) -> bool)
Expand description

Callback invoked when an output is created. Return true to allow the output to exist.

ยงExample

use rustwlc::WlcOutput;

extern fn on_output_created(output: WlcOutput) -> bool {
    println!("Output {} ({:?}) was created", output.get_name(), output);
    return true;
}