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.

freeCompoundText
void freeCompoundText(char* ctext)

Warning gdk_free_compound_text is deprecated and should not be used in newly-written code. Frees the data returned from gdk_string_to_compound_text().

freeTextList
void freeTextList(string[] list)

Warning gdk_free_text_list is deprecated and should not be used in newly-written code. Frees the array of strings created by gdk_text_property_to_text_list().

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

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, int* actualLength, 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.

stringToCompoundText
int stringToCompoundText(string str, GdkAtom encoding, int format, char[] ctext)

Warning gdk_string_to_compound_text is deprecated and should not be used in newly-written code. Converts a string from the encoding of the current locale into a form suitable for storing in a window property.

stringToCompoundTextForDisplay
int stringToCompoundTextForDisplay(Display display, string str, GdkAtom encoding, int format, char[] ctext)

Warning gdk_string_to_compound_text_for_display has been deprecated since version 2.24 and should not be used in newly-written code. Use gdk_x11_display_string_to_compound_text() Convert a string from the encoding of the current locale into a form suitable for storing in a window property. Since 2.2

textPropertyToTextList
int textPropertyToTextList(GdkAtom encoding, int format, char[] text, string[] list)

Warning gdk_text_property_to_text_list is deprecated and should not be used in newly-written code. Converts a text string from the encoding as it is stored in a property into an array of strings in the encoding of the current local. (The elements of the array represent the nul-separated elements of the original text string.)

textPropertyToTextListForDisplay
int textPropertyToTextListForDisplay(Display display, GdkAtom encoding, int format, char[] text, string[] list)

Warning gdk_text_property_to_text_list_for_display has been deprecated since version 2.24 and should not be used in newly-written code. Use gdk_x11_display_text_property_to_text_list() Convert a text string from the encoding as it is stored in a property into an array of strings in the encoding of the current locale. (The elements of the array represent the nul-separated elements of the original text string.) Since 2.2

textPropertyToUtf8_List
int textPropertyToUtf8_List(GdkAtom encoding, int format, char[] text, string[] list)

Warning gdk_text_property_to_utf8_list is deprecated and should not be used in newly-written code. Convert a text property in the giving encoding to a list of UTF-8 strings.

textPropertyToUtf8_ListForDisplay
int textPropertyToUtf8_ListForDisplay(Display display, GdkAtom encoding, int format, char[] text, string[] list)

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

utf8_ToCompoundText
int utf8_ToCompoundText(string str, GdkAtom encoding, int format, char[] ctext)

Warning gdk_utf8_to_compound_text is deprecated and should not be used in newly-written code. Convert from UTF-8 to compound text.

utf8_ToCompoundTextForDisplay
int utf8_ToCompoundTextForDisplay(Display display, string str, GdkAtom encoding, int format, char[] ctext)

Warning gdk_utf8_to_compound_text_for_display has been deprecated since version 2.24 and should not be used in newly-written code. Use gdk_x11_display_utf8_to_compound_text() Converts from UTF-8 to compound text. Since 2.2

utf8_ToStringTarget
string utf8_ToStringTarget(string str)

Convert 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