![]() |
![]() |
The Frame widget surrounds its single child with a decorative frame and an optional label. If present, the label is drawn in a gap in the top side of the frame. The position of the label can be controlled with set_label_align().
Public Member Functions | |
virtual | ~Frame () |
GtkFrame* | gobj () |
Provides access to the underlying C GtkObject. | |
const GtkFrame* | gobj () const |
Provides access to the underlying C GtkObject. | |
Frame () | |
Frame (const Glib::ustring& label) | |
void | set_label (const Glib::ustring& label) |
Set the label to appear in the top edge of the frame. | |
void | unset_label () |
Glib::ustring | get_label () const |
If the frame's label widget is a Gtk::Label, return the text in the label widget. | |
void | set_label_widget (Widget& label_widget) |
Set the label widget for the frame. | |
Widget* | get_label_widget () |
Retrieves the label widget for the frame. | |
const Widget* | get_label_widget () const |
Retrieves the label widget for the frame. | |
void | set_label_align (float xalign=0.0, float yalign=0.5) |
Set the alignment of the Frame's label. | |
void | set_label_align (AlignmentEnum xalign, AlignmentEnum yalign=Gtk::ALIGN_CENTER) |
void | get_label_align (float& xalign, float& yalign) const |
Retrieves the X and Y alignment of the frame's label. | |
void | set_shadow_type (ShadowType type) |
Sets shadow type of the frame. | |
ShadowType | get_shadow_type () const |
Retrieves the shadow type of the frame. | |
Glib::PropertyProxy<Glib::ustring> | property_label () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<double> | property_label_xalign () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<double> | property_label_yalign () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<ShadowType> | property_shadow_type () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Glib::PropertyProxy<Widget*> | property_label_widget () |
You rarely need to use properties because there are get_ and set_ methods for almost all of them. | |
Protected Member Functions | |
virtual void | compute_child_allocation_vfunc (GtkAllocation* allocation) |
Related Functions | |
(Note that these are not member functions.) | |
Gtk::Frame* | wrap (GtkFrame* object, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
If the frame's label widget is a Gtk::Label, return the text in the label widget.
(The frame will have a Gtk::Label for the label widget if a non-
|
|
Retrieves the X and Y alignment of the frame's label. See set_label_align().
|
|
Retrieves the label widget for the frame. See set_label_widget().
|
|
Retrieves the label widget for the frame. See set_label_widget().
|
|
Retrieves the shadow type of the frame. See set_shadow_type().
|
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Bin. Reimplemented in Gtk::AspectFrame. |
|
Provides access to the underlying C GtkObject.
Reimplemented from Gtk::Bin. Reimplemented in Gtk::AspectFrame. |
|
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.
|
|
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
|
|
Set the label to appear in the top edge of the frame. Label alignment defaults to the upper left corner of the frame. |
|
|
|
Set the alignment of the Frame's label.
|
|
Set the label widget for the frame. This is the widget that will appear embedded in the top edge of the frame as a title.
|
|
Sets shadow type of the frame.
|
|
|
|
|