Gjsify LogoGjsify Logo

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

record

Hierarchy

  • Atom

Index

Constructors

Properties

name: string

Methods

  • name(): string
  • intern(atom_name: string, only_if_exists: boolean): Gdk.Atom
  • 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

  • intern_static_string(atom_name: string): 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 #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).

    Parameters

    • atom_name: string

      a static string

    Returns Gdk.Atom

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method