Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
- newtype Buildable = Buildable (ManagedPtr Buildable)
- class (GObject o, IsDescendantOf Buildable o) => IsBuildable o
- toBuildable :: (MonadIO m, IsBuildable o) => o -> m Buildable
- buildableGetBuildableId :: (HasCallStack, MonadIO m, IsBuildable a) => a -> m (Maybe Text)
Exported types
Memory-managed wrapper type.
Instances
Eq Buildable Source # | |
GObject Buildable Source # | |
Defined in GI.Gtk.Interfaces.Buildable | |
ManagedPtrNewtype Buildable Source # | |
Defined in GI.Gtk.Interfaces.Buildable toManagedPtr :: Buildable -> ManagedPtr Buildable | |
TypedObject Buildable Source # | |
Defined in GI.Gtk.Interfaces.Buildable | |
HasParentTypes Buildable Source # | |
Defined in GI.Gtk.Interfaces.Buildable | |
IsGValue (Maybe Buildable) Source # | Convert |
Defined in GI.Gtk.Interfaces.Buildable gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Buildable -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Buildable) | |
type ParentTypes Buildable Source # | |
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
(GObject o, IsDescendantOf Buildable o) => IsBuildable o Source # | |
Defined in GI.Gtk.Interfaces.Buildable |
toBuildable :: (MonadIO m, IsBuildable o) => o -> m Buildable Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getBuildableId, getData, getProperty, getQdata.
Setters
getBuildableId
buildableGetBuildableId Source #
:: (HasCallStack, MonadIO m, IsBuildable a) | |
=> a |
|
-> m (Maybe 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
.