Ben Combee wrote:
> Claudio, the Unbind semantics are a little odd.  Can you update the
> header to clairfy
> 
> 1) can a window be bound to multiple windows at once?

You can't bind (attach) the same window to multiple windows
but a window can have multiple windows bound (attached) to it.
That is because if you bind a window to another, then the bound window
must "follow" the window to which it's attached when the latter moves to
a new position.
It's intutive that a window can't "follow" more than one window.

> 2) if not, what error is returned

None.
The new Bind() overrides the previous one (i.e. it automatically
unbounds the window before binding it to the new window).

> 3) if you can't bind to multiple windows, why specify a "unbind"
> window in the Unbind call?

Because a window might have multiple windows bound (attached) to it.
> 
> I like the idea a lot, just curious about the execution.

I realize that the documention should be detailed enough to let people
understand these concepts immediatly, so i have just committed a change
to the header to clarify these aspects.

> 
> On 4/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> New commits:
>> http://git.directfb.org/?p=core/DirectFB.git;a=commit;h=f7abc96cc2fcee72fd35e7ec4220f05a389b9fd4
>>
>> commit f7abc96cc2fcee72fd35e7ec4220f05a389b9fd4
>> Author: Claudio Ciccani <[EMAIL PROTECTED]>
>> Date:   Mon Apr 23 16:45:32 2007 +0200
>>
>>     Implemented IDirectFBWindow::Bind()/Unbind(). :)
>>
>>     The change is backward and binary compatible.
>>
>>  include/directfb.h            |   25 +++++
>>  src/core/windows.c            |  200
>> ++++++++++++++++++++++++++++++++++++++---
>>  src/core/windows.h            |   16 ++++
>>  src/core/windows_internal.h   |   12 +++
>>  src/windows/idirectfbwindow.c |   42 +++++++++
>>  5 files changed, 283 insertions(+), 12 deletions(-)
>>
>>
>> _______________________________________________
>> directfb-cvs mailing list
>> [EMAIL PROTECTED]
>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-cvs
>>
> 
> 


-- 
Regards,
     Claudio Ciccani

[EMAIL PROTECTED]
http://directfb.org
http://sf.net/projects/php-directfb

_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to