Sets our main struct and passes it to the parent class.
Create a new #GtkAspectFrame.
Get the main Gtk struct
the main Gtk struct as a void*
Set parameters for an existing #GtkAspectFrame.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
If the frame’s label widget is a #GtkLabel, returns the text in the label widget. (The frame will have a #GtkLabel for the label widget if a non-%NULL argument was passed to gtk_frame_new().)
Retrieves the X and Y alignment of the frame’s label. See gtk_frame_set_label_align().
Retrieves the label widget for the frame. See gtk_frame_set_label_widget().
Retrieves the shadow type of the frame. See gtk_frame_set_shadow_type().
Removes the current #GtkFrame:label-widget. If @label is not %NULL, creates a new #GtkLabel with that text and adds it as the #GtkFrame:label-widget.
Sets the alignment of the frame widget’s label. The default values for a newly created frame are 0.0 and 0.5.
Sets the #GtkFrame:label-widget for the frame. This is the widget that will appear embedded in the top edge of the frame as a title.
Sets the #GtkFrame:shadow-type for @frame, i.e. whether it is drawn without (%GTK_SHADOW_NONE) or with (other values) a visible border. Values other than %GTK_SHADOW_NONE are treated identically by GtkFrame. The chosen type is applied by removing or adding the .flat class to the CSS node named border.
The #GtkAspectFrame 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. #GtkAspectFrame derives from #GtkFrame, so it can draw a label and a frame around the child. The frame will be “shrink-wrapped” to the size of the child.
CSS nodes
GtkAspectFrame uses a CSS node with name frame.