package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
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.objA `GdkContentFormatsBuilder` is an auxiliary struct used to create new `GdkContentFormats`, and should not be kept around.
val new_ : unit -> tCreate a new ContentFormatsBuilder
val to_formats : t -> [ `content_formats ] Gobject.objCreates 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.
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 -> unitAppends @mime_type to @builder if it has not already been added.
val add_gtype : t -> Gobject.Type.t -> unitAppends @type to @builder if it has not already been added.
val add_formats : t -> [ `content_formats ] Gobject.obj -> unitAppends all formats from @formats to @builder, skipping those that already exist.
val get_type : unit -> Gobject.Type.t