flaw-window-0.1.0.0

LicenseMIT
Safe HaskellSafe
LanguageHaskell2010

Flaw.Window

Description

 
Synopsis

Documentation

class Window w where Source #

Class of window.

Methods

setWindowTitle :: w -> Text -> IO () Source #

Set title of the window.

getWindowClientSize :: w -> IO (Int, Int) Source #

Get window client size.

chanWindowEvents :: w -> STM (TChan WindowEvent) Source #

Get chan of window messages.

getWindowClipboardText :: w -> IO Text Source #

Get clipboard contents as a text.

setWindowClipboardText :: w -> Text -> IO () Source #

Set text as a content of clipboard.

setWindowMouseCursor :: w -> MouseCursor -> IO () Source #

Set mouse cursor.

setWindowMouseLock :: w -> Bool -> IO () Source #

Set mouse lock mode.

data WindowEvent Source #

Constructors

CloseWindowEvent

User is trying to close window.

DestroyWindowEvent

Window is destroyed.

ResizeWindowEvent !Int !Int

Window is resized.

ActivateWindowEvent !Bool

Window is activated or deactivated.