Inscription


Object Hierarchy:

Object hierarchy for Inscription

Description:

[ CCode ( type_id = "gtk_inscription_get_type ()" ) ]
[ Version ( since = "4.8" ) ]
public class Inscription : Widget, Accessible, AccessibleText, Buildable, ConstraintTarget

Shows text in a predefined area.

You likely want to use `GtkLabel` instead as this widget is intended only for a small subset of use cases. The main scenario envisaged is inside lists such as `GtkColumnView`.

While a `GtkLabel` sizes itself depending on the text that is displayed, `GtkInscription` is given a size and inscribes the given text into that space as well as it can.

Users of this widget should take care to plan behaviour for the common case where the text doesn't fit exactly in the allocated space.

CSS nodes

`GtkInscription` has a single CSS node with the name label.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget