Claudio Ciccani wrote:
> If we want to realease the 1.0.0 on September, probably we should start
> discussing what there should be in the "final" DirectFB API.
> 
> Here ara some changes I'd like to discuss.
> 
> IDirectFBDisplayLayer
> ---------------------
> - IDirectFBDisplayLayer::EnumWindows( DFBWindowCallback callback,
>                                       void             *ctx )
>   DFBEnumerationResult (*DFBWindowCallback) ( DFBWindowID id,
>                            DFBWindowDescription dsc, void *ctx )
>   Get an enumeration of existing windows.

Yes, I think a callback is the best here, because when you get
a list by one call, it might already be outdated when you process
it. You have to do the GetWindow() from within the enumeration
callback to make sure you'll get all of them.

On the other hand, the stack can be freezed by blocking in the
callback :(

>   Usefull for desktop pagers and similar applications.

What about notifications about new windows?

> IDirectFBWindow
> ---------------
> - IDirectFBWindow::SetTitle( const char *title )

I agree with Ben to make that a property.

> - IDirectFBWindow::Bind( IDirectFBWindow *window, int x, int y )
> 
> - IDirectFBWindow::Unbind( IDirectFBWindow *window )

That's a nice and quite often requested feature.

> IDirectFBSurface
> ----------------
> - IDirectFBSurface::SetSubSurfaceMode( DFBSubSurfaceMode mode )
>   Set how a subsurface must behave when the parent surface gets resized.
>   enum DFBSubSurfaceMode: DSSM_FIXED,        /* keep original rectangle
>                                                 (default) */
>                           DSSM_PROPORTIONAL, /* keep proportions */
>                           DSSM_BORDERS.      /* keep distance
>                                                 from borders */
>   Particularly usefull for widgets libraries (like LiTe) because it
>   avoids reallocation of subsurfaces.

That involves keeping a tree of all sub surfaces within DirectFB, with
all pitfalls related to locks, references etc. but it's really worth
giving it a try. I just didn't do it yet :)

> It could be also a good idea releasing some RCs (Release Candidate)
> before the stable 1.0.0.

Difficult to make 1.0 on September 5th then...
What about one RC on August 21st only? :-)

-- 
Best regards,
   Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

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

Reply via email to