I am not sure about that.

For child windows DFB take the position and dimension and gets the
corresponding Subsurface from the Parent Widget's Surface.

So for your query: "how can I get the surfaces associated with a window?Is
there an API?"

Suggestion: If you know what widgets or children your top level windows
contains them you can take those child widget pointers and pass to
gdk_directfb_surface_lookup to get the corresponding surface. It should
return proper surface for a widget.

This is similar to knowing "Is it possible to get a list of subsurfaces of a
CoreSurface (surface
of the top level window..??"

Regards,
Siddharth



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Arvind Ayyangar
Sent: Thursday, January 04, 2007 4:36 PM
To: Kumar Siddharth
Cc: directfb-dev
Subject: Re: [directfb-dev] surfaces associated with a window


does that mean that a surface dump of the Top Level Window will
include the dumps of the subsurfaces?
Is it possible to get a list of subsurfaces of a CoreSurface (surface
of the top level window)?

On 1/4/07, Kumar Siddharth <[EMAIL PROTECTED]> wrote:
>
>
> What i know is: GTKDirectFB creates ONE dfb-window and ONE surface for the
> Top Level Window. For any child window, dfb-window and surface is not
> created rather a subsurface of the TopLevel Surface is assigned to the
> widget. Hope this is correct and it answers your query.
>
> Regards,
> Siddharth
>
>
>
> -----Original Message-----
> From: Arvind Ayyangar [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 04, 2007 4:14 PM
> To: Kumar Siddharth
> Cc: directfb-dev
> Subject: Re: [directfb-dev] surfaces associated with a window
>
>
> gdk_directfb_surface_lookup returns only one surface. What about the
> other surfaces associated with the window.
> for e.g, in gtk applications, wen u add many widgets into the
> container, many surface are created, which probably correspondto each
> widget. But only one directfb window is created, which is for the top
> level window. The surface returned is on the top level window in this
> case. The surfaces of the other widgets are not returned..
>
> how does gtk/dfb know which surfaces are to be painted when a
> gtk_widget_show call is made?
>
> On 1/4/07, Kumar Siddharth <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > You may try "IDirectFBSurface* gdk_directfb_surface_lookup(GdkWindow
> > *window)" ..
> >
> > Regards,
> > Siddharth
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of Arvind Ayyangar
> > Sent: Thursday, January 04, 2007 3:10 PM
> > To: directfb-dev
> > Subject: [directfb-dev] surfaces associated with a window
> >
> >
> > hi ppl,
> >  how can I get the surfaces associated with a window?
> > Is there an API?
> >
> > --
> > Regards
> > ARviND AyyangaR
> >
> > _______________________________________________
> > directfb-dev mailing list
> > [email protected]
> > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
> >
> >
>
>


--
Regards
  ARviND AyyangaR

 "Success is not measured by what a man accomplishes, but by the
opposition he has encountered, and the courage with which he
maintained the struggle against overwhelming odds."

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


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

Reply via email to