Class (GI Struct)

Gdk-3.0GdkAtomAbstract

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

Index

Constructors

Properties

Methods

Constructors

Properties

$gtype: GType<Gdk.Atom>

Methods

  • Determines the string corresponding to an atom.

    Returns string

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

  • Finds or creates an atom corresponding to a given string.

    Parameters

    • atom_name: string

      a string.

    • only_if_exists: boolean

      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 Gdk.Atom

  • 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 Gdk.Atom 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).

    Parameters

    • atom_name: string

      a static string

    Returns Gdk.Atom