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 |
A GObject
property value in a GtkExpression
.
Synopsis
- newtype PropertyExpression = PropertyExpression (ManagedPtr PropertyExpression)
- class (BoxedPtr o, TypedObject o, IsDescendantOf PropertyExpression o) => IsPropertyExpression o
- toPropertyExpression :: (MonadIO m, IsPropertyExpression o) => o -> m PropertyExpression
- propertyExpressionGetExpression :: (HasCallStack, MonadIO m, IsPropertyExpression a) => a -> m (Maybe Expression)
- propertyExpressionGetPspec :: (HasCallStack, MonadIO m, IsPropertyExpression a) => a -> m GParamSpec
- propertyExpressionNew :: (HasCallStack, MonadIO m, IsExpression a) => GType -> Maybe a -> Text -> m PropertyExpression
- propertyExpressionNewForPspec :: (HasCallStack, MonadIO m, IsExpression a) => Maybe a -> GParamSpec -> m PropertyExpression
Exported types
newtype PropertyExpression Source #
Memory-managed wrapper type.
PropertyExpression (ManagedPtr PropertyExpression) |
Instances
Eq PropertyExpression Source # | |
Defined in GI.Gtk.Objects.PropertyExpression (==) :: PropertyExpression -> PropertyExpression -> Bool # (/=) :: PropertyExpression -> PropertyExpression -> Bool # | |
BoxedPtr PropertyExpression Source # | |
Defined in GI.Gtk.Objects.PropertyExpression | |
ManagedPtrNewtype PropertyExpression Source # | |
Defined in GI.Gtk.Objects.PropertyExpression toManagedPtr :: PropertyExpression -> ManagedPtr PropertyExpression | |
TypedObject PropertyExpression Source # | |
Defined in GI.Gtk.Objects.PropertyExpression | |
HasParentTypes PropertyExpression Source # | |
Defined in GI.Gtk.Objects.PropertyExpression | |
type ParentTypes PropertyExpression Source # | |
Defined in GI.Gtk.Objects.PropertyExpression |
class (BoxedPtr o, TypedObject o, IsDescendantOf PropertyExpression o) => IsPropertyExpression o Source #
Type class for types which can be safely cast to PropertyExpression
, for instance with toPropertyExpression
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf PropertyExpression o) => IsPropertyExpression o Source # | |
Defined in GI.Gtk.Objects.PropertyExpression |
toPropertyExpression :: (MonadIO m, IsPropertyExpression o) => o -> m PropertyExpression Source #
Cast to PropertyExpression
, 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
bind, evaluate, isStatic, ref, unref, watch.
Getters
getExpression, getPspec, getValueType.
Setters
None.
getExpression
propertyExpressionGetExpression Source #
:: (HasCallStack, MonadIO m, IsPropertyExpression a) | |
=> a |
|
-> m (Maybe Expression) | Returns: the object expression |
Gets the expression specifying the object of a property expression.
getPspec
propertyExpressionGetPspec Source #
:: (HasCallStack, MonadIO m, IsPropertyExpression a) | |
=> a |
|
-> m GParamSpec | Returns: the |
Gets the GParamSpec
specifying the property of
a property expression.
new
propertyExpressionNew Source #
:: (HasCallStack, MonadIO m, IsExpression a) | |
=> GType |
|
-> Maybe a |
|
-> Text |
|
-> m PropertyExpression | Returns: a new |
Creates an expression that looks up a property.
The object to use is found by evaluating the expression
,
or using the this
argument when expression
is NULL
.
If the resulting object conforms to this_type
, its property named
property_name
will be queried. Otherwise, this expression's
evaluation will fail.
The given this_type
must have a property with property_name
.
newForPspec
propertyExpressionNewForPspec Source #
:: (HasCallStack, MonadIO m, IsExpression a) | |
=> Maybe a |
|
-> GParamSpec |
|
-> m PropertyExpression | Returns: a new |
Creates an expression that looks up a property.
The object to use is found by evaluating the expression
,
or using the this
argument when expression
is NULL
.
If the resulting object conforms to this_type
, its
property specified by pspec
will be queried.
Otherwise, this expression's evaluation will fail.