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

Safe HaskellNone
LanguageHaskell98

Data.GI.Base.GValue

Synopsis

Documentation

newtype GValue #

Constructors

GValue (ManagedPtr GValue) 

Instances

class IsGValue a where #

Minimal complete definition

toGValue, fromGValue

Methods

toGValue :: a -> IO GValue #

fromGValue :: GValue -> IO a #

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

data GValueConstruct o #

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

set_pointer :: GValue -> Ptr a -> IO () #

set_int :: GValue -> CInt -> IO () #

set_uint :: GValue -> CUInt -> IO () #

set_long :: GValue -> CLong -> IO () #

set_ulong :: GValue -> CULong -> IO () #

set_int32 :: GValue -> Int32 -> IO () #

set_int64 :: GValue -> Int64 -> IO () #

set_float :: GValue -> Float -> IO () #

set_boolean :: GValue -> Bool -> IO () #

set_gtype :: GValue -> GType -> IO () #

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

get_object :: GObject b => GValue -> IO (Ptr b) #

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

get_boxed :: GValue -> IO (Ptr b) #

set_enum :: GValue -> CUInt -> IO () #

set_flags :: GValue -> CUInt -> IO () #