[Pharo-dev] Convert to Athens

Igor Stasenko siguctua at gmail.com
Wed Dec 4 12:51:25 EST 2013


On 20 November 2013 17:04, J.F. Rick <self at je77.com> wrote:

> Thanks. It works. I already have found a few bugs and one thing I don't
> understand.
>
> (1) A few Paint things seem to implement athensFillRectangle:on: and
> athensFillPath:on: rather than fillRectangle:on: and fillPath:on:. It seems
> like it should be the latter rather than the former. I changed the names
> and the evil rectangle of doom disappeared.
>
> this is recent changes. I chosen to namespace selectors.
The former selectors should not be used and replaced by new ones (if they
still there).
I suspect you using outdated version + loaded recent version(s) of packages,
going into desync  between packages.
It is recommended to always use published version of Athens and always load
configuration(s).


(2) Using the AthenWrapMorph, it seems that the bottom row of pixels is not
rendered or clipped. I can stop this phenomenon by changing the
createSurface method to have the extent be 0 at 1 bigger. While that works, it
seems like there's a bug somewhere in AthensCairoSurface.

I doubt it is in AthensCairoSurface.
Most probably it is clipping issue. Need to be carefully checked.
Changing the surface size is just workaround.

(3) I ended up changing a morph so that it should render differently. In
standard Pharo, I just use "self changed" and it updates. Is there an
equivalent in Athens? Do I have to explicitly tell Athens to rerender it?
If so, how? I tried "self render" but that did not seem to help.

No any equivalent. Updating UI is orthogonal to Athens.
AthenWrapMorph sends drawOnAthensCanvas: to its submorphs, everything else
is up to implementation.

Cheers,

Jeff


On Wed, Nov 20, 2013 at 11:08 AM, Igor Stasenko <siguctua at gmail.com> wrote:

> http://www.smalltalkhub.com/#!/~Pharo/Athens
>
>
> On 20 November 2013 09:04, J.F. Rick <self at je77.com> wrote:
>
>> Right. Where is this Athens repository? I have the latest in Pharo30/main
>> (Athens-Morphic-MarcusDenker.23.mcz) and that does not seem to include
>> AthensWrapperMorph.
>>
>> Cheers,
>>
>> Jeff
>>
>>
>> On Wed, Nov 20, 2013 at 8:35 AM, Igor Stasenko <siguctua at gmail.com>wrote:
>>
>>>
>>>
>>>
>>> On 19 November 2013 17:42, J.F. Rick <self at je77.com> wrote:
>>>
>>>> Indeed. I would like to know that. It doesn't seem to be included in
>>>> the latest Pharo 3.0.
>>>>
>>>>
>>> it could be not yet included.
>>> in that case, load most recent Athens-Morphic package from athens
>>> repository.
>>>
>>>
>>>
>>>> Cheers,
>>>>
>>>> Jeff
>>>>
>>>>
>>>> On Fri, Nov 15, 2013 at 7:34 PM, Hilaire Fernandes <
>>>> hilaire.fernandes at gmail.com> wrote:
>>>>
>>>>> Le 15/11/2013 14:17, Igor Stasenko a écrit :
>>>>> >
>>>>> > for transition , i implemented a special morph, AthensWrapMorph
>>>>> > which wraps (as its name says) its children morphs and forces them
>>>>> to be
>>>>> > rendered by athens
>>>>> > (the child morphs will never receive #drawOn: but
>>>>> #drawOnAthensCanvas:
>>>>> > instead ).
>>>>>
>>>>>
>>>>> I guess Jeff, may want to know where to find this wrapper.
>>>>>
>>>>> Hilaire
>>>>>
>>>>>
>>>>> --
>>>>> Dr. Geo http://drgeo.eu
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Jochen "Jeff" Rick, Ph.D.
>>>> http://www.je77.com/
>>>> Skype ID: jochenrick
>>>>
>>>
>>>
>>>
>>> --
>>> Best regards,
>>> Igor Stasenko.
>>>
>>
>>
>>
>> --
>> Jochen "Jeff" Rick, Ph.D.
>> http://www.je77.com/
>> Skype ID: jochenrick
>>
>
>
>
> --
> Best regards,
> Igor Stasenko.
>



-- 
Jochen "Jeff" Rick, Ph.D.
http://www.je77.com/
Skype ID: jochenrick



-- 
Best regards,
Igor Stasenko.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20131204/8769a584/attachment-0002.html>


More information about the Pharo-dev mailing list