GC —
Graphics contexts.
data
GCValues |
gcNew:: DrawableClass d => d -> IO GC |
gcNewWithValues:: DrawableClass d => d -> GCValues -> IO GC |
newGCValues:: GCValues |
gcGetValues:: GC -> IO GCValues |
gcSetClipRectangle:: GC -> Rectangle -> IO () |
gcSetClipRegion:: GC -> Region -> IO () |
gcSetDashes:: GC -> Int -> [(Int,Int)] -> IO () |
gcSetValues:: GC -> GCValues -> IO () |
This module supplies graphics contexts (GCs) which are a convenient way to pass attributes to drawing functions.
Intermediate data structure for GCs.
| data GCValues = | GCValues ColorColorFunctionFillMaybe PixmapMaybe PixmapMaybe PixmapSubwindowModeIntIntIntIntBoolIntLineStyleCapStyleJoinStyle |
If graphicsExposure is set then copying portions into a drawable will generate an exposure event, even if the destination area is not currently visible. Intermediate data structure for GCs.
If graphicsExposure is set then copying portions into a drawable will generate an exposure event, even if the destination area is not currently visible.
Set a clipping rectangle.
| gcSetClipRectangle | :: GC | :: Rectangle | :: IO () |
| gc | r |
All drawing operations are restricted to this rectangle. This rectangle is interpreted relative to the clip origin.
Set a clipping region.
| gcSetClipRegion | :: GC | :: Region | :: IO () |
All drawing operations are restricted to this region. This region is interpreted relative to the clip origin.
Specify the pattern with which lines are drawn.
| gcSetDashes | :: GC | :: Int | :: [(Int,Int)] | :: IO () |
| gc | phase | onOffList |
Every tuple in the list contains an even and an odd segment. Even segments are drawn normally, whereby the lineStyle member of the graphics context defines if odd segements are drawn or not. A phase argument greater than 0 will drop phase pixels before starting to draw.
An empty record of GCValues.
| newGCValues |
Use this value instead of the constructor to avoid compiler wanings about uninitialized fields.