gi-gtk-4.0.4: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
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 [GtkBuilder UI descriptions][BUILDER-UI]. 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 Builder format or run any extra routines at deserialization time.

Synopsis

Exported types

newtype Buildable Source #

Memory-managed wrapper type.

Constructors

Buildable (ManagedPtr Buildable) 

Instances

Instances details
Eq Buildable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Buildable

GObject Buildable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Buildable

ManagedPtrNewtype Buildable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Buildable

Methods

toManagedPtr :: Buildable -> ManagedPtr Buildable

TypedObject Buildable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Buildable

Methods

glibType :: IO GType

HasParentTypes Buildable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Buildable

IsGValue (Maybe Buildable) Source #

Convert Buildable to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Interfaces.Buildable

Methods

gvalueGType_ :: IO GType

gvalueSet_ :: Ptr GValue -> Maybe Buildable -> IO ()

gvalueGet_ :: Ptr GValue -> IO (Maybe Buildable)

type ParentTypes Buildable Source # 
Instance details

Defined in GI.Gtk.Interfaces.Buildable

type ParentTypes Buildable = '[Object]

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 Buildable

-> m Text

Returns: the ID set with gtk_buildable_set_buildable_id()

Gets the ID of the buildable object.

Builder sets the name based on the [GtkBuilder UI definition][BUILDER-UI] used to construct the buildable.