gloss-1.13.0.1: Painless 2D vector graphics, animations and simulations.

Safe HaskellNone
LanguageHaskell98

Graphics.Gloss.Data.ViewState

Synopsis

Documentation

data Command Source #

The commands suported by the view controller.

Instances
Eq Command Source # 
Instance details

Defined in Graphics.Gloss.Data.ViewState

Methods

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

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

Ord Command Source # 
Instance details

Defined in Graphics.Gloss.Data.ViewState

Show Command Source # 
Instance details

Defined in Graphics.Gloss.Data.ViewState

defaultCommandConfig :: CommandConfig Source #

The default commands. Left click pans, wheel zooms, right click rotates, "r" key resets.

data ViewState Source #

State for controlling the viewport. These are used by the viewport control component.

Constructors

ViewState 

Fields

viewStateInit :: ViewState Source #

The initial view state.

viewStateInitWithConfig :: CommandConfig -> ViewState Source #

Initial view state, with user defined config.