Graphics changes

Brian Rice water at tunes.org
Wed Dec 28 10:26:38 PST 2005


This is, of course, in the main repository now, but not the alpha due  
to the bug... in my case, I don't see the error you mentioned happens  
when trying to drag, but dragging doesn't work. I haven't looked  
deeply at the situation yet, though.

The best way to figure this out is to try findOn: with the structures  
you've set up, perhaps relevant via the behaviors collection? I'm not  
sure yet.

On Dec 27, 2005, at 6:47 PM, Todd Fleming wrote:

> This adds painting and event handling to SceneElement.
>
> Caution: buggy.  I'm posting this to get help from Brian.
>
> To try it
> ======
> (different from src/ui/README)
>
> ExternalMethod.
> lobby ensureNamespace: #Graphics &delegate: True.
> load: 'src/ui/region.slate'.
> load: 'src/ui/transform.slate'.
> load: 'src/ui/color.slate'.
> load: 'src/ui/colors.slate'.
> load: 'src/ui/event.slate'.
> load: 'src/lib/memoryarea.slate'.
> load: 'src/ui/form.slate'.
>
> You probably want to save your image at this point.
>
> load: 'src/ui/graphics.slate'.
> load: 'src/ui/contextsceneelement.slate'.
> load: 'src/plugins/sdl-windows/windows.slate'.
> load: 'src/plugins/cairo/cairo.slate'.
>
> addSlot: #w valued: (WindowSceneElement newWidth: 640 height: 480).
> addSlot: #r valued: SceneElement new.
> r behaviors: {
>    PaintSolidBackgroundBehavior newColor: Colors Red alpha: 1.
>    PaintChildrenBehavior.
>    DragBehavior.}.
> w add: r.
> w eventLoop.
>
> Todd
>
> <graphics_changes.gz>

--
-Brian
http://tunes.org/~water/brice.vcf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : /archives/slate/attachments/20051228/5ad0fd65/PGP.pgp


More information about the Slate mailing list