Function wx_rs::get_display_size

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

    wx_rs::run_app();

    println!("bye");
}