Re: Widgets size
- From: Murray Cumming <murrayc murrayc com>
- To: Pedro Sousa <pasousa ml gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Widgets size
- Date: Mon, 21 Apr 2008 16:09:17 +0200
On Mon, 2008-04-21 at 14:34 +0100, Pedro Sousa wrote:
> Hi.
>
> I'm drawing a picture inside nootbook page, using the Gtk::Image widget.
> The problem is that the images are bigger them the widget page and I
> want to scale into the page size.
>
> How can I know the page size (or the nootbook size)?
I think you want to use get_allocation().
You might look at the scale() method in Glom's derived Gtk::Image
widget:
http://svn.gnome.org/viewvc/glom/trunk/glom/utility_widgets/imageglom.cc?view=markup
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]