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.

  • ptr

    Untyped pointer to the underlying GdkContentFormatsBuilder instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • content_formats_builder_ptr Default implementation

    Typed 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)

ContentFormatsBuilder Record: ContentFormatsBuilderProtocol extension (methods and fields)

  • add(formats:) Extension method

    Appends all formats from formats to builder, skipping those that already exist.

    Declaration

    Swift

    @inlinable
    func add<ContentFormatsT>(formats: ContentFormatsT) where ContentFormatsT : ContentFormatsProtocol
  • addGtype(type:) Extension method

    Appends type to builder if it has not already been added.

    Declaration

    Swift

    @inlinable
    func addGtype(type: GType)
  • add(mimeType:) Extension method

    Appends mime_type to builder if it has not already been added.

    Declaration

    Swift

    @inlinable
    func add(mimeType: UnsafePointer<CChar>!)
  • freeToFormats() Extension method

    Creates a new GdkContentFormats from the current state of the given builder, and frees the builder instance.

    Declaration

    Swift

    @inlinable
    func freeToFormats() -> ContentFormatsRef!
  • ref() Extension method

    Acquires 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 method

    Creates a new GdkContentFormats from the given builder.

    The given GdkContentFormatsBuilder is reset once this function returns; you cannot call this function multiple times on the same builder instance.

    This function is intended primarily for bindings. C code should use [methodGdk.ContentFormatsBuilder.free_to_formats].

    Declaration

    Swift

    @inlinable
    func toFormats() -> ContentFormatsRef!
  • unref() Extension method

    Releases a reference on the given builder.

    Declaration

    Swift

    @inlinable
    func unref()