Graphics.Aosd
Description
For a higher-level API for textual OSDs using Pango, use Graphics.Aosd.Pango.
- class AosdRenderer a where
- toGeneralRenderer :: a -> IO GeneralRenderer
- data GeneralRenderer = GeneralRenderer {}
- data AosdOptions = AosdOptions {
- classHint :: Maybe XClassHint
- transparency :: Maybe Transparency
- xPos :: Position
- yPos :: Position
- offset :: (CInt, CInt)
- hideUponMouseEvent :: Maybe Bool
- mouseEventCB :: Maybe (C'AosdMouseEvent -> IO ())
- data Transparency
- data Position
- data XClassHint = XClassHint {}
- defaultOpts :: AosdOptions
- aosdFlash :: AosdRenderer a => AosdOptions -> a -> FlashDurations -> IO ()
- data FlashDurations = FlashDurations {}
- symDurations :: CUInt -> CUInt -> FlashDurations
- newtype AosdPtr = AosdPtr {}
- aosdNew :: AosdRenderer a => AosdOptions -> a -> IO AosdPtr
- reconfigure :: AosdRenderer a => AosdOptions -> a -> AosdPtr -> IO ()
- aosdRender :: AosdPtr -> IO ()
- aosdShow :: AosdPtr -> IO ()
- aosdHide :: AosdPtr -> IO ()
- aosdLoopOnce :: AosdPtr -> IO ()
- aosdLoopFor :: AosdPtr -> CUInt -> IO ()
- module Graphics.Rendering.Cairo
- data Rectangle = Rectangle Int Int Int Int
- data CInt
- data CUInt
Renderers
class AosdRenderer a whereSource
Methods
toGeneralRenderer :: a -> IO GeneralRendererSource
data GeneralRenderer Source
Constructors
| GeneralRenderer | |
Fields
| |
Instances
Options
data AosdOptions Source
Constructors
| AosdOptions | |
Fields
| |
defaultOpts :: AosdOptionsSource
Non-Nothing defaults:
- transparency = Just Composite,
- xPos = Center,
- yPos = Center,
- offset = (0,0),
- hideUponMouseEvent = Just True
Displaying
aosdFlash :: AosdRenderer a => AosdOptions -> a -> FlashDurations -> IO ()Source
Main high-level displayer. Blocks.
Arguments
| :: CUInt | |
| -> CUInt | |
| -> FlashDurations |
Construct a FlashDurations with equal inMillis and outMillis.
Low-level operations
aosdNew :: AosdRenderer a => AosdOptions -> a -> IO AosdPtrSource
Create an Aosd object managed by the garbage collector.
reconfigure :: AosdRenderer a => AosdOptions -> a -> AosdPtr -> IO ()Source
aosdRender :: AosdPtr -> IO ()Source
aosdLoopOnce :: AosdPtr -> IO ()Source
Reexports
module Graphics.Rendering.Cairo
data Rectangle
Rectangle
- Specifies x, y, width and height
data CInt
Haskell type representing the C int type.