GObjectSourceGenerator class

Writes GObject source (.cc) file to sink.

Inheritance

Constructors

GObjectSourceGenerator()
Constructor.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate(GObjectOptions generatorOptions, Root root, StringSink sink, {required String dartPackageName}) → void
Generates files for specified language with specified generatorOptions
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeApis(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes all apis to indent.
inherited
writeClassDecode(GObjectOptions generatorOptions, Root root, Indent indent, Class classDefinition, {required String dartPackageName}) → void
Writes a single class decode method to indent.
inherited
writeClassEncode(GObjectOptions generatorOptions, Root root, Indent indent, Class classDefinition, {required String dartPackageName}) → void
Writes a single class encode method to indent.
inherited
writeCloseNamespace(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes code to indent that closes file namespace if needed.
inherited
writeDataClass(GObjectOptions generatorOptions, Root root, Indent indent, Class classDefinition, {required String dartPackageName}) → void
Writes a single data class to indent.
override
writeDataClasses(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes all data classes to indent.
inherited
writeEnum(GObjectOptions generatorOptions, Root root, Indent indent, Enum anEnum, {required String dartPackageName}) → void
Writes a single Enum to indent. This is needed in most generators.
inherited
writeEnums(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes all enums to indent.
inherited
writeFileImports(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes specified imports to indent.
override
writeFilePrologue(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Adds specified headers to indent.
override
writeFlutterApi(GObjectOptions generatorOptions, Root root, Indent indent, Api api, {required String dartPackageName}) → void
Writes a single Flutter Api to indent.
override
writeGeneralCodec(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes the custom codec to indent.
override
writeGeneralUtilities(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes any necessary helper utilities to indent if needed.
inherited
writeHostApi(GObjectOptions generatorOptions, Root root, Indent indent, Api api, {required String dartPackageName}) → void
Writes a single Host Api to indent.
override
writeInstanceManager(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes the implementation of an InstanceManager to indent.
inherited
writeInstanceManagerApi(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes the implementation of the API for the InstanceManager to indent.
inherited
writeOpenNamespace(GObjectOptions generatorOptions, Root root, Indent indent, {required String dartPackageName}) → void
Writes code to indent that opens file namespace if needed.
inherited
writeProxyApi(GObjectOptions generatorOptions, Root root, Indent indent, AstProxyApi api, {required String dartPackageName}) → void
Writes a single Proxy Api to indent.
inherited
writeProxyApiBaseCodec(GObjectOptions generatorOptions, Root root, Indent indent) → void
Writes the base codec to be used by all ProxyApis.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited