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 constant value in a GtkExpression
.
Synopsis
- newtype ConstantExpression = ConstantExpression (ManagedPtr ConstantExpression)
- class (BoxedPtr o, TypedObject o, IsDescendantOf ConstantExpression o) => IsConstantExpression o
- toConstantExpression :: (MonadIO m, IsConstantExpression o) => o -> m ConstantExpression
- constantExpressionGetValue :: (HasCallStack, MonadIO m, IsConstantExpression a) => a -> m GValue
- constantExpressionNewForValue :: (HasCallStack, MonadIO m) => GValue -> m ConstantExpression
Exported types
newtype ConstantExpression Source #
Memory-managed wrapper type.
ConstantExpression (ManagedPtr ConstantExpression) |
Instances
Eq ConstantExpression Source # | |
Defined in GI.Gtk.Objects.ConstantExpression (==) :: ConstantExpression -> ConstantExpression -> Bool # (/=) :: ConstantExpression -> ConstantExpression -> Bool # | |
BoxedPtr ConstantExpression Source # | |
Defined in GI.Gtk.Objects.ConstantExpression | |
ManagedPtrNewtype ConstantExpression Source # | |
Defined in GI.Gtk.Objects.ConstantExpression toManagedPtr :: ConstantExpression -> ManagedPtr ConstantExpression | |
TypedObject ConstantExpression Source # | |
Defined in GI.Gtk.Objects.ConstantExpression | |
HasParentTypes ConstantExpression Source # | |
Defined in GI.Gtk.Objects.ConstantExpression | |
type ParentTypes ConstantExpression Source # | |
Defined in GI.Gtk.Objects.ConstantExpression |
class (BoxedPtr o, TypedObject o, IsDescendantOf ConstantExpression o) => IsConstantExpression o Source #
Type class for types which can be safely cast to ConstantExpression
, for instance with toConstantExpression
.
Instances
(BoxedPtr o, TypedObject o, IsDescendantOf ConstantExpression o) => IsConstantExpression o Source # | |
Defined in GI.Gtk.Objects.ConstantExpression |
toConstantExpression :: (MonadIO m, IsConstantExpression o) => o -> m ConstantExpression Source #
Cast to ConstantExpression
, 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
getValue
constantExpressionGetValue Source #
:: (HasCallStack, MonadIO m, IsConstantExpression a) | |
=> a |
|
-> m GValue | Returns: the value |
Gets the value that a constant expression evaluates to.
newForValue
constantExpressionNewForValue Source #
:: (HasCallStack, MonadIO m) | |
=> GValue |
|
-> m ConstantExpression | Returns: a new |
Creates an expression that always evaluates to the given value
.