Gjsify LogoGjsify Logo

A GdkContentFormatsBuilder is an auxiliary struct used to create new GdkContentFormats, and should not be kept around.

record

Hierarchy

  • ContentFormatsBuilder

Index

Constructors

  • Create a new GdkContentFormatsBuilder object.

    The resulting builder would create an empty GdkContentFormats. Use addition functions to add types to it.

    Returns ContentFormatsBuilder

Properties

name: string

Methods

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

    Parameters

    Returns void

  • addGtype(type: GType<unknown>): void
  • Appends type to builder if it has not already been added.

    Parameters

    • type: GType<unknown>

      a GType

    Returns void

  • addMimeType(mimeType: string): void
  • Appends mime_type to builder if it has not already been added.

    Parameters

    • mimeType: string

      a mime type

    Returns void

  • Acquires a reference on the given builder.

    This function is intended primarily for bindings. GdkContentFormatsBuilder objects should not be kept around.

    Returns ContentFormatsBuilder

  • 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].

    Returns ContentFormats

  • unref(): void
  • Create a new GdkContentFormatsBuilder object.

    The resulting builder would create an empty GdkContentFormats. Use addition functions to add types to it.

    Returns ContentFormatsBuilder

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method