X11-1.9.1: A binding to the X11 graphics library
Copyright(c) Alastair Reid 1999-2003
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainerlibraries@haskell.org
Stabilityprovisional
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

Graphics.X11.Types

Description

A collection of type declarations for interfacing with X11.

Synopsis

Documentation

type XID = Word64 #

type Mask = Word64 #

type Atom = Word64 #

type VisualID = Word64 #

type Time = Word64 #

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 = Word64 #

type RRCrtc = Word64 #

type RRMode = Word64 #

type XRRModeFlags = Word64 #

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 #