Inscription


Object Hierarchy:

Gtk.Inscription Gtk.Inscription Gtk.Inscription Gtk.Widget Gtk.Widget Gtk.Widget->Gtk.Inscription GLib.InitiallyUnowned GLib.InitiallyUnowned GLib.InitiallyUnowned->Gtk.Widget GLib.Object GLib.Object GLib.Object->GLib.InitiallyUnowned Gtk.Accessible Gtk.Accessible Gtk.Accessible->Gtk.Inscription Gtk.Accessible->Gtk.Widget Gtk.Buildable Gtk.Buildable Gtk.Buildable->Gtk.Inscription Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget Gtk.ConstraintTarget Gtk.ConstraintTarget->Gtk.Inscription Gtk.ConstraintTarget->Gtk.Widget Gtk.AccessibleText Gtk.AccessibleText Gtk.AccessibleText->Gtk.Inscription

Description:

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

`GtkInscription` is a widget to show 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.


Namespace: Gtk
Package: gtk4

Content:

Properties:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class Gtk.Widget