get_scale_factor

Function get_scale_factor 

Source
pub fn get_scale_factor() -> f32
Examples found in repository?
examples/hello.rs (line 26)
19fn main() {
20    println!("hello");
21    wx_rs::init_app("Hello!", 400, 300);
22    println!(
23        "initialized window with surface size {:?}, display rect {:?} at scale {}.",
24        wx_rs::get_client_size(),
25        wx_rs::get_display_size(),
26        wx_rs::get_scale_factor(),
27    );
28    wx_rs::set_render(render);
29    wx_rs::bind_canvas_events(handle_event);
30    wx_rs::create_status_bar();
31
32    wx_rs::run_app();
33
34    println!("bye");
35}