Struct gdk::Atom

source · []
pub struct Atom(_);
Expand description

An opaque type representing a string as an index into a table of strings on the X server.

Implementations

Finds or creates an atom corresponding to a given string.

atom_name

a string.

only_if_exists

if true, GDK is allowed to not create a new atom, but just return GDK_NONE if the requested atom doesn’t already exists. Currently, the flag is ignored, since checking the existance of an atom is as expensive as creating it.

Returns

the atom corresponding to atom_name.

Determines the string corresponding to an atom.

Returns

a newly-allocated string containing the string corresponding to self. When you are done with the return value, you should free it using g_free().

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Converts to this type from the input type.

Safety Read more

Safety Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Transfer: none. Read more

Transfer: container. Read more

Transfer: full. Read more

Transfer: none. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.