| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Handy.Objects.ValueObject
Description
No description available in the introspection data.
Synopsis
- newtype ValueObject = ValueObject (ManagedPtr ValueObject)
- class (GObject o, IsDescendantOf ValueObject o) => IsValueObject o
- toValueObject :: (MonadIO m, IsValueObject o) => o -> m ValueObject
- noValueObject :: Maybe ValueObject
- valueObjectCopyValue :: (HasCallStack, MonadIO m, IsValueObject a) => a -> GValue -> m ()
- valueObjectDupString :: (HasCallStack, MonadIO m, IsValueObject a) => a -> m Text
- valueObjectGetString :: (HasCallStack, MonadIO m, IsValueObject a) => a -> m Text
- valueObjectGetValue :: (HasCallStack, MonadIO m, IsValueObject a) => a -> m GValue
- valueObjectNew :: (HasCallStack, MonadIO m) => GValue -> m ValueObject
- constructValueObjectValue :: IsValueObject o => GValue -> IO (GValueConstruct o)
- getValueObjectValue :: (MonadIO m, IsValueObject o) => o -> m GValue
Exported types
newtype ValueObject Source #
Memory-managed wrapper type.
Constructors
| ValueObject (ManagedPtr ValueObject) |
Instances
| GObject ValueObject Source # | |
Defined in GI.Handy.Objects.ValueObject Methods gobjectType :: IO GType # | |
| HasParentTypes ValueObject Source # | |
Defined in GI.Handy.Objects.ValueObject | |
| type ParentTypes ValueObject Source # | |
Defined in GI.Handy.Objects.ValueObject | |
class (GObject o, IsDescendantOf ValueObject o) => IsValueObject o Source #
Type class for types which can be safely cast to ValueObject, for instance with toValueObject.
Instances
| (GObject o, IsDescendantOf ValueObject o) => IsValueObject o Source # | |
Defined in GI.Handy.Objects.ValueObject | |
toValueObject :: (MonadIO m, IsValueObject o) => o -> m ValueObject Source #
Cast to ValueObject, for types for which this is known to be safe. For general casts, use castTo.
noValueObject :: Maybe ValueObject Source #
A convenience alias for Nothing :: Maybe ValueObject.
Methods
copyValue
Arguments
| :: (HasCallStack, MonadIO m, IsValueObject a) | |
| => a |
|
| -> GValue |
|
| -> m () |
Copy data from the contained Value into dest.
Since: 0.0.8
dupString
Arguments
| :: (HasCallStack, MonadIO m, IsValueObject a) | |
| => a |
|
| -> m Text | Returns: a copy of the contained string |
Returns a copy of the contained string if the value is of type
G_TYPE_STRING.
Since: 0.0.8
getString
Arguments
| :: (HasCallStack, MonadIO m, IsValueObject a) | |
| => a |
|
| -> m Text | Returns: the contained string |
Returns the contained string if the value is of type G_TYPE_STRING.
Since: 0.0.8
getValue
Arguments
| :: (HasCallStack, MonadIO m, IsValueObject a) | |
| => a |
|
| -> m GValue | Returns: the contained |
Return the contained value.
Since: 0.0.8
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => GValue |
|
| -> m ValueObject | Returns: a new |
Create a new ValueObject.
Since: 0.0.8
Properties
value
No description available in the introspection data.
constructValueObjectValue :: IsValueObject o => GValue -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “value” property. This is rarely needed directly, but it is used by new.
getValueObjectValue :: (MonadIO m, IsValueObject o) => o -> m GValue Source #
Get the value of the “value” property.
When overloading is enabled, this is equivalent to
get valueObject #value