package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gdk/Ocgtk_gdk/Gdk/Wrappers/Content_formats_builder/index.html

Module Wrappers.Content_formats_builder

type t = [ `content_formats_builder ] Gobject.obj

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

val new_ : unit -> t

Create a new ContentFormatsBuilder

val to_formats : t -> [ `content_formats ] Gobject.obj

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.

val ref : t -> t

Acquires a reference on the given @builder.

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

val add_mime_type : t -> string -> unit

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

val add_gtype : t -> Gobject.Type.t -> unit

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

val add_formats : t -> [ `content_formats ] Gobject.obj -> unit

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

val get_type : unit -> Gobject.Type.t