# RSGT : Rust simple GUI Toolkit
[](https://github.com/OvertimeCoder/RSGT/actions/workflows/rust-clippy.yml)


RSGT is a simple GUI Library
# Design
RSGT's event handling is based on Swing (Java) event handling. Also, the rendering of GUI components will be unique, so that components can be easily designed using CSS and other scripts.
# Example
```Rust
use rsgt::event::WindowListener;
use rsgt::rframe::{FrameEvent, RFrame};
use rsgt::theme::WindowTheme;
fn main() {
// Apply Visual Style (Windows only)
rsgt::os::enable_visual_style();
// Initialize RFrame
let mut frame = RFrame::new("RSGT Sample window", 0, 1280, 720);
// Add window listener(Callback to detect Window events)
frame.add_window_listener(SampleWindowListener {});
// Show window
frame.run();
}
struct SampleWindowListener {}
impl WindowListener for SampleWindowListener {
}
```
# Goal
* To be able to handle a wide range of applications from simple to complex
* Ensure that the same code works the same in any environment
# License
"RSGT" is under MIT LICENSE