[gst-devel] xoverlay with gtk widgets and buttons

Stefan Kost ensonic at hora-obscura.de
Wed Jan 27 17:04:40 CET 2010


John Buckley wrote:
>
> Hello,
>
> I am trying to implement a series of GTK+ buttons around the perimeter
> of a video stream that is rendering in a gst-xoverlay.  The xoverlay
> auto centers itself and I'd like to put three buttons on the left and
> three buttons on the right.
>
>  
>
> I have read how to create and pack buttons into boxes.  The buttons
> are being created and become visible after you click on them.  But
> they don't look very nice.
>
>  
>
> Are there any examples out there for this and is there a simple way of
> creating a typical "square GUI button" with colors, images and 3D effects?
>
>  
>
> The gst-xoverlay documentation shows a special way of registering the
> window-id such that capturing events and mouse-clicks is more
> reliable.  I am going to try and code that method.
>
if your xvideo support colorkeying, you can ask xvimagesink to not
manage the colorkey and do it yourself, you could then use e.g. the
whole window or any subreagio for the video (the the gdk-window for
that) and have regular buttons above the video. You would need to handle
expose events on the gtk-widget that provides the video window and in
the expose handler paint it with the colorkey. This is how we get
buttons to hover over the video/camera on Nokia N900. No fancy OpenGL :)

Stefan
>
>  
>
> john buckley
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> ------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>   





More information about the gstreamer-devel mailing list