AspectFrame
Object Hierarchy:
Description:
[
CCode ( type_id =
"gtk_aspect_frame_get_type ()" ) ]
public class AspectFrame :
Widget,
Accessible,
Buildable,
ConstraintTarget
`GtkAspectFrame` preserves the aspect ratio of its child.
The frame can respect the aspect ratio of the child widget, or use its own aspect ratio.
CSS nodes
`GtkAspectFrame` uses a CSS node with name `frame`.
Content:
Properties:
- public Widget child { get; set; }
The child widget.
- public bool obey_child { get; set; }
Whether the `GtkAspectFrame` should use the aspect ratio of its child.
- public float ratio { get; set; }
The aspect ratio to be used by the `GtkAspectFrame`.
- public float xalign { get; set; }
The horizontal alignment of the child.
- public float yalign { get; set; }
The vertical alignment of the child.
Creation methods:
Methods:
- public unowned Widget? get_child ()
Gets the child widget of this.
- public bool get_obey_child ()
Returns whether the child's size request should override the set
aspect ratio of the `GtkAspectFrame`.
- public float get_ratio ()
Returns the desired aspect ratio of the child.
- public float get_xalign ()
Returns the horizontal alignment of the child within the allocation of
the `GtkAspectFrame`.
- public float get_yalign ()
Returns the vertical alignment of the child within the allocation of
the `GtkAspectFrame`.
- public void set_child (Widget? child)
Sets the child widget of this.
- public void set_obey_child (bool obey_child)
Sets whether the aspect ratio of the child's size request should
override the set aspect ratio of the `GtkAspectFrame`.
- public void set_ratio (float ratio)
Sets the desired aspect ratio of the child.
- public void set_xalign (float xalign)
Sets the horizontal alignment of the child within the allocation of
the `GtkAspectFrame`.
- public void set_yalign (float yalign)
Sets the vertical alignment of the child within the allocation of the
`GtkAspectFrame`.
Inherited Members:
All known members inherited from class Gtk.Widget
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref
All known members inherited from interface Gtk.Accessible
All known members inherited from interface Gtk.Buildable