Unique-Digital-Resources / my_rust_gui

my experimental rust gui framework
Apache License 2.0
2 stars 0 forks source link
gui rust skia-safe softbuffer ui user-interface winit

my experimental rust gui framework

It uses both: Skia_safe as a graphics engine, Winit as a window manager, and Softbuffer to connect them. Features:

Note:

It is still in the early stages of development

How it works?

When a new window is created using UWindow.new(), UWindow.run() after the button widget has been added to UWindow.children, the event loop runs, and depending on the event, the functions associated with each specific UWidgetTtype are activated, for example: when the movement of the mouse cursor occurs and it is on Button element,UWindow activates the Button.on_hover function of the button,and current UTheme in UWindow.theme draw the button. It should be noted that the tool is detected with the mouse cursor by the color of the pixels in offscreen buffer that created in UWindow, instead of calculating the tool’s coordinates and size. This method is easier and more accurate.

map

Documentation

coming soon

See also

Learn graphics for theoretical gui with rust