![]() |

The Gtk::AspectFrame is useful when you want pack a widget so that it can resize but always retains the same aspect ratio. For instance, one might be drawing a small preview of a larger image. Because it derives from Gtk::Frame, it can draw a label and a frame around the child. The frame will be "shrink-wrapped" to the size of the child.
Public Member Functions | |
| virtual | ~AspectFrame () |
| GtkAspectFrame* | gobj () |
| Provides access to the underlying C GtkObject. | |
| const GtkAspectFrame* | gobj () const |
| Provides access to the underlying C GtkObject. | |
| AspectFrame (const Glib::ustring& label=Glib::ustring(), AlignmentEnum xalign=Gtk::ALIGN_CENTER, AlignmentEnum yalign=Gtk::ALIGN_CENTER, float ratio=1.0, bool obey_child=false) | |
| Constructor to create a new AspectFrame object. | |
| AspectFrame (const Glib::ustring& label, float xalign, float yalign, float ratio=1.0, bool obey_child=false) | |
| Constructor to create a new AspectFrame object. | |
| void | set (float xalign, float yalign, float ratio, bool obey_child=true) |
| Set the properties of this AspectFrame. | |
| void | set (AlignmentEnum xalign, AlignmentEnum yalign, float ratio, bool obey_child=true) |
| Set the properties of this AspectFrame. | |
| Glib::PropertyProxy<float> | property_xalign () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy<float> | property_yalign () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy<float> | property_ratio () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
| Glib::PropertyProxy<bool> | property_obey_child () |
| You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Related Functions | |
| (Note that these are not member functions.) | |
| Gtk::AspectFrame* | wrap (GtkAspectFrame* object, bool take_copy=false) |
|
|
|
|
||||||||||||||||||||||||
|
Constructor to create a new AspectFrame object.
|
|
||||||||||||||||||||||||
|
Constructor to create a new AspectFrame object.
|
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Frame. |
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Frame. |
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
||||||||||||||||||||
|
Set the properties of this AspectFrame.
|
|
||||||||||||||||||||
|
Set the properties of this AspectFrame.
|
|
||||||||||||
|
|