ContentFormatsBuilder

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

Constructors

this
this(GdkContentFormatsBuilder* gdkContentFormatsBuilder, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Create a new GdkContentFormatsBuilder object.

Destructor

~this
~this()
Undocumented in source.

Members

Aliases

doref
alias doref = ref_
Undocumented in source.

Functions

addFormats
void addFormats(ContentFormats formats)

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

addGtype
void addGtype(GType type)

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

addMimeType
void addMimeType(string mimeType)

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

freeToFormats
ContentFormats freeToFormats()

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

getContentFormatsBuilderStruct
GdkContentFormatsBuilder* getContentFormatsBuilderStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

ref_
ContentFormatsBuilder ref_()

Acquires a reference on the given @builder.

toFormats
ContentFormats toFormats()

Creates a new GdkContentFormats from the given @builder.

unref
void unref()

Releases a reference on the given @builder.

Static functions

getType
GType getType()

Variables

gdkContentFormatsBuilder
GdkContentFormatsBuilder* gdkContentFormatsBuilder;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta