ponsic 1.1.0

A simple, fast, and safe library for creating Windows GUI applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[cfg(target_os = "windows")]
use ponsic::{widgets::MainWindow, App, Point, Rect, Size, SystemError, WindowManager};

#[cfg(target_os = "windows")]
fn main() -> Result<(), SystemError> {
    let window = MainWindow::new(
        Rect::from((Point::new(100, 100), Size::new(800, 600))),
        "MyApplication",
    )?;
    window.show();

    while App::handle_event(true).unwrap() {}
    Ok(())
}

#[cfg(not(target_os = "windows"))]
fn main() {}