Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » GTK+
  • » Keeping an "aspect ratio" on a widget [RSS Feed]

#1 March 18, 2008 00:15:55

n.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Keeping an "aspect ratio" on a widget


Hello
I try to set an application who display video, and I wan't if the main
window is resized, to preserve an aspect ratio on the Drawing area
widget (within a viewport) who display the video.

I need to fix this aspect ratio as 720/576 (width/height).

I did not find a way to do that.
Somebody have an idea on how managing this feature ?

Thanks in advance

Nico

_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

#2 March 18, 2008 00:38:10

Vreixo F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Keeping an "aspect ratio" on a widget


Hi!

Have you tried GtkAspectFrame?

Cheers,
Vreixo


--- nico <> escreveu:

>
>
> Hello
> I try to set an application who display video, and I
> wan't if the main
> window is resized, to preserve an aspect ratio on
> the Drawing area
> widget (within a viewport) who display the video.
>
> I need to fix this aspect ratio as 720/576
> (width/height).
>
> I did not find a way to do that.
> Somebody have an idea on how managing this feature ?
>
> Thanks in advance
>
> Nico
>
> _______________________________________________
> gtk-list mailing list
> gtk-l***@*nome.org
>http://mail.gnome.org/mailman/listinfo/gtk-list>



Abra sua conta no Yahoo! Mail, o único sem limite de espaço para
armazenamento!http://br.mail.yahoo.com/_______________________________________________
gtk-list mailing list
gtk-list@gnome.orghttp://mail.gnome.org/mailman/listinfo/gtk-list

Offline

  • Root
  • » GTK+
  • » Keeping an "aspect ratio" on a widget [RSS Feed]

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support