HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulesdl2-2.5.5.0Haskell2010

SDL.Hint

  • 11 types
  • 2 values
  • Packagesdl2-2.5.5.0
  • Exports13
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceHint.hs

Getting and setting hints

4 declarations
datadata Hint v where
#

The Hint type exports a well-typed interface to SDL's concept of hints. This type has instances for both HasGetter and HasSetter, allowing you to get and set hints. Note that the HasSetter interface is fairly relaxed - if a hint cannot be set, the failure will be silently discarded. For more feedback and control when setting hints, see setHintWithPriority.

Instances2HasGetter, HasSetter
valuesetHintWithPriority :: MonadIO m => HintPriority -> Hint v -> v -> m Bool
#

Set the value of a hint, applying priority rules for when there is a conflict. Ordinarily, a hint will not be set if there is an existing override hint or environment variable that takes precedence.

datadata HintPriority
#

How to deal with setting hints when an existing override or environment variable is present.

Constructors

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

Hint Information

0 declarations

HintAccelerometerAsJoystick

A hint that specifies whether the Android/iOS built-in accelerometer should be listed as a joystick device, rather than listing actual joysticks only. By default SDL will list real joysticks along with the accelerometer as if it were a 3 axis joystick.

Constructors

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

HintFramebufferAcceleration

A hint that specifies how 3D acceleration is used to accelerate the SDL screen surface. By default SDL tries to make a best guess whether to use acceleration or not on each platform.

Constructors

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

HintMacCTRLClick

datadata MacCTRLClickOptions
#

A hint that specifies whether ctrl+click should generate a right-click event on Mac. By default holding ctrl while left clicking will not generate a right click event when on Mac.

Constructors

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

HintMouseRelativeModeWarp

datadata MouseModeWarpOptions
#

A hint that specifies whether relative mouse mode is implemented using mouse warping. By default SDL will use raw input for relative mouse mode

Constructors

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

HintRenderDriver

datadata RenderDrivers
#

A hint that specifies which render driver to use. By default the first one in the list that is available on the current platform is chosen.

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

HintRenderOpenGLShaders

A hint that specifies whether the OpenGL render driver uses shaders. By default shaders are used if OpenGL supports them.

Constructors

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

HintRenderScaleQuality

datadata RenderScaleQuality
#

A hint that specifies scaling quality. By default nearest pixel sampling is used.

Constructors

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

HintRenderVSync

datadata RenderVSyncOptions
#

A hint that specifies whether sync to vertical refresh is enabled or disabled to avoid tearing. By default SDL uses the flag passed into calls to create renderers.

Instances9Bounded, Enum, Eq, Data, Ord, Read, …

HintVideoWinD3DCompiler

A hint that specifies which shader compiler to preload when using the Chrome ANGLE binaries. By default d3dcompiler_46.dll will be used.

Constructors

  • D3DVistaOrLater

    Use d3dcompiler_46.dll, best for Vista or later

  • D3DXPSupport

    Use d3dcompiler_43.dll for XP support

  • D3DNone

    Do not load any library, useful if you compiled ANGLE from source and included the compiler in your binaries

Instances9Bounded, Enum, Eq, Data, Ord, Read, …