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 (AosdPtr -> C'AosdMouseEvent -> IO ())
- data Transparency
- data Position
- data XClassHint = XClassHint {}
- defaultOpts :: AosdOptions
- data AosdPtr
- aosdNew :: AosdRenderer renderer => AosdOptions -> renderer -> IO AosdPtr
- aosdDestroy :: AosdPtr -> IO ()
- withAosd :: AosdRenderer renderer => AosdOptions -> renderer -> (AosdPtr -> IO c) -> IO c
- aosdFlash :: AosdPtr -> FlashDurations -> IO ()
- data FlashDurations = FlashDurations {}
- symDurations :: CUInt -> CUInt -> FlashDurations
- reconfigure :: AosdRenderer renderer => AosdOptions -> renderer -> AosdPtr -> IO ()
- aosdRender :: AosdPtr -> IO ()
- aosdShow :: AosdPtr -> IO ()
- aosdHide :: AosdPtr -> IO ()
- aosdLoopOnce :: AosdPtr -> IO ()
- aosdLoopFor :: AosdPtr -> CUInt -> IO ()
- debugRenderer :: GeneralRenderer
- module Graphics.Rendering.Cairo
- data Rectangle = Rectangle Int Int Int Int
- data CInt
- data CUInt
Renderers
class AosdRenderer a whereSource
toGeneralRenderer :: a -> IO GeneralRendererSource
data GeneralRenderer Source
GeneralRenderer | |
|
Options
data AosdOptions Source
AosdOptions | |
|
defaultOpts :: AosdOptionsSource
Non-Nothing
defaults:
- transparency = Just Composite,
- xPos = Center,
- yPos = Center,
- offset = (0,0),
- hideUponMouseEvent = Just True
Construction/destruction
aosdNew :: AosdRenderer renderer => AosdOptions -> renderer -> IO AosdPtrSource
aosdDestroy :: AosdPtr -> IO ()Source
withAosd :: AosdRenderer renderer => AosdOptions -> renderer -> (AosdPtr -> IO c) -> IO cSource
'aosdNew'/'aosdDestroy' bracket. Leaking the AosdPtr
out of the third argument leads to undefined behaviour.
Displaying
:: CUInt | |
-> CUInt | |
-> FlashDurations |
Construct a FlashDurations
with equal inMillis
and outMillis
.
Low-level operations
reconfigure :: AosdRenderer renderer => AosdOptions -> renderer -> AosdPtr -> IO ()Source
aosdRender :: AosdPtr -> IO ()Source
aosdLoopOnce :: AosdPtr -> IO ()Source
Diagnostics
Reexports
module Graphics.Rendering.Cairo
data Rectangle
Rectangle
- Specifies x, y, width and height
data CInt
Haskell type representing the C int
type.