[Q] Form>>extent:fromArray:offset:
Andreas Raab
andreas.raab at gmx.de
Tue Dec 3 21:05:19 UTC 2002
Chris,
What happens is that the input to these methods expects *left* aligned
32bit input words. You can see this when you just print "Cursor normal"
- it looks like:
'((CursorWithMask
extent: 16 at 16
depth: 1
fromArray: #(
2r0
2r1000000000000000000000000000000
2r1100000000000000000000000000000
2r1110000000000000000000000000000
2r1111000000000000000000000000000
2r1111100000000000000000000000000
2r1111110000000000000000000000000
2r1111111000000000000000000000000
2r1111100000000000000000000000000
2r1111100000000000000000000000000
2r1001100000000000000000000000000
2r110000000000000000000000000
2r110000000000000000000000000
2r11000000000000000000000000
2r11000000000000000000000000
2r0)
offset: -1 at -1)'
Cheers,
- Andreas
> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On
> Behalf Of Chris Burkert
> Sent: Tuesday, December 03, 2002 9:54 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: [Q] Form>>extent:fromArray:offset:
>
>
> Hello
>
> Sorry but I've got lot's of questions ;-) Here's one.
>
> It's about the expected array. I tried:
> Cursor extent: 16 at 16 fromArray: #(2r1111111111111111) offset: 0 at 0.
> Everything was painted black.
> After that I tried:
> Form extent: 16 at 16 fromArray: #(2r1111111111111111) offset: 0 at 0.
> Nothing was painted.
>
> What I simply want, is a Form that is build like the Cursor, but
> variable in size. In this case it should only be black and white, but
> what if I want it colored ?
>
> regards
> Chris Burkert
> --
> --------------------------------------------------------------
> ----------
> Student of applied Computer Science at Chemnitz University of
> Technology
> http://www.chrisburkert.de/ chbu at hrz.tu-chemnitz.de
> --------------------------------------------------------------
> ----------
> "I invented the term Object-Oriented, and I can tell you I
> did not have
> C++ in mind." - Alan Kay --> http://www.squeak.org/
>
>
More information about the Squeak-dev
mailing list
|