Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: GdkContentFormatsBuilder

[12:7] extends: object

Creates GdkContentFormats objects.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • GdkContentFormatsBuilder (Handle = null)

    Create a new GdkContentFormatsBuilder object. The resulting builder would create an empty GdkContentFormats. Use addition functions to add types to it.

    • @p Handle is an optional native handle or wrapper whose handle to adopt; when the native constructor is called.
  • toNativeHandle (Source)

    Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from fn.call(...), another generated wrapper exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • add_formats (object formats)

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

    • @p formats is the formats to add.
    • @r None.
  • add_gtype (int type)

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

    • @p type is a GType.
    • @r None.
  • add_mime_type (string mime_type)

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

    • @p mime_type is a mime type.
    • @r None.
  • free_to_formats ()

    Creates a new GdkContentFormats from the current state of the given

    • @builder, and frees the @builder instance.
    • @r the newly created GdkContentFormats with all the formats added to
    • @builder. ``
  • ref ()

    Acquires a reference on the given @builder. This function is intended primarily for bindings. GdkContentFormatsBuilder objects should not be kept around.

    • @r the given GdkContentFormatsBuilder with its reference count increased.
  • to_formats ()

    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 [method@Gdk.ContentFormatsBuilder.free_to_formats].

    • @r the newly created GdkContentFormats with all the formats added to
    • @builder. ``
  • unref ()

    Releases a reference on the given @builder.

    • @r None.