Safe Haskell | None |
---|---|
Language | Haskell98 |
Data.GI.CodeGen.API
- data API
- data GIRInfo = GIRInfo {
- girPCPackages :: [Text]
- girNSName :: Text
- girNSVersion :: Text
- girAPIs :: [(Name, API)]
- girCTypes :: Map Text Name
- loadGIRInfo :: Bool -> Text -> Maybe Text -> [FilePath] -> [GIRRule] -> IO (GIRInfo, [GIRInfo])
- loadRawGIRInfo :: Bool -> Text -> Maybe Text -> [FilePath] -> IO GIRInfo
- data GIRRule = GIRSetAttr (GIRPath, Name) Text
- type GIRPath = [GIRNodeSpec]
- data GIRNodeSpec
- = GIRNamed Text
- | GIRType Text
- | GIRTypedName Text Text
- data Name = Name {}
- data Transfer
- data Direction
- data Scope
- deprecatedPragma :: Text -> Maybe DeprecationInfo -> Text
- data DeprecationInfo
- data PropertyFlag
- data MethodType
- data Constant = Constant {
- constantType :: Type
- constantValue :: Text
- constantDeprecated :: Maybe DeprecationInfo
- data Arg = Arg {}
- data Callable = Callable {}
- data Function = Function {}
- data Signal = Signal {
- sigName :: Text
- sigCallable :: Callable
- sigDeprecated :: Maybe DeprecationInfo
- data Property = Property {
- propName :: Text
- propType :: Type
- propFlags :: [PropertyFlag]
- propReadNullable :: Maybe Bool
- propWriteNullable :: Maybe Bool
- propTransfer :: Transfer
- propDeprecated :: Maybe DeprecationInfo
- data Field = Field {
- fieldName :: Text
- fieldVisible :: Bool
- fieldType :: Type
- fieldCallback :: Maybe Callback
- fieldOffset :: Int
- fieldFlags :: [FieldInfoFlag]
- fieldDeprecated :: Maybe DeprecationInfo
- data Struct = Struct {}
- data Callback = Callback Callable
- data Interface = Interface {
- ifTypeInit :: Maybe Text
- ifPrerequisites :: [Name]
- ifProperties :: [Property]
- ifSignals :: [Signal]
- ifMethods :: [Method]
- ifDeprecated :: Maybe DeprecationInfo
- data Method = Method {
- methodName :: Name
- methodSymbol :: Text
- methodThrows :: Bool
- methodType :: MethodType
- methodMovedTo :: Maybe Text
- methodCallable :: Callable
- data Object = Object {
- objParent :: Maybe Name
- objTypeInit :: Text
- objTypeName :: Text
- objInterfaces :: [Name]
- objDeprecated :: Maybe DeprecationInfo
- objDocumentation :: Maybe Documentation
- objMethods :: [Method]
- objProperties :: [Property]
- objSignals :: [Signal]
- data Enumeration = Enumeration {
- enumValues :: [(Text, Int64)]
- errorDomain :: Maybe Text
- enumTypeInit :: Maybe Text
- enumStorageBytes :: Int
- enumDeprecated :: Maybe DeprecationInfo
- data Flags = Flags Enumeration
- data Union = Union {
- unionIsBoxed :: Bool
- unionSize :: Int
- unionTypeInit :: Maybe Text
- unionFields :: [Field]
- unionMethods :: [Method]
- unionDeprecated :: Maybe DeprecationInfo
Documentation
Constructors
GIRInfo | |
Fields
|
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.
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.
A rule for modifying the GIR file.
Constructors
GIRSetAttr (GIRPath, Name) Text | (Path to element, attrName), newValue |
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
Name for a symbol in the GIR file.
Transfer mode for an argument or property.
Constructors
TransferNothing | |
TransferContainer | |
TransferEverything |
Constructors
DirectionIn | |
DirectionOut | |
DirectionInout |
Constructors
ScopeTypeInvalid | |
ScopeTypeCall | |
ScopeTypeAsync | |
ScopeTypeNotified |
deprecatedPragma :: Text -> Maybe DeprecationInfo -> Text Source
Encode the given DeprecationInfo
for the given symbol as a
deprecation pragma.
data PropertyFlag Source
Instances
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. |
Instances
Info about a constant.
Constructors
Constant | |
Fields
|
Constructors
Arg | |
Fields
|
Constructors
Callable | |
Fields
|
Constructors
Function | |
Constructors
Signal | |
Fields
|
Constructors
Property | |
Fields
|
Constructors
Field | |
Fields
|
Constructors
Struct | |
Fields
|
Constructors
Interface | |
Fields
|
Constructors
Method | |
Fields
|
Constructors
Object | |
Fields
|
data Enumeration Source
Constructors
Enumeration | |
Fields
|
Instances
Constructors
Union | |
Fields
|