Quick Overview - thomthom/SKUI GitHub Wiki

Hello World

w = SKUI::Window.new
b = SKUI::Button.new( 'Hello' ) { puts 'World! :)' }
b.position( 10, 5 )
w.add_control( b )
w.show

Live Manipulating

Controls can be added, removed and modified at any time, even when the window is open. Type the previous example into the Ruby Console and play with the position of the button after the window is opened. That way you can quickly sketch out your UI.

Tip: Use negative values for Control.position to anchor the control to the right or bottom of it's container.

Available Controls

Example source: example.rb

Changing Theme

It is possible to specify a custom theme, written in CSS. The theme can be changed at any time, even when the window is open.

Example: window.theme = SKUI::Window::THEME_GRAPHITE