[Gtk-sharp-list] RFC: Add API to get Drawable xid for user with GStreamer

Sebastian Dröge slomo at circular-chaos.org
Wed May 27 10:10:49 EDT 2009


Am Mittwoch, den 27.05.2009, 03:14 -0700 schrieb mkbosmans:
> Hi list,
> 
> I'm using Gtk# in combination with GStreamer. In GStreamer the way to send
> video to a specific window is to set the XwindowId property of the XOverlay
> interface of the video sink. On Windows XwindowId can be set to the HWND of
> the window.
> 
> Currently I P/Invoke these to functions:
> gdk_x11_drawable_get_xid
> gdk_win32_drawable_get_handle
> and pass the result to the GStreamer XOverlay.
> It would be really nice to have a managed wrapper for these functions.
> 
> >From my perspective (app-developer) it would be the best to have one place
> to call (e.g. Gdk.Drawable.Xid{get;}), so that there isn't any platform
> specific code in the application.
> But may be returning the HWND on Windows is too specific to the GStreamer
> XOverlay interface.
> Any thoughts?

Hi,
I really like the idea and planned to file a bug for this already.
Getting the "handle" of a Gdk drawable is probably useful in other
scenarios too. I guess it's also needed for example when you want to
draw via OpenGL on a Gdk drawable.

The only problem is probably the naming of the property: With X11 it's
called XID, with Win32 it's called Handle, with Quartz it probably has
another different name, ...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20090527/877c2524/attachment.bin 


More information about the Gtk-sharp-list mailing list