RSGT : Rust simple GUI Toolkit

rust-clippy analyze Crates.io Crates.io

RSGT is a simple GUI Library

Design

RSGT's event handling is based on Swing (Java) event handling. (which uses callbacks). In addition, drawing of GUI components uses the GPU (wgpu), allowing for flexible representation.

Example

```Rust use rsgt::Size; use rsgt::event::WindowListener; use rsgt::rframe::{CloseOperation, RFrameBuilder};

fn main() { // Apply Visual Style (Windows only) rsgt::os::enablevisualstyle(); // Initialize RFrame let mut frame = RFrameBuilder::new() .withsize(Size(1280,720)) .withtitle("Show window") .withvisible(true) .build() .unwrap(); // Add window listener(Callback to detect Window events) frame.addwindow_listener(SampleWindowListener {}); // Show window frame.run(); }

struct SampleWindowListener {}

impl WindowListener for SampleWindowListener { } ```

Execution Result

Show Window

Goal

License

"RSGT" is under MIT LICENSE