|
Public Methods |
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 () |
Glib::PropertyProxy<float> | property_yalign () |
Glib::PropertyProxy<float> | property_ratio () |
Glib::PropertyProxy<bool> | property_obey_child () |
Related Functions |
(Note that these are not member functions.)
|
Gtk::AspectFrame* | wrap (GtkAspectFrame* object, bool take_copy=false) |
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.