Last Modified
Sat May 09 19:19:23 +0900 2009

Description

WxSugar - Keyword Constructors Classes

This extension defines the keyword parameters for new methods for widgets, windows and frames. It’s for use with *Keyword Constructors* and is no use on its own - except if you are looking for a bug or want to add a missing class.

For each class, the parameters must be declared in the order that they are supplied to wxRuby. A parameter is specified by a symbol name, and, optionally, a default argument which will of whatever type the wxRuby core library accepts. Because hashes are unordered in Ruby 1.8, if a default argument is specified, this must be the last in a list of parameters.

Some common parameters to constructors such as size, position, title, id and so forth always have a standard default argumnet, which is defined in keyword_ctors. In these cases, it is not necessary to supply the default argument in the definition.