gi-handy-0.0.7: libhandy bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Handy.Objects.ValueObject

Description

No description available in the introspection data.

Synopsis

Exported types

newtype ValueObject Source #

Memory-managed wrapper type.

Constructors

ValueObject (ManagedPtr ValueObject) 

Instances

Instances details
Eq ValueObject Source # 
Instance details

Defined in GI.Handy.Objects.ValueObject

Methods

(==) :: ValueObject -> ValueObject -> Bool

(/=) :: ValueObject -> ValueObject -> Bool

GObject ValueObject Source # 
Instance details

Defined in GI.Handy.Objects.ValueObject

ManagedPtrNewtype ValueObject Source # 
Instance details

Defined in GI.Handy.Objects.ValueObject

Methods

toManagedPtr :: ValueObject -> ManagedPtr ValueObject

TypedObject ValueObject Source # 
Instance details

Defined in GI.Handy.Objects.ValueObject

Methods

glibType :: IO GType

IsGValue ValueObject Source #

Convert ValueObject to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Handy.Objects.ValueObject

Methods

toGValue :: ValueObject -> IO GValue

fromGValue :: GValue -> IO ValueObject

HasParentTypes ValueObject Source # 
Instance details

Defined in GI.Handy.Objects.ValueObject

type ParentTypes ValueObject Source # 
Instance details

Defined in GI.Handy.Objects.ValueObject

type ParentTypes ValueObject = '[Object]

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

Instances details
(GObject o, IsDescendantOf ValueObject o) => IsValueObject o Source # 
Instance details

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.

Methods

Overloaded methods

copyValue

valueObjectCopyValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsValueObject a) 
=> a

value: the ValueObject

-> GValue

dest: Value with correct type to copy into

-> m () 

Copy data from the contained Value into dest.

Since: 0.0.8

dupString

valueObjectDupString Source #

Arguments

:: (HasCallStack, MonadIO m, IsValueObject a) 
=> a

value: the ValueObject

-> 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

valueObjectGetString Source #

Arguments

:: (HasCallStack, MonadIO m, IsValueObject a) 
=> a

value: the ValueObject

-> m Text

Returns: the contained string

Returns the contained string if the value is of type G_TYPE_STRING.

Since: 0.0.8

getValue

valueObjectGetValue Source #

Arguments

:: (HasCallStack, MonadIO m, IsValueObject a) 
=> a

value: the ValueObject

-> m GValue

Returns: the contained Value

Return the contained value.

Since: 0.0.8

new

valueObjectNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> GValue

value: the Value to store

-> m ValueObject

Returns: a new ValueObject

Create a new ValueObject.

Since: 0.0.8

Properties

value

No description available in the introspection data.

constructValueObjectValue :: (IsValueObject o, MonadIO m) => GValue -> m (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