¤ changeBackPixmap, greyBgK, et al

Types

changeBackPixmap :: (Show a, ColorGen a, Show b, ColorGen b) => a -> b -> Size -> [DrawCommand] -> K c d -> K c d
greyBgK :: K a b -> K a b
lightGreyBgK :: K a b -> K a b
darkGreyBgK :: K a b -> K a b

Synopsis

changeBackPixmap fgcolor bgcolor size drawcmds

Description

changeBackPixmap creates a fudget kernel that changes the background pixmap of the controlled window and then behaves like the argument fudget kernel.

greyBgK, lightGreyBgK and darkGreyBgK are shorthands for some grey backgrounds. Solid grey colors are used if possible. Otherwise a dithered black and white pattern is used.

Arguments

fgcolor :: a
Foreground color.
bgcolor :: b
Background color.
size :: Size
Pixmap size.
drawcmds :: [DrawCommand]
drawing commands.

changeBackPixmap first creates a pixmap of the given size. The pixmap is filled with the given background color. Then the drawing commands are executed in the pixmap, using a GC with backround and foreground colors set appropriately and with default values for all other attributes.

See Also

changeBackPixel ChangeWindowAttributes createPixmap