Skip to content

pyrite-dev/milsko-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

milsko-rs

Safe bindings for the minimalist GUI library milsko to Rust.

Currently does not cover 100% of the library, but does cover enough widgets for example programs to be recreated. The build script also does not support Milsko's cross compilation features.

Usage

use milsko::prelude::*;

fn main() {
    let mut win = WindowBuilder::new().width(640).height(480).build();

    let text = LabelBuilder::new()
        .text("Hello world!")
        .x(0)
        .y(0)
        .width(640)
        .height(480)
        .build(&mut win);

    win.do_loop();
}
Image

More examples can be found in examples

About

Rust bindings for Milsko

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages