gi-gtk-4.0.8: 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.BuilderScope

Description

GtkBuilderScope is an interface to provide language binding support to GtkBuilder.

The goal of GtkBuilderScope is to look up programming-language-specific values for strings that are given in a GtkBuilder UI file.

The primary intended audience is bindings that want to provide deeper integration of GtkBuilder into the language.

A GtkBuilderScope instance may be used with multiple GtkBuilder objects, even at once.

By default, GTK will use its own implementation of GtkBuilderScope for the C language which can be created via builderCScopeNew.

If you implement GtkBuilderScope for a language binding, you may want to (partially) derive from or fall back to a BuilderCScope, as that class implements support for automatic lookups from C symbols.

Synopsis

Exported types

newtype BuilderScope Source #

Memory-managed wrapper type.

Constructors

BuilderScope (ManagedPtr BuilderScope) 

Instances

Instances details
Eq BuilderScope Source # 
Instance details

Defined in GI.Gtk.Interfaces.BuilderScope

GObject BuilderScope Source # 
Instance details

Defined in GI.Gtk.Interfaces.BuilderScope

ManagedPtrNewtype BuilderScope Source # 
Instance details

Defined in GI.Gtk.Interfaces.BuilderScope

Methods

toManagedPtr :: BuilderScope -> ManagedPtr BuilderScope

TypedObject BuilderScope Source # 
Instance details

Defined in GI.Gtk.Interfaces.BuilderScope

Methods

glibType :: IO GType

HasParentTypes BuilderScope Source # 
Instance details

Defined in GI.Gtk.Interfaces.BuilderScope

IsGValue (Maybe BuilderScope) Source #

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

Instance details

Defined in GI.Gtk.Interfaces.BuilderScope

Methods

gvalueGType_ :: IO GType

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

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

type ParentTypes BuilderScope Source # 
Instance details

Defined in GI.Gtk.Interfaces.BuilderScope

type ParentTypes BuilderScope = '[Object]

class (GObject o, IsDescendantOf BuilderScope o) => IsBuilderScope o Source #

Type class for types which can be safely cast to BuilderScope, for instance with toBuilderScope.

Instances

Instances details
(GObject o, IsDescendantOf BuilderScope o) => IsBuilderScope o Source # 
Instance details

Defined in GI.Gtk.Interfaces.BuilderScope

toBuilderScope :: (MonadIO m, IsBuilderScope o) => o -> m BuilderScope Source #

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

Methods