LambdaHack-0.2.0: A roguelike game engine in early and very active development

Safe HaskellNone

Game.LambdaHack.Display.Gtk

Contents

Description

Text frontend based on Gtk.

Synopsis

Session data type for the frontend

data FrontendSession Source

Session data maintained by the frontend.

The output and input operations

displaySource

Arguments

:: Area

the size of the drawn area

-> FrontendSession

current session data

-> (PointXY -> (Attr, Char))

the content of the screen

-> String

an extra line to show at the top

-> String

an extra line to show at the bottom

-> IO () 

Output to the screen via the frontend.

nextEvent :: FrontendSession -> IO KeySource

Input key via the frontend.

Frontend administration tools

frontendName :: StringSource

The name of the frontend.

startup :: String -> (FrontendSession -> IO ()) -> IO ()Source

Starts the main program loop using the frontend input and output.

shutdown :: FrontendSession -> IO ()Source

Shuts down the frontend cleanly.