System.Glib.StoreValue

glib-0.13.4.1: Binding to the GLIB library for Gtk2Hs.

Maintainer | gtk2hs-users@lists.sourceforge.net
Stability | provisional
Portability | portable (depends on GHC)
Safe Haskell | None
Language | Haskell98

System.Glib.StoreValue

Description

Synopsis

- data TMType
  - = TMinvalid
  - | TMuint
  - | TMint
  - | TMboolean
  - | TMenum
  - | TMflags
  - | TMfloat
  - | TMdouble
  - | TMstring
  - | TMobject
- data GenericValue
  - = GVuint Word
  - | GVint Int
  - | GVboolean Bool
  - | GVenum Int
  - | GVflags Int
  - | GVfloat Float
  - | GVdouble Double
  - | GVstring (Maybe Text)
  - | GVobject GObject
- valueSetGenericValue :: GValue -> GenericValue -> IO ()
- valueGetGenericValue :: GValue -> IO GenericValue

# Documentation

data TMType #

Constructors

TMinvalid |
TMuint |
TMint |
TMboolean |
TMenum |
TMflags |
TMfloat |
TMdouble |
TMstring |
TMobject |

Instances

Enum TMType # |
Methods succ :: TMType -> TMType # pred :: TMType -> TMType # toEnum :: Int -> TMType # fromEnum :: TMType -> Int # enumFrom :: TMType -> [TMType] # enumFromThen :: TMType -> TMType -> [TMType] # enumFromTo :: TMType -> TMType -> [TMType] # enumFromThenTo :: TMType -> TMType -> TMType -> [TMType] #

data GenericValue #

A union with information about the currently stored type.

- Internally used by Graphics.UI.Gtk.TreeList.TreeModel.

Constructors

GVuint Word |
GVint Int |
GVboolean Bool |
GVenum Int |
GVflags Int |
GVfloat Float |
GVdouble Double |
GVstring (Maybe Text) |
GVobject GObject |

valueSetGenericValue :: GValue -> GenericValue -> IO () #

valueGetGenericValue :: GValue -> IO GenericValue #