gi-gdkx11-4.0.3: GdkX11 bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.GdkX11.Functions

Description

 
Synopsis

Methods

x11DeviceGetId

x11DeviceGetId Source #

Arguments

:: (HasCallStack, MonadIO m, IsX11DeviceXI2 a) 
=> a

device: a Device

-> m Int32

Returns: the XInput2 device ID.

Returns the device ID as seen by XInput2.

x11DeviceManagerLookup

x11DeviceManagerLookup Source #

Arguments

:: (HasCallStack, MonadIO m, IsX11DeviceManagerXI2 a) 
=> a

deviceManager: a GdkDeviceManager

-> Int32

deviceId: a device ID, as understood by the XInput2 protocol

-> m (Maybe X11DeviceXI2)

Returns: The Device wrapping the device ID, or Nothing if the given ID doesn’t currently represent a device.

Returns the Device that wraps the given device ID.

x11FreeCompoundText

x11FreeCompoundText Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Word8

ctext: The pointer stored in ctext from a call to x11DisplayStringToCompoundText.

-> m () 

Frees the data returned from x11DisplayStringToCompoundText.

x11FreeTextList

x11FreeTextList Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

list: the value stored in the list parameter by a call to x11DisplayTextPropertyToTextList.

-> m () 

Frees the array of strings created by x11DisplayTextPropertyToTextList.

x11GetServerTime

x11GetServerTime Source #

Arguments

:: (HasCallStack, MonadIO m, IsX11Surface a) 
=> a

surface: a Surface, used for communication with the server. The surface must have GDK_PROPERTY_CHANGE_MASK in its events mask or a hang will result.

-> m Word32

Returns: the time stamp.

Routine to get the current X server time stamp.

x11GetXatomByNameForDisplay

x11GetXatomByNameForDisplay Source #

Arguments

:: (HasCallStack, MonadIO m, IsX11Display a) 
=> a

display: a Display

-> Text

atomName: a string

-> m CULong

Returns: a X atom for a Display

Returns the X atom for a Display corresponding to atomName. This function caches the result, so if called repeatedly it is much faster than XInternAtom(), which is a round trip to the server each time.

x11GetXatomNameForDisplay

x11GetXatomNameForDisplay Source #

Arguments

:: (HasCallStack, MonadIO m, IsX11Display a) 
=> a

display: the Display where xatom is defined

-> CULong

xatom: an X atom

-> m Text

Returns: name of the X atom; this string is owned by GDK, so it shouldn’t be modified or freed.

Returns the name of an X atom for its display. This function is meant mainly for debugging, so for convenience, unlike XAtomName() and the result doesn’t need to be freed.

x11LookupXdisplay

x11LookupXdisplay Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Display

xdisplay: a pointer to an X Display

-> m X11Display

Returns: the Display, if found, otherwise Nothing.

Find the Display corresponding to xdisplay, if any exists.

x11SetSmClientId

x11SetSmClientId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Maybe Text

smClientId: the client id assigned by the session manager when the connection was opened, or Nothing to remove the property.

-> m () 

Sets the SM_CLIENT_ID property on the application’s leader window so that the window manager can save the application’s state using the X11R6 ICCCM session management protocol.

See the X Session Management Library documentation for more information on session management and the Inter-Client Communication Conventions Manual