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

Safe HaskellNone
LanguageHaskell98

Data.GI.CodeGen.API

Synopsis

Documentation

data GIRInfo Source #

Constructors

GIRInfo 
Instances
Show GIRInfo Source # 
Instance details

Defined in Data.GI.CodeGen.API

loadGIRInfo Source #

Arguments

:: Bool

verbose

-> Text

name

-> Maybe Text

version

-> [FilePath]

extra paths to search

-> [GIRRule]

fixups

-> IO (GIRInfo, [GIRInfo])

(parsed doc, parsed deps)

Load and parse a GIR file, including its dependencies.

loadRawGIRInfo Source #

Arguments

:: Bool

verbose

-> Text

name

-> Maybe Text

version

-> [FilePath]

extra paths to search

-> IO GIRInfo

bare parsed document

Bare minimum loading and parsing of a single repository, without loading or parsing its dependencies, resolving aliases, or fixing up structs or interfaces.

data GIRRule Source #

A rule for modifying the GIR file.

Constructors

GIRSetAttr (GIRPath, Name) Text

(Path to element, attrName), newValue.

GIRAddNode GIRPath Name

Add a child node at the given selector.

GIRDeleteNode GIRPath

Delete any nodes matching the given selector.

Instances
Show GIRRule Source # 
Instance details

Defined in Data.GI.CodeGen.API

type GIRPath = [GIRNodeSpec] Source #

Path to a node in the GIR file, starting from the document root of the GIR file. This is a very simplified version of something like XPath.

data GIRNodeSpec Source #

Node selector for a path in the GIR file.

Constructors

GIRNamed GIRNameTag

Node with the given "name" attr.

GIRType Text

Node of the given type.

GIRTypedName Text GIRNameTag

Combination of the above.

data GIRNameTag Source #

A name tag, which is either a name or a regular expression.

data Name Source #

Name for a symbol in the GIR file.

Constructors

Name 

Fields

Instances
Eq Name Source # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Methods

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

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

Ord Name Source # 
Instance details

Defined in Data.GI.GIR.BasicTypes

Show Name Source # 
Instance details

Defined in Data.GI.GIR.BasicTypes

data AllocationInfo Source #

Allocation/deallocation information for a given foreign pointer.

data AllocationOp Source #

Information about a given allocation operation. It is either disallowed, allowed via the given function, or it is unknown at the current stage how to perform the operation.

unknownAllocationInfo :: AllocationInfo Source #

A convenience function, filling in all the allocation info to unknown.

data Scope Source #

Instances
Eq Scope Source # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

(==) :: Scope -> Scope -> Bool Source #

(/=) :: Scope -> Scope -> Bool Source #

Ord Scope Source # 
Instance details

Defined in Data.GI.GIR.Arg

Show Scope Source # 
Instance details

Defined in Data.GI.GIR.Arg

data MethodType Source #

Constructors

Constructor

Constructs an instance of the parent type

MemberFunction

A function in the namespace

OrdinaryMethod

A function taking the parent instance as first argument.

data Arg Source #

Constructors

Arg 

Fields

Instances
Eq Arg Source # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

(==) :: Arg -> Arg -> Bool Source #

(/=) :: Arg -> Arg -> Bool Source #

Ord Arg Source # 
Instance details

Defined in Data.GI.GIR.Arg

Methods

compare :: Arg -> Arg -> Ordering Source #

(<) :: Arg -> Arg -> Bool Source #

(<=) :: Arg -> Arg -> Bool Source #

(>) :: Arg -> Arg -> Bool Source #

(>=) :: Arg -> Arg -> Bool Source #

max :: Arg -> Arg -> Arg Source #

min :: Arg -> Arg -> Arg Source #

Show Arg Source # 
Instance details

Defined in Data.GI.GIR.Arg

data Function Source #

Constructors

Function 
Instances
Show Function Source # 
Instance details

Defined in Data.GI.GIR.Function

data Signal Source #

Instances
Eq Signal Source # 
Instance details

Defined in Data.GI.GIR.Signal

Show Signal Source # 
Instance details

Defined in Data.GI.GIR.Signal

data Method Source #

Instances
Eq Method Source # 
Instance details

Defined in Data.GI.GIR.Method

Show Method Source # 
Instance details

Defined in Data.GI.GIR.Method

data Flags Source #

Constructors

Flags Enumeration 
Instances
Show Flags Source # 
Instance details

Defined in Data.GI.GIR.Flags