X11-1.10.2.9: 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 Source #

type Mask = Word64 Source #

type Atom = Word64 Source #

type VisualID = Word64 Source #

type Time = Word64 Source #

type Font = XID Source #

type KeyCode = Word8 Source #

type SizeID = Word16 Source #

type SubpixelOrder = Word16 Source #

type Connection = Word16 Source #

type RROutput = Word64 Source #

type RRCrtc = Word64 Source #

type RRMode = Word64 Source #

type XRRModeFlags = Word64 Source #

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

Event masks

Event types

type EventType = Word32 Source #

Modifiers

type Modifier = CUInt Source #

Key masks

Button masks

Buttons

type Button = Word32 Source #

Notify modes

type NotifyMode = CInt Source #

Notify details

type NotifyDetail = CInt Source #

Visibility

type Visibility = CInt Source #

Place of window

type Place = CInt Source #

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

Protocols

type Protocol = CInt Source #

Property notification

Colormap notification

Grab modes

type GrabMode = CInt Source #

Grab status

type GrabStatus = CInt Source #

Allow events

type AllowEvents = CInt Source #

Focus modes

type FocusMode = CInt Source #

Error codes

type ErrorCode = CInt Source #

badGC :: ErrorCode Source #

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

Return status

type Status = CInt Source #

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

WindowClass

type WindowClass = CInt Source #

Attribute masks

Close down modes

type CloseDownMode = CInt Source #

QueryBestSize classes

Graphics functions

type GXFunction = CInt Source #

Line styles

type LineStyle = CInt Source #

Cap styles

type CapStyle = CInt Source #

Join styles

type JoinStyle = CInt Source #

Fill styles

type FillStyle = CInt Source #

Fill rules

type FillRule = CInt Source #

Subwindow modes

type SubWindowMode = CInt Source #

Coordinate modes

type CoordinateMode = CInt Source #

Polygon shapes

type PolygonShape = CInt Source #

Arc modes

type ArcMode = CInt Source #

GC masks

type GCMask = CInt Source #

Circulation direction

Byte order

type ByteOrder = CInt Source #

ColormapAlloc

type ColormapAlloc = CInt Source #

Mapping requests

type MappingRequest = CInt Source #

ChangeSaveSetMode

Bit gravity

type BitGravity = CInt Source #

Window gravity

type WindowGravity = CInt Source #

Backing store

type BackingStore = CInt Source #

doRed :: Word8 Source #

doGreen :: Word8 Source #

doBlue :: Word8 Source #

Font direction

type FontDirection = CInt Source #

Image format

type ImageFormat = CInt Source #

Reflection and Rotation

type Rotation = Word16 Source #

type Reflection = Word16 Source #