haskus-system-0.7.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.System.Linux.Graphics.FrameBuffer

Description

Frame buffer management

Synopsis

Documentation

data Surface Source #

Surface

Constructors

Surface 

Fields

Instances

data FrameBuffer Source #

Frame buffer

Constructors

FrameBuffer 

Fields

removeFrameBuffer :: MonadIO m => Handle -> FrameBuffer -> Flow m '[(), ErrorCode] Source #

Release a frame buffer

dirtyFrameBuffer :: MonadInIO m => Handle -> FrameBuffer -> DirtyAnnotation -> Flow m '[(), ErrorCode] Source #

Indicate dirty parts of a framebuffer

data DirtyAnnotation Source #

Mark a region of a framebuffer as dirty.

Some hardware does not automatically update display contents as a hardware or software draw to a framebuffer. This ioctl allows userspace to tell the kernel and the hardware what regions of the framebuffer have changed.

The kernel or hardware is free to update more then just the region specified by the clip rects. The kernel or hardware may also delay and/or coalesce several calls to dirty into a single update.

Userspace may annotate the updates, the annotates are a promise made by the caller that the change is either a copy of pixels or a fill of a single color in the region specified.

If the DirtyCopy mode is used then the clip rects are paired as (src,dst). The width and height of each one of the pairs must match.

If the DirtyFill mode is used the caller promises that the region specified of the clip rects is filled completely with a single color as given in the color argument.

Constructors

Dirty [Clip] 
DirtyCopy [(Clip, Clip)] 
DirtyFill Word32 [Clip] 

data Clip Source #

Constructors

Clip 

Fields

Instances

Eq Clip Source # 

Methods

(==) :: Clip -> Clip -> Bool #

(/=) :: Clip -> Clip -> Bool #

Show Clip Source # 

Methods

showsPrec :: Int -> Clip -> ShowS #

show :: Clip -> String #

showList :: [Clip] -> ShowS #

Generic Clip Source # 

Associated Types

type Rep Clip :: * -> * #

Methods

from :: Clip -> Rep Clip x #

to :: Rep Clip x -> Clip #

Storable Clip Source # 

Methods

peekIO :: Ptr Clip -> IO Clip #

pokeIO :: Ptr Clip -> Clip -> IO () #

alignment :: Clip -> Word #

sizeOf :: Clip -> Word #

type Rep Clip Source #