flaw-ui-0.1.0.0

Safe HaskellNone
LanguageHaskell2010

Flaw.UI.Window

Description

It's not an element. License: MIT

Synopsis

Documentation

queueWindowAction :: Window -> IO () -> STM () Source #

Enqueue an IO action, which will be run in a window loop.

setWindowCloseHandler :: Window -> STM () -> STM () Source #

Set window close handler.

processWindow :: Window -> IO () Source #

Run normal window processing. It's necessary to run this method regularly (usually in a frame update function). Also it's critical to run it before renderWindow.

renderWindow :: Context c d => Window -> Drawer d -> STM (Render c ()) Source #

Render window.

getWindowSize :: Window -> STM Size Source #

Get window size.