Squeezer
Object Hierarchy:
Adw.Squeezer
Adw.Squeezer
Adw.Squeezer
Gtk.Widget
Gtk.Widget
Gtk.Widget->Adw.Squeezer
GLib.InitiallyUnowned
GLib.InitiallyUnowned
GLib.InitiallyUnowned->Gtk.Widget
GLib.Object
GLib.Object
GLib.Object->GLib.InitiallyUnowned
Gtk.Accessible
Gtk.Accessible
Gtk.Accessible->Adw.Squeezer
Gtk.Accessible->Gtk.Widget
Gtk.Buildable
Gtk.Buildable
Gtk.Buildable->Adw.Squeezer
Gtk.Buildable->Gtk.Widget
Gtk.ConstraintTarget
Gtk.ConstraintTarget
Gtk.ConstraintTarget->Adw.Squeezer
Gtk.ConstraintTarget->Gtk.Widget
Gtk.Orientable
Gtk.Orientable
Gtk.Orientable->Adw.Squeezer
Description:
[ CCode ( type_id = "adw_squeezer_get_type ()" ) ] [ Version ( since = "1.0" ) ]public sealed class Squeezer : Widget , Accessible , Buildable , ConstraintTarget , Orientable
A best fit container.
<picture> <source srcset="squeezer-wide-dark.png" media="(prefers-color-scheme: dark)"> <img src="squeezer-wide.png"
alt="squeezer-wide"> </picture> <picture> <source srcset="squeezer-narrow-dark.png" media="(prefers-color-scheme: dark)
"> <img src="squeezer-narrow.png" alt="squeezer-narrow"> </picture>
The `AdwSqueezer` widget is a container which only shows the first of its children that fits in the available size. It is convenient to
offer different widgets to represent the same data with different levels of detail, making the widget seem to squeeze itself to fit in the
available space.
Transitions between children can be animated as fades. This can be controlled with [property@Squeezer:transition-type].
CSS nodes
`AdwSqueezer` has a single CSS node with name `squeezer`.
Content:
Properties:
public bool allow_none { get ; set ; }
Whether to allow squeezing beyond the last child's minimum size.
public bool homogeneous { get ; set ; }
Whether all children have the same size for the opposite orientation.
public bool interpolate_size { get ; set ; }
Whether the squeezer interpolates its size when changing the visible
child.
public SelectionModel pages { owned get ; }
A selection model with the squeezer's pages.
public FoldThresholdPolicy switch_threshold_policy { get ; set ; }
Determines when the squeezer will switch children.
public uint transition_duration { get ; set ; }
The animation duration, in milliseconds.
public bool transition_running { get ; }
Whether a transition is currently running.
public SqueezerTransitionType transition_type { get ; set ; }
The type of animation used for transitions between children.
public Widget visible_child { get ; }
The currently visible child.
public float xalign { get ; set ; }
The horizontal alignment, from 0 (start) to 1 (end).
public float yalign { get ; set ; }
The vertical alignment, from 0 (top) to 1 (bottom).
Creation methods:
Methods:
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
accessible_role
get_accessible_role
reset_property
reset_relation
reset_state
update_property
update_property_value
update_relation
update_relation_value
update_state
update_state_value
All known members inherited from interface Gtk.Buildable
add_child
custom_finished
custom_tag_end
custom_tag_start
get_buildable_id
get_id
get_internal_child
parser_finished
set_buildable_property
set_id
All known members inherited from interface Gtk.Orientable