/SKUI

Ruby wrapper of classes that maps to GUI controls in SketchUp's UI::WebDialogs

Primary LanguageRubyOtherNOASSERTION

Work in Progress

This project is at it's early stages. Many changes will happen. Please do not make use of it as of yet. It's available here in order to be able to discuss the project.

To-do

Overview

The goal of this framework is to provide Ruby wrapper classes to manipulate GUI control elements in SketchUp's UI::WebDialog API.

It is forked from the TT::GUI module from the TT_Lib² library.

Hello World

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

Version compatibility

Once version 1 is release, updates should preserve backwards compatibility within their major version. Breaking changes will be scheduled for next major version release.

License

See the LICENSE file. It is based on the MIT license, but includes extra requirements that require derived work to ensure it doesn't conflict with the original work.

Requirements

  • SketchUp 6+
  • Windows: Internet Explorer 8+ *
  • OSX: ?

* RGBa colour values will display as opaque RGB in IE8

Recommended

  • SketchUp 7+
  • Windows: Internet Explorer 9+
  • OSX: ?

Documentation