X11-1.4.6.1: A binding to the X11 graphics librarySource codeContentsIndex
Graphics.X11.Xlib.Types
Portabilityportable
Stabilityprovisional
Maintainerlibraries@haskell.org
Description
A collection of type declarations for interfacing with Xlib.
Synopsis
newtype Display = Display (Ptr Display)
data Screen
data Visual
data GC
data GCValues
data SetWindowAttributes
newtype Image = Image (Ptr Image)
data Point = Point {
pt_x :: !Position
pt_y :: !Position
}
data Rectangle = Rectangle {
rect_x :: !Position
rect_y :: !Position
rect_width :: !Dimension
rect_height :: !Dimension
}
data Arc = Arc {
arc_x :: Position
arc_y :: Position
arc_width :: Dimension
arc_height :: Dimension
arc_angle1 :: Angle
arc_angle2 :: Angle
}
data Segment = Segment {
seg_x1 :: Position
seg_y1 :: Position
seg_x2 :: Position
seg_y2 :: Position
}
data Color = Color {
color_pixel :: Pixel
color_red :: Word16
color_green :: Word16
color_blue :: Word16
color_flags :: Word8
}
type Pixel = Word32
type Position = Int32
type Dimension = Word32
type Angle = CInt
type ScreenNumber = Word32
type Buffer = CInt
Documentation
newtype Display Source
pointer to an X11 Display structure
Constructors
Display (Ptr Display)
show/hide Instances
data Screen Source
pointer to an X11 Screen structure
show/hide Instances
data Visual Source
pointer to an X11 Visual structure
show/hide Instances
data GC Source
pointer to an X11 GC structure
show/hide Instances
data GCValues Source
pointer to an X11 XGCValues structure
show/hide Instances
data SetWindowAttributes Source
pointer to an X11 XSetWindowAttributes structure
show/hide Instances
newtype Image Source
pointer to an X11 XImage structure
Constructors
Image (Ptr Image)
show/hide Instances
data Point Source
counterpart of an X11 XPoint structure
Constructors
Point
pt_x :: !Position
pt_y :: !Position
show/hide Instances
data Rectangle Source
counterpart of an X11 XRectangle structure
Constructors
Rectangle
rect_x :: !Position
rect_y :: !Position
rect_width :: !Dimension
rect_height :: !Dimension
show/hide Instances
data Arc Source
counterpart of an X11 XArc structure
Constructors
Arc
arc_x :: Position
arc_y :: Position
arc_width :: Dimension
arc_height :: Dimension
arc_angle1 :: Angle
arc_angle2 :: Angle
show/hide Instances
data Segment Source
counterpart of an X11 XSegment structure
Constructors
Segment
seg_x1 :: Position
seg_y1 :: Position
seg_x2 :: Position
seg_y2 :: Position
show/hide Instances
data Color Source
counterpart of an X11 XColor structure
Constructors
Color
color_pixel :: Pixel
color_red :: Word16
color_green :: Word16
color_blue :: Word16
color_flags :: Word8
show/hide Instances
type Pixel = Word32Source
type Position = Int32Source
type Dimension = Word32Source
type Angle = CIntSource
type ScreenNumber = Word32Source
type Buffer = CIntSource
Produced by Haddock version 2.4.2