Copyright | (c) 2007 Andrea Rossato 2010 Alejandro Serrano |
---|---|
License | BSD-style (see xmonad/LICENSE) |
Maintainer | andrea.rossato@unibz.it |
Stability | unstable |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
A module for painting on the screen
Synopsis
- averagePixels :: Pixel -> Pixel -> Double -> X Pixel
- createNewWindow :: Rectangle -> Maybe EventMask -> String -> Bool -> X Window
- showWindow :: Window -> X ()
- showWindows :: [Window] -> X ()
- hideWindow :: Window -> X ()
- hideWindows :: [Window] -> X ()
- deleteWindow :: Window -> X ()
- deleteWindows :: [Window] -> X ()
- paintWindow :: Window -> Dimension -> Dimension -> Dimension -> String -> String -> X ()
- paintAndWrite :: Window -> XMonadFont -> Dimension -> Dimension -> Dimension -> String -> String -> String -> String -> [Align] -> [String] -> X ()
- paintTextAndIcons :: Window -> XMonadFont -> Dimension -> Dimension -> Dimension -> String -> String -> String -> String -> [Align] -> [String] -> [Placement] -> [[[Bool]]] -> X ()
- stringToPixel :: (Functor m, MonadIO m) => Display -> String -> m Pixel
- pixelToString :: MonadIO m => Display -> Pixel -> m String
- fi :: (Integral a, Num b) => a -> b
Usage:
See XMonad.Layout.Tabbed or XMonad.Layout.DragPane or XMonad.Layout.Decoration for usage examples
averagePixels :: Pixel -> Pixel -> Double -> X Pixel Source #
Compute the weighted average the colors of two given Pixel values.
createNewWindow :: Rectangle -> Maybe EventMask -> String -> Bool -> X Window Source #
Create a simple window given a rectangle. If Nothing is given
only the exposureMask will be set, otherwise the Just value.
Use showWindow
to map and hideWindow to unmap.
showWindow :: Window -> X () Source #
Map a window
showWindows :: [Window] -> X () Source #
the list version
hideWindow :: Window -> X () Source #
unmap a window
hideWindows :: [Window] -> X () Source #
the list version
deleteWindow :: Window -> X () Source #
destroy a window
deleteWindows :: [Window] -> X () Source #
the list version
:: Window | The window where to draw |
-> Dimension | Window width |
-> Dimension | Window height |
-> Dimension | Border width |
-> String | Window background color |
-> String | Border color |
-> X () |
Fill a window with a rectangle and a border
:: Window | The window where to draw |
-> XMonadFont | XMonad Font for drawing |
-> Dimension | Window width |
-> Dimension | Window height |
-> Dimension | Border width |
-> String | Window background color |
-> String | Border color |
-> String | String color |
-> String | String background color |
-> [Align] | String |
-> [String] | Strings to be printed |
-> X () |
Fill a window with a rectangle and a border, and write | a number of strings to given positions
:: Window | The window where to draw |
-> XMonadFont | XMonad Font for drawing |
-> Dimension | Window width |
-> Dimension | Window height |
-> Dimension | Border width |
-> String | Window background color |
-> String | Border color |
-> String | String color |
-> String | String background color |
-> [Align] | String |
-> [String] | Strings to be printed |
-> [Placement] | Icon |
-> [[[Bool]]] | Icons to be printed |
-> X () |
Fill a window with a rectangle and a border, and write | a number of strings and a number of icons to given positions