ContentFormatsBuilderProtocol
public protocol ContentFormatsBuilderProtocol
The ContentFormatsBuilderProtocol protocol exposes the methods and properties of an underlying GdkContentFormatsBuilder instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see ContentFormatsBuilder.
Alternatively, use ContentFormatsBuilderRef as a lighweight, unowned reference if you already have an instance you just want to use.
A GdkContentFormatsBuilder is an auxiliary struct used to create
new GdkContentFormats, and should not be kept around.
-
Untyped pointer to the underlying
GdkContentFormatsBuilderinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
content_formats_builder_ptrDefault implementationTyped pointer to the underlying
GdkContentFormatsBuilderinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkContentFormatsBuilderinstance.Declaration
Swift
var content_formats_builder_ptr: UnsafeMutablePointer<GdkContentFormatsBuilder>! { get } -
Required Initialiser for types conforming to
ContentFormatsBuilderProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
add(formats:Extension method) Appends all formats from
formatstobuilder, skipping those that already exist.Declaration
Swift
@inlinable func add<ContentFormatsT>(formats: ContentFormatsT) where ContentFormatsT : ContentFormatsProtocol -
addGtype(type:Extension method) Appends
typetobuilderif it has not already been added.Declaration
Swift
@inlinable func addGtype(type: GType) -
add(mimeType:Extension method) Appends
mime_typetobuilderif it has not already been added.Declaration
Swift
@inlinable func add(mimeType: UnsafePointer<CChar>!) -
freeToFormats()Extension methodCreates a new
GdkContentFormatsfrom the current state of the givenbuilder, and frees thebuilderinstance.Declaration
Swift
@inlinable func freeToFormats() -> ContentFormatsRef! -
ref()Extension methodAcquires a reference on the given
builder.This function is intended primarily for bindings.
GdkContentFormatsBuilderobjects should not be kept around.Declaration
Swift
@discardableResult @inlinable func ref() -> ContentFormatsBuilderRef! -
toFormats()Extension methodCreates a new
GdkContentFormatsfrom the givenbuilder.The given
GdkContentFormatsBuilderis reset once this function returns; you cannot call this function multiple times on the samebuilderinstance.This function is intended primarily for bindings. C code should use [method
Gdk.ContentFormatsBuilder.free_to_formats].Declaration
Swift
@inlinable func toFormats() -> ContentFormatsRef! -
unref()Extension methodReleases a reference on the given
builder.Declaration
Swift
@inlinable func unref()
View on GitHub
Install in Dash
ContentFormatsBuilderProtocol Protocol Reference