As in a native widget, such as GTK+2, Cocoa, etc.
On Tue, Aug 18, 2009 at 11:04 AM, Seth Thomas
Rasmussen<[email protected]> wrote:
> On Tue, Aug 18, 2009 at 1:57 PM, Devyn Cairns<[email protected]> wrote:
>> That would require a new widget. I'm not quite sure if _why wants do
>> add very many new widgets unless absolutely necessary though, because
>> Shoes is not a traditional GUI toolkit.
>
> I started this reply, but I don't remember what you're referring to
> there.. if only there were some way to format email replies such that
> the context remained clear..
>
>> You could write your own Widgets in Shoes, though, like I'm doing with
>> the MMORPG game I am creating in Shoes.
>>
>> I don't have the code handy. Anyone know how to write Shoes::Widget code?
>
> class Foo < Shoes::Widget
> def initialize
> para "sup"
> end
> end
>
> That's the gist of it. You can of course add any supporting methods,
> arguments to initialize, etc. that standard Ruby code allows. One key
> thing to remember is that self is a slot in this context. All widgets
> make a new slot.
>
--
~devyn