gdk.Atoms

Undocumented in source.

Public Imports

gtkc.gdktypes
public import gtkc.gdktypes;
Undocumented in source.

Members

Static functions

atomIntern
GdkAtom atomIntern(string atomName, int onlyIfExists)

Finds or creates an atom corresponding to a given string.

atomInternStaticString
GdkAtom atomInternStaticString(string atomName)

Finds or creates an atom corresponding to a given string. Note that this function is identical to gdk_atom_intern() except that if a new GdkAtom is created the string itself is used rather than a copy. This saves memory, but can only be used if the string will always exist. It can be used with statically allocated strings in the main program, but not with statically allocated memory in dynamically loaded modules, if you expect to ever unload the module again (e.g. do not use this function in GTK+ theme engines). Since 2.10

atomName
string atomName(GdkAtom atom)

Determines the string corresponding to an atom.

propertyChange
void propertyChange(Window window, GdkAtom property, GdkAtom type, int format, GdkPropMode mode, char[] data)

Changes the contents of a property on a window.

propertyDelete
void propertyDelete(Window window, GdkAtom property)

Deletes a property from a window.

propertyGet
int propertyGet(Window window, GdkAtom property, GdkAtom type, gulong offset, gulong length, int pdelete, GdkAtom actualPropertyType, int actualFormat, char[] data)

Retrieves a portion of the contents of a property. If the property does not exist, then the function returns FALSE, and GDK_NONE will be stored in actual_property_type. Note The XGetWindowProperty() function that gdk_property_get() uses has a very confusing and complicated set of semantics. Unfortunately, gdk_property_get() makes the situation worse instead of better (the semantics should be considered undefined), and also prints warnings to stderr in cases where it should return a useful error to the program. You are advised to use XGetWindowProperty() directly until a replacement function for gdk_property_get() is provided.

textPropertyToUtf8_ListForDisplay
int textPropertyToUtf8_ListForDisplay(Display display, GdkAtom encoding, int format, char* text, int length, char** list)

Converts a text property in the given encoding to a list of UTF-8 strings. Since 2.2

utf8_ToStringTarget
string utf8_ToStringTarget(string str)

Converts an UTF-8 string into the best possible representation as a STRING. The representation of characters not in STRING is not specified; it may be as pseudo-escape sequences \x{ABCD}, or it may be in some other form of approximation.

Meta