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

Safe HaskellNone
LanguageHaskell98

Data.GI.CodeGen.API

Synopsis

Documentation

data GIRInfo Source

Constructors

GIRInfo 

Fields

girPCPackages :: [Text]
 
girNSName :: Text
 
girNSVersion :: Text
 
girAPIs :: [(Name, API)]
 
girCTypes :: Map Text Name
 

Instances

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

Instances

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 Text

Node with the given "name" attr.

GIRType Text

Node of the given type.

GIRTypedName Text Text

Combination of the above.

Instances

data Name Source

Name for a symbol in the GIR file.

Constructors

Name 

Fields

namespace :: Text
 
name :: Text
 

Instances

data Transfer Source

Transfer mode for an argument or property.

deprecatedPragma :: Text -> Maybe DeprecationInfo -> Text Source

Encode the given DeprecationInfo for the given symbol as a deprecation pragma.

data DeprecationInfo Source

Deprecation information on a symbol.

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 Constant Source

Info about a constant.

Instances

data Arg Source

Constructors

Arg 

Fields

argCName :: Text

C name for the argument. For a escaped name valid in Haskell code, use escapedArgName.

argType :: Type
 
direction :: Direction
 
mayBeNull :: Bool
 
argScope :: Scope
 
argClosure :: Int
 
argDestroy :: Int
 
argCallerAllocates :: Bool
 
transfer :: Transfer
 

Instances

data Function Source

Constructors

Function 

Fields

fnSymbol :: Text
 
fnThrows :: Bool
 
fnMovedTo :: Maybe Text
 
fnCallable :: Callable
 

Instances

data Signal Source

Instances

data Callback Source

Constructors

Callback Callable 

Instances

data Enumeration Source

Constructors

Enumeration 

Fields

enumValues :: [(Text, Int64)]
 
errorDomain :: Maybe Text
 
enumTypeInit :: Maybe Text
 
enumStorageBytes :: Int

Bytes used for storage of this struct.

enumDeprecated :: Maybe DeprecationInfo
 

Instances

data Flags Source

Constructors

Flags Enumeration 

Instances