xoverlay with gtk widgets and buttons

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

xoverlay with gtk widgets and buttons

John Buckley

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.

 

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gst-devel] xoverlay with gtk widgets and buttons

sledge hammer
I don't really have an answer, just another question. Why do you need these buttons above the video? To display controls(like play/pause/stop/exit fullscreen)? If yes, consider putting them in a GtkWindow which is of type "POPUP" and place that window above the video.


Date: Mon, 25 Jan 2010 14:37:30 +0000
From: [hidden email]
To: [hidden email]
Subject: [gst-devel] xoverlay with gtk widgets and buttons

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.
 
john buckley



Νέα Windows 7: Βρείτε τον κατάλληλο υπολογιστή για εσάς. Μάθετε περισσότερα.
------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gst-devel] xoverlay with gtk widgets and buttons

John Buckley
Yes, those are the types of controls I am talking about.  That is an interesting idea and maybe a simpler way to do it.  Any other ideas out there?
Reply | Threaded
Open this post in threaded view
|

Re: [gst-devel] xoverlay with gtk widgets and buttons

Tristan Matthews-2
In reply to this post by John Buckley
2010/1/25 John Buckley <[hidden email]>

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 a simple example that renders gst video in a gtkwindow and has one slider widget. It hides the widget when you fullscreen the window. It might be useful:
http://svn.sat.qc.ca/trac/miville/browser/inhouse/prototypes/gstreamer/cpp/fullscreen_with_widgets/test.c?rev=4540

Otherwise I would suggest trying to build prototypes in glade to get the spacing right. It will also help you in experimenting with different widgets, i.e. custom widgets with cairo rendering etc.

Good luck,
Tristan

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.

 

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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Tristan Matthews
email: [hidden email]
web: http://tristanswork.blogspot.com

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [gst-devel] xoverlay with gtk widgets and buttons

Stefan Sauer
In reply to this post by John Buckley
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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel