Login  Register

[Pharo-dev] question about HandMorph

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

[Pharo-dev] question about HandMorph

Alain Plantec-3
188 posts
Hi all,
The current hand has the world as its owner but the world
submorphs  do not contains the current hand.
Why is it like that ?
Thanks
Alain


Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: [Pharo-dev] question about HandMorph

Igor Stasenko
9533 posts
On 27 June 2013 10:44, plantec <[hidden email]> wrote:
> Hi all,
> The current hand has the world as its owner but the world
> submorphs  do not contains the current hand.
> Why is it like that ?

i do not think you will get the answer to your question here, because i think
most people here are clueless as well as you.

World knows about its hands via
world->state->hands.

If you look at HandMorph, it mixes a lot of roles together, including:
  - as a visual object (morph) which displaying mouse pointer
  - as an entry pont for dispatching events down to separate morphs

theoretically, it could be nice to have two separate obejcts for those roles,
one of them can indeed be just a morph, and contained in world but not
the other one.


--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: [Pharo-dev] question about HandMorph

Stéphane Ducasse
17193 posts

On Jun 27, 2013, at 1:49 PM, Igor Stasenko <[hidden email]> wrote:

> On 27 June 2013 10:44, plantec <[hidden email]> wrote:
>> Hi all,
>> The current hand has the world as its owner but the world
>> submorphs  do not contains the current hand.
>> Why is it like that ?
>
> i do not think you will get the answer to your question here, because i think
> most people here are clueless as well as you.
>
> World knows about its hands via
> world->state->hands.
>
> If you look at HandMorph, it mixes a lot of roles together, including:
>  - as a visual object (morph) which displaying mouse pointer
>  - as an entry pont for dispatching events down to separate morphs
>
> theoretically, it could be nice to have two separate obejcts for those roles,
> one of them can indeed be just a morph, and contained in world but not
> the other one.

yes we will start to work on that with fernando.

>
>
> --
> Best regards,
> Igor Stasenko.
>


Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: [Pharo-dev] question about HandMorph

Alain Plantec-3
188 posts
In reply to this post by Igor Stasenko

On 27 juin 2013, at 13:49, Igor Stasenko <[hidden email]> wrote:

> On 27 June 2013 10:44, plantec <[hidden email]> wrote:
>> Hi all,
>> The current hand has the world as its owner but the world
>> submorphs  do not contains the current hand.
>> Why is it like that ?
> If you look at HandMorph, it mixes a lot of roles together, including:
>  - as a visual object (morph) which displaying mouse pointer
>  - as an entry pont for dispatching events down to separate morphs
>
> theoretically, it could be nice to have two separate obejcts for those roles,
> one of them can indeed be just a morph, and contained in world but not
> the other one.
>

this is exactly what I was thinking about.
thanks a lot.
Alain

>
> --
> Best regards,
> Igor Stasenko.
>