gi-gtk-4.0.5: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Gtk.Interfaces.Buildable

Description

GtkBuildable allows objects to extend and customize their deserialization from ui files.

The interface includes methods for setting names and properties of objects, parsing custom tags and constructing child objects.

The GtkBuildable interface is implemented by all widgets and many of the non-widget objects that are provided by GTK. The main user of this interface is Builder. There should be very little need for applications to call any of these functions directly.

An object only needs to implement this interface if it needs to extend the GtkBuilder XML format or run any extra routines at deserialization time.

Synopsis

Exported types

newtype Buildable Source #

Memory-managed wrapper type.

class (GObject o, IsDescendantOf Buildable o) => IsBuildable o Source #

Type class for types which can be safely cast to Buildable, for instance with toBuildable.

Instances

Instances details
(GObject o, IsDescendantOf Buildable o) => IsBuildable o Source # 
Instance details

Defined in GI.Gtk.Interfaces.Buildable

toBuildable :: (MonadIO m, IsBuildable o) => o -> m Buildable Source #

Cast to Buildable, for types for which this is known to be safe. For general casts, use castTo.

Methods

getBuildableId

buildableGetBuildableId Source #

Arguments

:: (HasCallStack, MonadIO m, IsBuildable a) 
=> a

buildable: a GtkBuildable

-> m Text

Returns: the ID of the buildable object

Gets the ID of the buildable object.

GtkBuilder sets the name based on the ID attribute of the <object> tag used to construct the buildable.