ClampLayout
Object Hierarchy:
Adw.ClampLayout
Adw.ClampLayout
Adw.ClampLayout
Gtk.LayoutManager
Gtk.LayoutManager
Gtk.LayoutManager->Adw.ClampLayout
GLib.Object
GLib.Object
GLib.Object->Gtk.LayoutManager
Gtk.Orientable
Gtk.Orientable
Gtk.Orientable->Adw.ClampLayout
Description:
[ CCode ( type_id = "adw_clamp_layout_get_type ()" ) ]public sealed class ClampLayout : LayoutManager , Orientable
A layout manager constraining its children to a given size.
<picture> <source srcset="clamp-wide-dark.png" media="(prefers-color-scheme: dark)"> <img src="clamp-wide.png"
alt="clamp-wide"> </picture> <picture> <source srcset="clamp-narrow-dark.png" media="(prefers-color-scheme: dark)">
<img src="clamp-narrow.png" alt="clamp-narrow"> </picture>
`AdwClampLayout` constraints the size of the widgets it contains to a given maximum size. It will constrain the width if it is
horizontal, or the height if it is vertical. The expansion of the children from their minimum to their maximum size is eased out for a
smooth transition.
If a child requires more than the requested maximum size, it will be allocated the minimum size it can fit in instead.
`AdwClampLayout` can scale with the text scale factor, use the [property@ClampLayout:unit] property to enable that behavior.
Content:
Properties:
public int maximum_size { get ; set ; }
The maximum size to allocate to the children.
public int tightening_threshold { get ; set ; }
The size above which the children are clamped.
public LengthUnit unit { get ; set ; }
The length unit for maximum size and tightening threshold.
Creation methods:
Methods:
public int get_maximum_size ()
Gets the maximum size allocated to the children.
public int get_tightening_threshold ()
Gets the size above which the children are clamped.
public LengthUnit get_unit ()
Gets the length unit for maximum size and tightening threshold.
public void set_maximum_size (int maximum_size)
Sets the maximum size allocated to the children.
public void set_tightening_threshold (int tightening_threshold)
Sets the size above which the children are clamped.
public void set_unit (LengthUnit unit)
Sets the length unit for maximum size and tightening threshold.
Inherited Members:
All known members inherited from class Gtk.LayoutManager
allocate
create_layout_child
get_layout_child
get_request_mode
get_size_request_mode
get_widget
layout_changed
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.Orientable