Clamp


Object Hierarchy:

Hdy.Clamp Hdy.Clamp Hdy.Clamp Gtk.Bin Gtk.Bin Gtk.Bin->Hdy.Clamp Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Container GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Atk.Implementor Atk.Implementor Atk.Implementor->Hdy.Clamp Atk.Implementor->Gtk.Bin Atk.Implementor->Gtk.Container Atk.Implementor->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Hdy.Clamp Gtk.Buildable->Gtk.Bin Gtk.Buildable->Gtk.Container Gtk.Buildable->Gtk.Widget Gtk.Orientable Gtk.Orientable Gtk.Orientable->Hdy.Clamp

Description:

[ CCode ( type_id = "hdy_clamp_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public sealed class Clamp : Bin, Implementor, Buildable, Orientable

A widget constraining its child to a given size.

The `HdyClamp` widget constrains the size of the widget 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 child from its minimum to its maximum size is eased out for a smooth transition.

If the child requires more than the requested maximum size, it will be allocated the minimum size it can fit in instead.

CSS nodes

`HdyClamp` has a single CSS node with name `clamp`.

The node will get the style classes `.large` when its child reached its maximum size, `.small` when the clamp allocates its full size to its child, `.medium` in-between, or none if it didn't compute its size yet.


Namespace: Hdy
Package: libhandy-1

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Bin
All known members inherited from class Gtk.Widget
All known members inherited from interface Atk.Implementor
All known members inherited from interface Gtk.Orientable