Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype BuilderCScope = BuilderCScope (ManagedPtr BuilderCScope)
- class (GObject o, IsDescendantOf BuilderCScope o) => IsBuilderCScope o
- toBuilderCScope :: (MonadIO m, IsBuilderCScope o) => o -> m BuilderCScope
- builderCScopeAddCallbackSymbol :: (HasCallStack, MonadIO m, IsBuilderCScope a) => a -> Text -> Callback -> m ()
- builderCScopeNew :: (HasCallStack, MonadIO m) => m BuilderScope
Exported types
newtype BuilderCScope Source #
Memory-managed wrapper type.
Instances
Eq BuilderCScope Source # | |
Defined in GI.Gtk.Objects.BuilderCScope (==) :: BuilderCScope -> BuilderCScope -> Bool # (/=) :: BuilderCScope -> BuilderCScope -> Bool # | |
IsGValue BuilderCScope Source # | Convert |
Defined in GI.Gtk.Objects.BuilderCScope toGValue :: BuilderCScope -> IO GValue # fromGValue :: GValue -> IO BuilderCScope # | |
ManagedPtrNewtype BuilderCScope Source # | |
Defined in GI.Gtk.Objects.BuilderCScope | |
TypedObject BuilderCScope Source # | |
Defined in GI.Gtk.Objects.BuilderCScope | |
GObject BuilderCScope Source # | |
Defined in GI.Gtk.Objects.BuilderCScope | |
HasParentTypes BuilderCScope Source # | |
Defined in GI.Gtk.Objects.BuilderCScope | |
type ParentTypes BuilderCScope Source # | |
Defined in GI.Gtk.Objects.BuilderCScope |
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
(GObject o, IsDescendantOf BuilderCScope o) => IsBuilderCScope o Source # | |
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 #
:: (HasCallStack, MonadIO m, IsBuilderCScope a) | |
=> a |
|
-> Text |
|
-> Callback |
|
-> 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
:: (HasCallStack, MonadIO m) | |
=> m BuilderScope | Returns: a new |
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
.