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
GdkContentFormatsBuilder
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
content_formats_builder_ptr
Default implementationTyped pointer to the underlying
GdkContentFormatsBuilder
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkContentFormatsBuilder
instance.Declaration
Swift
var content_formats_builder_ptr: UnsafeMutablePointer<GdkContentFormatsBuilder>! { get }
-
Required Initialiser for types conforming to
ContentFormatsBuilderProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
add(formats:
Extension method) Appends all formats from
formats
tobuilder
, skipping those that already exist.Declaration
Swift
@inlinable func add<ContentFormatsT>(formats: ContentFormatsT) where ContentFormatsT : ContentFormatsProtocol
-
addGtype(type:
Extension method) Appends
type
tobuilder
if it has not already been added.Declaration
Swift
@inlinable func addGtype(type: GType)
-
add(mimeType:
Extension method) Appends
mime_type
tobuilder
if it has not already been added.Declaration
Swift
@inlinable func add(mimeType: UnsafePointer<CChar>!)
-
freeToFormats()
Extension methodCreates a new
GdkContentFormats
from the current state of the givenbuilder
, and frees thebuilder
instance.Declaration
Swift
@inlinable func freeToFormats() -> ContentFormatsRef!
-
ref()
Extension methodAcquires a reference on the given
builder
.This function is intended primarily for bindings.
GdkContentFormatsBuilder
objects should not be kept around.Declaration
Swift
@discardableResult @inlinable func ref() -> ContentFormatsBuilderRef!
-
toFormats()
Extension methodCreates a new
GdkContentFormats
from the givenbuilder
.The given
GdkContentFormatsBuilder
is reset once this function returns; you cannot call this function multiple times on the samebuilder
instance.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()