hsqml-datamodel-0.2.0.1: HsQML (Qt5) data model.

Safe HaskellNone
LanguageHaskell2010

Graphics.QML.DataModel.Internal.Types

Synopsis

Documentation

data DataModel a Source

A data model handle.

Constructors

DataModel 

Fields

callbacks :: MVar (Ptr HmCallbacks)

Pointer to a C structure storing the callbacks.

delegate :: HmDelegateHandle

Identifier of the handle.

type RowCountCallback = IO Int Source

Used by QML to query the number of rows in a model.

type ColumnCountCallback = IO Int Source

Used by QML to query the number of columns in a model.

type DataCallback a = Int -> IO a Source

Used by QML to obtain a row at the given index.

type HeaderDataCallback = Int -> IO String Source

Used by QML to obtain the name of the column at the given index.