output_resolution

Function output_resolution 

Source
pub fn output_resolution(
    callback: extern "C" fn(output: WlcOutput, old_size: &Size, new_size: &Size),
)
Expand description

Callback invoked when an output’s resolution changes.

§Example

use rustwlc::WlcOutput;
use rustwlc::Size;

extern fn output_resolution(output: WlcOutput,
                            old_size: &Size, new_size: &Size) {
    println!("Output {} went from {} to {}",
             output.get_name(), old_size, new_size);
}