gi-gtk-4.0.3: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.BuilderCScope

Description

No description available in the introspection data.

Synopsis

Exported types

newtype BuilderCScope Source #

Memory-managed wrapper type.

Constructors

BuilderCScope (ManagedPtr BuilderCScope) 

Instances

Instances details
Eq BuilderCScope Source # 
Instance details

Defined in GI.Gtk.Objects.BuilderCScope

GObject BuilderCScope Source # 
Instance details

Defined in GI.Gtk.Objects.BuilderCScope

ManagedPtrNewtype BuilderCScope Source # 
Instance details

Defined in GI.Gtk.Objects.BuilderCScope

Methods

toManagedPtr :: BuilderCScope -> ManagedPtr BuilderCScope

TypedObject BuilderCScope Source # 
Instance details

Defined in GI.Gtk.Objects.BuilderCScope

Methods

glibType :: IO GType

IsGValue BuilderCScope Source #

Convert BuilderCScope to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.BuilderCScope

Methods

toGValue :: BuilderCScope -> IO GValue

fromGValue :: GValue -> IO BuilderCScope

HasParentTypes BuilderCScope Source # 
Instance details

Defined in GI.Gtk.Objects.BuilderCScope

type ParentTypes BuilderCScope Source # 
Instance details

Defined in GI.Gtk.Objects.BuilderCScope

type ParentTypes BuilderCScope = '[Object, BuilderScope]

class (GObject o, IsDescendantOf BuilderCScope o) => IsBuilderCScope o Source #

Type class for types which can be safely cast to BuilderCScope, for instance with toBuilderCScope.

Instances

Instances details
(GObject o, IsDescendantOf BuilderCScope o) => IsBuilderCScope o Source # 
Instance details

Defined in GI.Gtk.Objects.BuilderCScope

toBuilderCScope :: (MonadIO m, IsBuilderCScope o) => o -> m BuilderCScope Source #

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

Methods

Overloaded methods

addCallbackSymbol

builderCScopeAddCallbackSymbol Source #

Arguments

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

self: a BuilderCScope

-> Text

callbackName: The name of the callback, as expected in the XML

-> Callback

callbackSymbol: The callback pointer

-> m () 

Adds the callbackSymbol to the scope of builder under the given callbackName.

Using this function overrides the behavior of builderCreateClosure for any callback symbols that are added. Using this method allows for better encapsulation as it does not require that callback symbols be declared in the global namespace.

new

builderCScopeNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m BuilderScope

Returns: a new BuilderCScope

Creates a new BuilderCScope object to use with future Builder instances.

Calling this function is only necessary if you want to add custom callbacks via builderCScopeAddCallbackSymbol.