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 |
GtkBuilderListItemFactory
is a GtkListItemFactory
that creates
widgets by instantiating GtkBuilder
UI templates.
The templates must be extending GtkListItem
, and typically use
GtkExpression
s to obtain data from the items in the model.
Example:
xml code
<interface> <template class="GtkListItem"> <property name="child"> <object class="GtkLabel"> <property name="xalign">0</property> <binding name="label"> <lookup name="name" type="SettingsKey"> <lookup name="item">GtkListItem</lookup> </lookup> </binding> </object> </property> </template> </interface>
Synopsis
- newtype BuilderListItemFactory = BuilderListItemFactory (ManagedPtr BuilderListItemFactory)
- class (GObject o, IsDescendantOf BuilderListItemFactory o) => IsBuilderListItemFactory o
- toBuilderListItemFactory :: (MonadIO m, IsBuilderListItemFactory o) => o -> m BuilderListItemFactory
- builderListItemFactoryGetBytes :: (HasCallStack, MonadIO m, IsBuilderListItemFactory a) => a -> m Bytes
- builderListItemFactoryGetResource :: (HasCallStack, MonadIO m, IsBuilderListItemFactory a) => a -> m (Maybe Text)
- builderListItemFactoryGetScope :: (HasCallStack, MonadIO m, IsBuilderListItemFactory a) => a -> m (Maybe BuilderScope)
- builderListItemFactoryNewFromBytes :: (HasCallStack, MonadIO m, IsBuilderScope a) => Maybe a -> Bytes -> m BuilderListItemFactory
- builderListItemFactoryNewFromResource :: (HasCallStack, MonadIO m, IsBuilderScope a) => Maybe a -> Text -> m BuilderListItemFactory
- constructBuilderListItemFactoryBytes :: (IsBuilderListItemFactory o, MonadIO m) => Bytes -> m (GValueConstruct o)
- getBuilderListItemFactoryBytes :: (MonadIO m, IsBuilderListItemFactory o) => o -> m Bytes
- constructBuilderListItemFactoryResource :: (IsBuilderListItemFactory o, MonadIO m) => Text -> m (GValueConstruct o)
- getBuilderListItemFactoryResource :: (MonadIO m, IsBuilderListItemFactory o) => o -> m (Maybe Text)
- constructBuilderListItemFactoryScope :: (IsBuilderListItemFactory o, MonadIO m, IsBuilderScope a) => a -> m (GValueConstruct o)
- getBuilderListItemFactoryScope :: (MonadIO m, IsBuilderListItemFactory o) => o -> m (Maybe BuilderScope)
Exported types
newtype BuilderListItemFactory Source #
Memory-managed wrapper type.
BuilderListItemFactory (ManagedPtr BuilderListItemFactory) |
Instances
Eq BuilderListItemFactory Source # | |
Defined in GI.Gtk.Objects.BuilderListItemFactory | |
GObject BuilderListItemFactory Source # | |
Defined in GI.Gtk.Objects.BuilderListItemFactory | |
ManagedPtrNewtype BuilderListItemFactory Source # | |
Defined in GI.Gtk.Objects.BuilderListItemFactory toManagedPtr :: BuilderListItemFactory -> ManagedPtr BuilderListItemFactory | |
TypedObject BuilderListItemFactory Source # | |
Defined in GI.Gtk.Objects.BuilderListItemFactory | |
HasParentTypes BuilderListItemFactory Source # | |
Defined in GI.Gtk.Objects.BuilderListItemFactory | |
IsGValue (Maybe BuilderListItemFactory) Source # | Convert |
Defined in GI.Gtk.Objects.BuilderListItemFactory gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe BuilderListItemFactory -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe BuilderListItemFactory) | |
type ParentTypes BuilderListItemFactory Source # | |
Defined in GI.Gtk.Objects.BuilderListItemFactory |
class (GObject o, IsDescendantOf BuilderListItemFactory o) => IsBuilderListItemFactory o Source #
Type class for types which can be safely cast to BuilderListItemFactory
, for instance with toBuilderListItemFactory
.
Instances
(GObject o, IsDescendantOf BuilderListItemFactory o) => IsBuilderListItemFactory o Source # | |
Defined in GI.Gtk.Objects.BuilderListItemFactory |
toBuilderListItemFactory :: (MonadIO m, IsBuilderListItemFactory o) => o -> m BuilderListItemFactory Source #
Cast to BuilderListItemFactory
, for types for which this is known to be safe. For general casts, use castTo
.
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
getBytes, getData, getProperty, getQdata, getResource, getScope.
Setters
getBytes
builderListItemFactoryGetBytes Source #
:: (HasCallStack, MonadIO m, IsBuilderListItemFactory a) | |
=> a |
|
-> m Bytes | Returns: The |
Gets the data used as the GtkBuilder
UI template for constructing
listitems.
getResource
builderListItemFactoryGetResource Source #
:: (HasCallStack, MonadIO m, IsBuilderListItemFactory a) | |
=> a |
|
-> m (Maybe Text) | Returns: The path to the resource |
If the data references a resource, gets the path of that resource.
getScope
builderListItemFactoryGetScope Source #
:: (HasCallStack, MonadIO m, IsBuilderListItemFactory a) | |
=> a |
|
-> m (Maybe BuilderScope) | Returns: The scope used when constructing listitems |
Gets the scope used when constructing listitems.
newFromBytes
builderListItemFactoryNewFromBytes Source #
:: (HasCallStack, MonadIO m, IsBuilderScope a) | |
=> Maybe a |
|
-> Bytes |
|
-> m BuilderListItemFactory | Returns: a new |
Creates a new GtkBuilderListItemFactory
that instantiates widgets
using bytes
as the data to pass to GtkBuilder
.
newFromResource
builderListItemFactoryNewFromResource Source #
:: (HasCallStack, MonadIO m, IsBuilderScope a) | |
=> Maybe a |
|
-> Text |
|
-> m BuilderListItemFactory | Returns: a new |
Creates a new GtkBuilderListItemFactory
that instantiates widgets
using data read from the given resourcePath
to pass to GtkBuilder
.
Properties
bytes
GBytes
containing the UI definition.
constructBuilderListItemFactoryBytes :: (IsBuilderListItemFactory o, MonadIO m) => Bytes -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “bytes
” property. This is rarely needed directly, but it is used by new
.
getBuilderListItemFactoryBytes :: (MonadIO m, IsBuilderListItemFactory o) => o -> m Bytes Source #
Get the value of the “bytes
” property.
When overloading is enabled, this is equivalent to
get
builderListItemFactory #bytes
resource
Path of the resource containing the UI definition.
constructBuilderListItemFactoryResource :: (IsBuilderListItemFactory o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “resource
” property. This is rarely needed directly, but it is used by new
.
getBuilderListItemFactoryResource :: (MonadIO m, IsBuilderListItemFactory o) => o -> m (Maybe Text) Source #
Get the value of the “resource
” property.
When overloading is enabled, this is equivalent to
get
builderListItemFactory #resource
scope
GtkBuilderScope
to use when instantiating listitems
constructBuilderListItemFactoryScope :: (IsBuilderListItemFactory o, MonadIO m, IsBuilderScope a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “scope
” property. This is rarely needed directly, but it is used by new
.
getBuilderListItemFactoryScope :: (MonadIO m, IsBuilderListItemFactory o) => o -> m (Maybe BuilderScope) Source #
Get the value of the “scope
” property.
When overloading is enabled, this is equivalent to
get
builderListItemFactory #scope