gi-gdk-3.0.23: Gdk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gdk.Structs.Atom

Description

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

Synopsis

Exported types

newtype Atom Source #

Memory-managed wrapper type.

Constructors

Atom (ManagedPtr Atom) 

Instances

Instances details
Eq Atom Source # 
Instance details

Defined in GI.Gdk.Structs.Atom

Methods

(==) :: Atom -> Atom -> Bool #

(/=) :: Atom -> Atom -> Bool #

BoxedPtr Atom Source # 
Instance details

Defined in GI.Gdk.Structs.Atom

ManagedPtrNewtype Atom Source # 
Instance details

Defined in GI.Gdk.Structs.Atom

Methods

Overloaded methods

intern

atomIntern Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

atomName: a string.

-> Bool

onlyIfExists: 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.

-> m Atom

Returns: the atom corresponding to atomName.

Finds or creates an atom corresponding to a given string.