xosd-0.2: A binding to the X on-screen display

Graphics.XOSD

Contents

Synopsis

The abstract XOSD type

type XOSD = Ptr XOSD_Source

An abstract X on-screen display object

An xosd window can be used to display textual or numerical data on a X11 display in a unmanaged, shaped window that appears to be transparent. It provides a similar effect to the on-screen display of many televisions and video recorders

data Format Source

The type of possible display formats

Constructors

Percent !Int 
Slider !Int 
String String 

data VAlign Source

Valid screen positions (vertical alignment)

data HAlign Source

Valid screen positions (vertical alignment)

Interface to the interpreter

runXOSD :: [Attribute] -> (XOSD -> IO ()) -> IO ()Source

Run some code with an X on-screen display attached.

Introduction and elimination

initialize :: [Attribute] -> IO XOSDSource

Create a new XOSD object with given attributes.

destroy :: XOSD -> IO ()Source

xosd_uninit destroys an existing xosd window, freeing the memory. This is an unsafe function: as destroying an xosd object twice will likely cause bad things to happen, so don't do that.

Operations on a running XOSD

set :: XOSD -> [Attribute] -> IO ()Source

Set a list of attributes

display :: XOSD -> Int -> Format -> IO ()Source

Display some content.

wait :: XOSD -> IO ()Source

Wait until nothing is displayed. Blocks the process until no longer visible.

scroll :: XOSD -> Int -> IO ()Source

Scroll the display