HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

  • Packagesdl2-2.5.5.0
  • Exports42
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceVideo.hs

Window Management

8 declarations
newtypenewtype Window
#
Instances6Eq, Data, Ord, Show, Generic, Rep
datadata WindowConfig
#

Constructors

Instances6Eq, Ord, Read, Show, Generic, Rep

Configuration of additional graphics context that will be created for window.

Can not be changed after window creation.

Constructors

Instances6Eq, Ord, Read, Show, Generic, Rep
datadata WindowMode
#

Constructors

Instances11Bounded, Enum, Eq, Data, Ord, Read, …
datadata WindowPosition
#

Constructors

Instances6Eq, Ord, Read, Show, Generic, Rep

Window Actions

3 declarations

Window Attributes

18 declarations

Get or set the window's brightness, where 0.0 is completely dark and 1.0 is normal brightness.

Throws SDLException if the hardware does not support gamma correction, or if the system has run out of memory.

This StateVar can be modified using $= and the current value retrieved with get.

Gets or sets the gamma ramp for the display that owns a given window.

Note that the data for the gamma ramp - the V3 (Vector Word16) - must contain 256 element arrays. This triple is a set of translation vectors for each of the 16-bit red, green and blue channels.

This StateVar can be modified using $= and the current value retrieved with get.

Despite the name and signature, this method retrieves the gamma ramp of the entire display, not an individual window. A window is considered to be owned by the display that contains the window's center pixel.

datadata PixelFormat
#
Instances9Eq, Data, Ord, Read, Show, Generic, …

Renderer Management

3 declarations

Clipboard Handling

3 declarations
valuesetClipboardText :: MonadIO m => Text -> m ()
#

Replace the contents of the clipboard with the given text.

Throws SDLException on failure.

Display

4 declarations
datadata Display
#

Constructors

Instances6Eq, Ord, Read, Show, Generic, Rep
datadata DisplayMode
#

Constructors

Instances6Eq, Ord, Read, Show, Generic, Rep
datadata VideoDriver
#
Instances7Eq, Data, Ord, Read, Show, Generic, …

Screen Savers

1 declaration

Screen savers should be disabled when the sudden enablement of the monitor's power saving features would be inconvenient for when the user hasn't provided any input for some period of time, such as during video playback.

Screen savers are disabled by default upon the initialization of the video subsystem.

Get or set whether to allow the screen to be blanked by a screen saver.

Screen savers are re-enabled, if needed, when SDL quits.

Message Box

2 declarations
datadata MessageKind
#
Instances10Bounded, Enum, Eq, Data, Ord, Read, …