ยค changeBackPixmap, greyBgK, et al

Types

changeBackPixmap :: (ColorGen a1, ColorGen a2, Show a1, Show a2) =>
                    a1 -> a2 -> Point -> [DrawCommand] -> K i o -> K i o
greyBgK :: K b ho -> K b ho
lightGreyBgK :: K b ho -> K b ho
darkGreyBgK :: K b ho -> K b ho

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 :: a1
Foreground color.
bgcolor :: a2
Background color.
size :: Point
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