On 9/21/05, Claudio Ciccani <[EMAIL PROTECTED]> wrote:
> Jorge Luis Zapata Muga wrote:
> > On 9/13/05, Denis Oliver Kropp <[EMAIL PROTECTED]> wrote:
> >
> >>Quoting Jorge Luis Zapata Muga:
> >>
> >>>hi all, i am able to set up differents windows  in the layer but can i
> >>>toggle a window to fullscreen mode? is there a way?
> >>
> >>No, you'd have to do that on your own by destroying the window
> >>and switching the display layer to exclusive cooperative level,
> >>setting the configuration and getting its surface.
> >>
> >
> >
> > Ok, but in what mode does the main interface (IDirectFB) should be?
> > (NORMAL, FULLSCREEN, EXCLUSIVE) as setting the cooperative level in
> > two sides is confusing (the layer and the main interface) maybe you
> > can explain me a little about this. So if i understand correctly to
> > switch a window to fullscreen:
> > 1. delete the window (and all other windows i might have)
> > 2. set the exclusive mode to the layer
> > 3. get the primary layer surface
> > 4. and what about the events? i have to create a new eventbuffer and
> > handle them as i did with the window events
> > 5. attach the logic of my program to this new surface
> >
> > and to restore the windows state
> > 1. release the layer surface
> > 2. create all the windows i had, again
> >
> > is this correct?
> >
>
> You don't need to release the windows,
> they will be restored when the layer reverts to SHARED mode.
>
> I have attached a small example, hope it will remove your doubts.
>
>
> --
> Regards,
>       Claudio Ciccani
>
> [EMAIL PROTECTED]
> http://directfb.org
> http://sf.net/projects/php-directfb
>
>
>

thanks for the example, is quite intuitive, i had a few problems with
the events, but everything is working ok now (switching fullscreen
on/off), thanks again.

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

Reply via email to