haskell-gi-0.17.2: Generate Haskell bindings for GObject Introspection capable libraries

Safe HaskellSafe
LanguageHaskell98

Data.GI.GIR.BasicTypes

Description

Basic types used in GIR parsing.

Synopsis

Documentation

data Name Source #

Name for a symbol in the GIR file.

Constructors

Name 

Fields

Instances

Eq Name Source # 

Methods

(==) :: Name -> Name -> Bool

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

Ord Name Source # 

Methods

compare :: Name -> Name -> Ordering

(<) :: Name -> Name -> Bool

(<=) :: Name -> Name -> Bool

(>) :: Name -> Name -> Bool

(>=) :: Name -> Name -> Bool

max :: Name -> Name -> Name

min :: Name -> Name -> Name

Show Name Source # 

Methods

showsPrec :: Int -> Name -> ShowS

show :: Name -> String

showList :: [Name] -> ShowS

data Transfer Source #

Transfer mode for an argument or property.

Instances

Eq Transfer Source # 

Methods

(==) :: Transfer -> Transfer -> Bool

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

Ord Transfer Source # 

Methods

compare :: Transfer -> Transfer -> Ordering

(<) :: Transfer -> Transfer -> Bool

(<=) :: Transfer -> Transfer -> Bool

(>) :: Transfer -> Transfer -> Bool

(>=) :: Transfer -> Transfer -> Bool

max :: Transfer -> Transfer -> Transfer

min :: Transfer -> Transfer -> Transfer

Show Transfer Source # 

Methods

showsPrec :: Int -> Transfer -> ShowS

show :: Transfer -> String

showList :: [Transfer] -> ShowS

newtype Alias Source #

An alias, which is simply (Namespace, name).

Constructors

Alias (Text, Text) 

Instances

Eq Alias Source # 

Methods

(==) :: Alias -> Alias -> Bool

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

Ord Alias Source # 

Methods

compare :: Alias -> Alias -> Ordering

(<) :: Alias -> Alias -> Bool

(<=) :: Alias -> Alias -> Bool

(>) :: Alias -> Alias -> Bool

(>=) :: Alias -> Alias -> Bool

max :: Alias -> Alias -> Alias

min :: Alias -> Alias -> Alias

Show Alias Source # 

Methods

showsPrec :: Int -> Alias -> ShowS

show :: Alias -> String

showList :: [Alias] -> ShowS

data Type Source #

This type represents the types found in GObject Introspection interfaces: the types of constants, arguments, etc.

Constructors

TBasicType BasicType 
TError

GError

TVariant

GVariant

TParamSpec

GParamSpec

TCArray Bool Int Int Type

Zero terminated, Array Fixed Size, Array Length, Element Type

TGArray Type

GArray

TPtrArray Type

GPtrArray

TByteArray

GByteArray

TGList Type

GList

TGSList Type

GSList

TGHash Type Type

GHashTable

TInterface Text Text

A reference to some API in the GIR

Instances

Eq Type Source # 

Methods

(==) :: Type -> Type -> Bool

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

Ord Type Source # 

Methods

compare :: Type -> Type -> Ordering

(<) :: Type -> Type -> Bool

(<=) :: Type -> Type -> Bool

(>) :: Type -> Type -> Bool

(>=) :: Type -> Type -> Bool

max :: Type -> Type -> Type

min :: Type -> Type -> Type

Show Type Source # 

Methods

showsPrec :: Int -> Type -> ShowS

show :: Type -> String

showList :: [Type] -> ShowS

data BasicType Source #

Basic types. These are generally trivial to marshal, and the GIR assumes that they are defined.

Constructors

TBoolean

gboolean

TInt

gint

TUInt

guint

TLong

glong

TULong

gulong

TInt8

gint8

TUInt8

guint8

TInt16

gint16

TUInt16

guint16

TInt32

gint32

TUInt32

guint32

TInt64

gint64

TUInt64

guint64

TFloat

gfloat

TDouble

gdouble

TUniChar

gunichar

TGType

GType

TUTF8

gchar*, encoded as UTF-8

TFileName

gchar*, encoding a filename

TPtr

gpointer

TIntPtr

gintptr

TUIntPtr

guintptr

Instances

Eq BasicType Source # 

Methods

(==) :: BasicType -> BasicType -> Bool

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

Ord BasicType Source # 

Methods

compare :: BasicType -> BasicType -> Ordering

(<) :: BasicType -> BasicType -> Bool

(<=) :: BasicType -> BasicType -> Bool

(>) :: BasicType -> BasicType -> Bool

(>=) :: BasicType -> BasicType -> Bool

max :: BasicType -> BasicType -> BasicType

min :: BasicType -> BasicType -> BasicType

Show BasicType Source # 

Methods

showsPrec :: Int -> BasicType -> ShowS

show :: BasicType -> String

showList :: [BasicType] -> ShowS