haskell-gi-base-0.21.1: Foundation for libraries generated by haskell-gi

Safe HaskellNone
LanguageHaskell98

Data.GI.Base.GValue

Contents

Synopsis

Constructing GValues

newtype GValue Source #

Constructors

GValue (ManagedPtr GValue) 
Instances
BoxedObject GValue Source # 
Instance details

class IsGValue a where Source #

A convenience class for marshaling back and forth between Haskell values and GValues.

Minimal complete definition

toGValue, fromGValue

Instances
IsGValue Bool Source # 
Instance details
IsGValue Double Source # 
Instance details
IsGValue Float Source # 
Instance details
IsGValue Int32 Source # 
Instance details
IsGValue Int64 Source # 
Instance details
IsGValue Word32 Source # 
Instance details
IsGValue Word64 Source # 
Instance details
IsGValue CInt Source # 
Instance details
IsGValue CUInt Source # 
Instance details
IsGValue CLong Source # 
Instance details
IsGValue CULong Source # 
Instance details
IsGValue GType Source # 
Instance details
IsGValue (Maybe String) Source # 
Instance details
IsGValue (Maybe Text) Source # 
Instance details
IsGValue (Ptr a) Source # 
Instance details

data GValueConstruct o Source #

A type holding a GValue with an associated label. It is parameterized by a phantom type encoding the target type for the GValue (useful when constructing properties).

newGValue :: GType -> IO GValue Source #

Build a new, empty, GValue of the given type.

buildGValue :: GType -> (GValue -> a -> IO ()) -> a -> IO GValue Source #

A convenience function for building a new GValue and setting the initial value.

noGValue :: Maybe GValue Source #

A convenience alias for Nothing :: Maybe GValue.

Setters and getters

set_object :: GObject a => GValue -> Ptr a -> IO () Source #

set_boxed :: GValue -> Ptr a -> IO () Source #