X11-1.6.1.1: A binding to the X11 graphics library

Portabilityportable
Stabilityprovisional
Maintainerlibraries@haskell.org
Safe HaskellSafe-Inferred

Graphics.X11.Types

Contents

Description

A collection of type declarations for interfacing with X11.

Synopsis

Documentation

type XID = Word32

type Mask = Word32

type Atom = Word32

type VisualID = Word32

type Time = Word32

type Window = XID

type Drawable = XID

type Font = XID

type Pixmap = XID

type Cursor = XID

type Colormap = XID

type GContext = XID

type KeyCode = Word8

type SizeID = Word16

type SubpixelOrder = Word16

type Connection = Word16

type RROutput = Word32

type RRCrtc = Word32

type RRMode = Word32

type XRRModeFlags = Word32

Enumeration types

These types were introduced to make function types clearer. Note that the types are synonyms for Int, so no extra typesafety was obtained.

Key symbols

type KeySym = XID

Event masks

Event types

type EventType = Word32

Modifiers

type Modifier = CUInt

Key masks

Button masks

Buttons

type Button = Word32

Notify modes

type NotifyMode = CInt

Notify details

type NotifyDetail = CInt

Visibility

type Visibility = CInt

Place of window

type Place = CInt

Place of window relative to siblings (used in Circulation requests or events)

Protocols

type Protocol = CInt

Property notification

Colormap notification

Grab modes

type GrabMode = CInt

Grab status

type GrabStatus = CInt

Allow events

type AllowEvents = CInt

Focus modes

type FocusMode = CInt

Error codes

type ErrorCode = CInt

badGC :: ErrorCode

Xlib functions with return values of type Status return zero on failure and nonzero on success.

Return status

type Status = CInt

throwIfZero :: String -> IO Status -> IO ()

WindowClass

type WindowClass = CInt

Attribute masks

Close down modes

type CloseDownMode = CInt

QueryBestSize classes

type QueryBestSizeClass = CInt

Graphics functions

type GXFunction = CInt

Line styles

type LineStyle = CInt

Cap styles

type CapStyle = CInt

Join styles

type JoinStyle = CInt

Fill styles

type FillStyle = CInt

Fill rules

type FillRule = CInt

Subwindow modes

type SubWindowMode = CInt

Coordinate modes

type CoordinateMode = CInt

Polygon shapes

type PolygonShape = CInt

Arc modes

type ArcMode = CInt

GC masks

type GCMask = CInt

Circulation direction

Byte order

type ByteOrder = CInt

ColormapAlloc

type ColormapAlloc = CInt

Mapping requests

type MappingRequest = CInt

ChangeSaveSetMode

type ChangeSaveSetMode = CInt

Bit gravity

type BitGravity = CInt

Window gravity

type WindowGravity = CInt

Backing store

type BackingStore = CInt

doRed :: Word8

doGreen :: Word8

doBlue :: Word8

Font direction

type FontDirection = CInt

Image format

type ImageFormat = CInt

Reflection and Rotation

type Rotation = Word16

type Reflection = Word16