sdl2-2.5.2.0: Both high- and low-level bindings to the SDL library (version 2.0.6+).

Safe Haskell | Safe
Language | Haskell2010

SDL.Hint

Contents

- Getting and setting hints
- Hint Information
  - `HintAccelerometerAsJoystick`
  - `HintFramebufferAcceleration`
  - `HintMacCTRLClick`
  - `HintMouseRelativeModeWarp`
  - `HintRenderDriver`
  - `HintRenderOpenGLShaders`
  - `HintRenderScaleQuality`
  - `HintRenderVSync`
  - `HintVideoWinD3DCompiler`

Synopsis

- data Hint :: * -> * where
  - HintAccelerometerAsJoystick :: Hint AccelerometerJoystickOptions
  - HintFramebufferAcceleration :: Hint FramebufferAccelerationOptions
  - HintMacCTRLClick :: Hint MacCTRLClickOptions
  - HintMouseRelativeModeWarp :: Hint MouseModeWarpOptions
  - HintRenderDriver :: Hint RenderDrivers
  - HintRenderOpenGLShaders :: Hint RenderOpenGLShaderOptions
  - HintRenderScaleQuality :: Hint RenderScaleQuality
  - HintRenderVSync :: Hint RenderVSyncOptions
  - HintVideoWinD3DCompiler :: Hint VideoWinD3DCompilerOptions
- setHintWithPriority :: MonadIO m => HintPriority -> Hint v -> v -> m Bool
- data HintPriority
  - = DefaultPriority
  - | NormalPriority
  - | OverridePriority
- clearHints :: MonadIO m => m ()
- data AccelerometerJoystickOptions
  - = AccelerometerNotJoystick
  - | AccelerometerIsJoystick
- data FramebufferAccelerationOptions
  - = Disable3D
  - | Enable3DDefault
  - | Enable3DDirect3D
  - | Enable3DOpenGL
  - | Enable3DOpenGLES
  - | Enable3DOpenGLES2
  - | Enable3DSoftware
- data MacCTRLClickOptions
  - = NoRightClick
  - | EmulateRightClick
- data MouseModeWarpOptions
  - = MouseRawInput
  - | MouseWarping
- data RenderDrivers
  - = Direct3D
  - | OpenGL
  - | OpenGLES
  - | OpenGLES2
  - | Software
- data RenderOpenGLShaderOptions
  - = DisableShaders
  - | EnableShaders
- data RenderScaleQuality
  - = ScaleNearest
  - | ScaleLinear
  - | ScaleBest
- data RenderVSyncOptions
  - = DisableVSync
  - | EnableVSync
- data VideoWinD3DCompilerOptions
  - = D3DVistaOrLater
  - | D3DXPSupport
  - | D3DNone

# Getting and setting hints

data Hint :: * -> * where Source #

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`.

Constructors

HintAccelerometerAsJoystick :: Hint AccelerometerJoystickOptions |
HintFramebufferAcceleration :: Hint FramebufferAccelerationOptions |
HintMacCTRLClick :: Hint MacCTRLClickOptions |
HintMouseRelativeModeWarp :: Hint MouseModeWarpOptions |
HintRenderDriver :: Hint RenderDrivers |
HintRenderOpenGLShaders :: Hint RenderOpenGLShaderOptions |
HintRenderScaleQuality :: Hint RenderScaleQuality |
HintRenderVSync :: Hint RenderVSyncOptions |
HintVideoWinD3DCompiler :: Hint VideoWinD3DCompilerOptions |

#### Instances

Instances details

HasSetter (Hint v) v Source # |
Instance details Defined in SDL.Hint Methods ($=) :: MonadIO m => Hint v -> v -> m () Source #
HasGetter (Hint v) v Source # |
Instance details Defined in SDL.Hint Methods get :: MonadIO m => Hint v -> m v Source #

setHintWithPriority :: MonadIO m => HintPriority -> Hint v -> v -> m Bool Source #

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.

data HintPriority Source #

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

Constructors

DefaultPriority | Low priority, used for default values
NormalPriority | Medium priority
OverridePriority | High priority

#### Instances

Instances details

Bounded HintPriority Source # |
Instance details Defined in SDL.Hint Methods minBound :: HintPriority maxBound :: HintPriority
Enum HintPriority Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: HintPriority -> HintPriority

pred :: HintPriority -> HintPriority

toEnum :: Int -> HintPriority

fromEnum :: HintPriority -> Int

enumFrom :: HintPriority -> [HintPriority]

enumFromThen :: HintPriority -> HintPriority -> [HintPriority]

enumFromTo :: HintPriority -> HintPriority -> [HintPriority]

enumFromThenTo :: HintPriority -> HintPriority -> HintPriority -> [HintPriority]

Eq HintPriority Source # |
Instance details Defined in SDL.Hint Methods (==) :: HintPriority -> HintPriority -> Bool (/=) :: HintPriority -> HintPriority -> Bool
Data HintPriority Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> HintPriority -> c HintPriority

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c HintPriority

toConstr :: HintPriority -> Constr

dataTypeOf :: HintPriority -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c HintPriority)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c HintPriority)

gmapT :: (forall b. Data b => b -> b) -> HintPriority -> HintPriority

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> HintPriority -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> HintPriority -> r

gmapQ :: (forall d. Data d => d -> u) -> HintPriority -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> HintPriority -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> HintPriority -> m HintPriority

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> HintPriority -> m HintPriority

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> HintPriority -> m HintPriority

Ord HintPriority Source # |
Instance details Defined in SDL.Hint Methods compare :: HintPriority -> HintPriority -> Ordering (<) :: HintPriority -> HintPriority -> Bool (<=) :: HintPriority -> HintPriority -> Bool (>) :: HintPriority -> HintPriority -> Bool (>=) :: HintPriority -> HintPriority -> Bool max :: HintPriority -> HintPriority -> HintPriority min :: HintPriority -> HintPriority -> HintPriority
Read HintPriority Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS HintPriority readList :: ReadS [HintPriority] readPrec :: ReadPrec HintPriority readListPrec :: ReadPrec [HintPriority]
Show HintPriority Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> HintPriority -> ShowS show :: HintPriority -> String showList :: [HintPriority] -> ShowS
Generic HintPriority Source # |
Instance details Defined in SDL.Hint Associated Types type Rep HintPriority :: Type -> Type Methods from :: HintPriority -> Rep HintPriority x to :: Rep HintPriority x -> HintPriority
type Rep HintPriority Source # |
Instance details Defined in SDL.Hint type Rep HintPriority = D1 ('MetaData "HintPriority" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) (C1 ('MetaCons "DefaultPriority" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "NormalPriority" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OverridePriority" 'PrefixI 'False) (U1 :: Type -> Type)))

clearHints :: MonadIO m => m () Source #

# Hint Information

## `HintAccelerometerAsJoystick`

data AccelerometerJoystickOptions Source #

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

AccelerometerNotJoystick | List only real joysticks and accept input from them
AccelerometerIsJoystick | List real joysticks along with the accelerometer as if it were a 3 axis joystick (the default)

#### Instances

Instances details

Bounded AccelerometerJoystickOptions Source # |
Instance details Defined in SDL.Hint Methods minBound :: AccelerometerJoystickOptions maxBound :: AccelerometerJoystickOptions
Enum AccelerometerJoystickOptions Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions

pred :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions

toEnum :: Int -> AccelerometerJoystickOptions

fromEnum :: AccelerometerJoystickOptions -> Int

enumFrom :: AccelerometerJoystickOptions -> [AccelerometerJoystickOptions]

enumFromThen :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> [AccelerometerJoystickOptions]

enumFromTo :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> [AccelerometerJoystickOptions]

enumFromThenTo :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> [AccelerometerJoystickOptions]

Eq AccelerometerJoystickOptions Source # |
Instance details Defined in SDL.Hint Methods (==) :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Bool (/=) :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Bool
Data AccelerometerJoystickOptions Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AccelerometerJoystickOptions -> c AccelerometerJoystickOptions

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AccelerometerJoystickOptions

toConstr :: AccelerometerJoystickOptions -> Constr

dataTypeOf :: AccelerometerJoystickOptions -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AccelerometerJoystickOptions)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AccelerometerJoystickOptions)

gmapT :: (forall b. Data b => b -> b) -> AccelerometerJoystickOptions -> AccelerometerJoystickOptions

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AccelerometerJoystickOptions -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AccelerometerJoystickOptions -> r

gmapQ :: (forall d. Data d => d -> u) -> AccelerometerJoystickOptions -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> AccelerometerJoystickOptions -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AccelerometerJoystickOptions -> m AccelerometerJoystickOptions

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AccelerometerJoystickOptions -> m AccelerometerJoystickOptions

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AccelerometerJoystickOptions -> m AccelerometerJoystickOptions

Ord AccelerometerJoystickOptions Source # |

Instance details

Defined in SDL.Hint

Methods

compare :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Ordering

(<) :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Bool

(<=) :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Bool

(>) :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Bool

(>=) :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Bool

max :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> AccelerometerJoystickOptions

min :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> AccelerometerJoystickOptions

Read AccelerometerJoystickOptions Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS AccelerometerJoystickOptions readList :: ReadS [AccelerometerJoystickOptions] readPrec :: ReadPrec AccelerometerJoystickOptions readListPrec :: ReadPrec [AccelerometerJoystickOptions]
Show AccelerometerJoystickOptions Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> AccelerometerJoystickOptions -> ShowS show :: AccelerometerJoystickOptions -> String showList :: [AccelerometerJoystickOptions] -> ShowS
Generic AccelerometerJoystickOptions Source # |
Instance details Defined in SDL.Hint Associated Types type Rep AccelerometerJoystickOptions :: Type -> Type Methods from :: AccelerometerJoystickOptions -> Rep AccelerometerJoystickOptions x to :: Rep AccelerometerJoystickOptions x -> AccelerometerJoystickOptions
type Rep AccelerometerJoystickOptions Source # |
Instance details Defined in SDL.Hint type Rep AccelerometerJoystickOptions = D1 ('MetaData "AccelerometerJoystickOptions" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) (C1 ('MetaCons "AccelerometerNotJoystick" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AccelerometerIsJoystick" 'PrefixI 'False) (U1 :: Type -> Type))

## `HintFramebufferAcceleration`

data FramebufferAccelerationOptions Source #

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

Disable3D | Disable 3D acceleration
Enable3DDefault | Enable 3D acceleration, using the default renderer
Enable3DDirect3D | Enable 3D acceleration using Direct3D
Enable3DOpenGL | Enable 3D acceleration using OpenGL
Enable3DOpenGLES | Enable 3D acceleration using OpenGLES
Enable3DOpenGLES2 | Enable 3D acceleration using OpenGLES2
Enable3DSoftware | Enable 3D acceleration using software rendering

#### Instances

Instances details

Bounded FramebufferAccelerationOptions Source # |
Instance details Defined in SDL.Hint Methods minBound :: FramebufferAccelerationOptions maxBound :: FramebufferAccelerationOptions
Enum FramebufferAccelerationOptions Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions

pred :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions

toEnum :: Int -> FramebufferAccelerationOptions

fromEnum :: FramebufferAccelerationOptions -> Int

enumFrom :: FramebufferAccelerationOptions -> [FramebufferAccelerationOptions]

enumFromThen :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> [FramebufferAccelerationOptions]

enumFromTo :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> [FramebufferAccelerationOptions]

enumFromThenTo :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> [FramebufferAccelerationOptions]

Eq FramebufferAccelerationOptions Source # |
Instance details Defined in SDL.Hint Methods (==) :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Bool (/=) :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Bool
Data FramebufferAccelerationOptions Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FramebufferAccelerationOptions -> c FramebufferAccelerationOptions

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FramebufferAccelerationOptions

toConstr :: FramebufferAccelerationOptions -> Constr

dataTypeOf :: FramebufferAccelerationOptions -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FramebufferAccelerationOptions)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FramebufferAccelerationOptions)

gmapT :: (forall b. Data b => b -> b) -> FramebufferAccelerationOptions -> FramebufferAccelerationOptions

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FramebufferAccelerationOptions -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FramebufferAccelerationOptions -> r

gmapQ :: (forall d. Data d => d -> u) -> FramebufferAccelerationOptions -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> FramebufferAccelerationOptions -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> FramebufferAccelerationOptions -> m FramebufferAccelerationOptions

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FramebufferAccelerationOptions -> m FramebufferAccelerationOptions

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FramebufferAccelerationOptions -> m FramebufferAccelerationOptions

Ord FramebufferAccelerationOptions Source # |

Instance details

Defined in SDL.Hint

Methods

compare :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Ordering

(<) :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Bool

(<=) :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Bool

(>) :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Bool

(>=) :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Bool

max :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> FramebufferAccelerationOptions

min :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> FramebufferAccelerationOptions

Read FramebufferAccelerationOptions Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS FramebufferAccelerationOptions readList :: ReadS [FramebufferAccelerationOptions] readPrec :: ReadPrec FramebufferAccelerationOptions readListPrec :: ReadPrec [FramebufferAccelerationOptions]
Show FramebufferAccelerationOptions Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> FramebufferAccelerationOptions -> ShowS show :: FramebufferAccelerationOptions -> String showList :: [FramebufferAccelerationOptions] -> ShowS
Generic FramebufferAccelerationOptions Source # |
Instance details Defined in SDL.Hint Associated Types type Rep FramebufferAccelerationOptions :: Type -> Type Methods from :: FramebufferAccelerationOptions -> Rep FramebufferAccelerationOptions x to :: Rep FramebufferAccelerationOptions x -> FramebufferAccelerationOptions
type Rep FramebufferAccelerationOptions Source # |

Instance details

Defined in SDL.Hint

type Rep FramebufferAccelerationOptions = D1 ('MetaData "FramebufferAccelerationOptions" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) ((C1 ('MetaCons "Disable3D" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Enable3DDefault" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Enable3DDirect3D" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Enable3DOpenGL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Enable3DOpenGLES" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Enable3DOpenGLES2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Enable3DSoftware" 'PrefixI 'False) (U1 :: Type -> Type))))

## `HintMacCTRLClick`

data MacCTRLClickOptions Source #

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

NoRightClick | Disable emulating right click
EmulateRightClick | Enable emulating right click

#### Instances

Instances details

Bounded MacCTRLClickOptions Source # |
Instance details Defined in SDL.Hint Methods minBound :: MacCTRLClickOptions maxBound :: MacCTRLClickOptions
Enum MacCTRLClickOptions Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: MacCTRLClickOptions -> MacCTRLClickOptions

pred :: MacCTRLClickOptions -> MacCTRLClickOptions

toEnum :: Int -> MacCTRLClickOptions

fromEnum :: MacCTRLClickOptions -> Int

enumFrom :: MacCTRLClickOptions -> [MacCTRLClickOptions]

enumFromThen :: MacCTRLClickOptions -> MacCTRLClickOptions -> [MacCTRLClickOptions]

enumFromTo :: MacCTRLClickOptions -> MacCTRLClickOptions -> [MacCTRLClickOptions]

enumFromThenTo :: MacCTRLClickOptions -> MacCTRLClickOptions -> MacCTRLClickOptions -> [MacCTRLClickOptions]

Eq MacCTRLClickOptions Source # |
Instance details Defined in SDL.Hint Methods (==) :: MacCTRLClickOptions -> MacCTRLClickOptions -> Bool (/=) :: MacCTRLClickOptions -> MacCTRLClickOptions -> Bool
Data MacCTRLClickOptions Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MacCTRLClickOptions -> c MacCTRLClickOptions

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MacCTRLClickOptions

toConstr :: MacCTRLClickOptions -> Constr

dataTypeOf :: MacCTRLClickOptions -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MacCTRLClickOptions)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MacCTRLClickOptions)

gmapT :: (forall b. Data b => b -> b) -> MacCTRLClickOptions -> MacCTRLClickOptions

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MacCTRLClickOptions -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MacCTRLClickOptions -> r

gmapQ :: (forall d. Data d => d -> u) -> MacCTRLClickOptions -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> MacCTRLClickOptions -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MacCTRLClickOptions -> m MacCTRLClickOptions

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MacCTRLClickOptions -> m MacCTRLClickOptions

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MacCTRLClickOptions -> m MacCTRLClickOptions

Ord MacCTRLClickOptions Source # |

Instance details

Defined in SDL.Hint

Methods

compare :: MacCTRLClickOptions -> MacCTRLClickOptions -> Ordering

(<) :: MacCTRLClickOptions -> MacCTRLClickOptions -> Bool

(<=) :: MacCTRLClickOptions -> MacCTRLClickOptions -> Bool

(>) :: MacCTRLClickOptions -> MacCTRLClickOptions -> Bool

(>=) :: MacCTRLClickOptions -> MacCTRLClickOptions -> Bool

max :: MacCTRLClickOptions -> MacCTRLClickOptions -> MacCTRLClickOptions

min :: MacCTRLClickOptions -> MacCTRLClickOptions -> MacCTRLClickOptions

Read MacCTRLClickOptions Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS MacCTRLClickOptions readList :: ReadS [MacCTRLClickOptions] readPrec :: ReadPrec MacCTRLClickOptions readListPrec :: ReadPrec [MacCTRLClickOptions]
Show MacCTRLClickOptions Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> MacCTRLClickOptions -> ShowS show :: MacCTRLClickOptions -> String showList :: [MacCTRLClickOptions] -> ShowS
Generic MacCTRLClickOptions Source # |
Instance details Defined in SDL.Hint Associated Types type Rep MacCTRLClickOptions :: Type -> Type Methods from :: MacCTRLClickOptions -> Rep MacCTRLClickOptions x to :: Rep MacCTRLClickOptions x -> MacCTRLClickOptions
type Rep MacCTRLClickOptions Source # |
Instance details Defined in SDL.Hint type Rep MacCTRLClickOptions = D1 ('MetaData "MacCTRLClickOptions" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) (C1 ('MetaCons "NoRightClick" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EmulateRightClick" 'PrefixI 'False) (U1 :: Type -> Type))

## `HintMouseRelativeModeWarp`

data MouseModeWarpOptions Source #

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

MouseRawInput | Relative mouse mode uses the raw input
MouseWarping | Relative mouse mode uses mouse warping

#### Instances

Instances details

Bounded MouseModeWarpOptions Source # |
Instance details Defined in SDL.Hint Methods minBound :: MouseModeWarpOptions maxBound :: MouseModeWarpOptions
Enum MouseModeWarpOptions Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: MouseModeWarpOptions -> MouseModeWarpOptions

pred :: MouseModeWarpOptions -> MouseModeWarpOptions

toEnum :: Int -> MouseModeWarpOptions

fromEnum :: MouseModeWarpOptions -> Int

enumFrom :: MouseModeWarpOptions -> [MouseModeWarpOptions]

enumFromThen :: MouseModeWarpOptions -> MouseModeWarpOptions -> [MouseModeWarpOptions]

enumFromTo :: MouseModeWarpOptions -> MouseModeWarpOptions -> [MouseModeWarpOptions]

enumFromThenTo :: MouseModeWarpOptions -> MouseModeWarpOptions -> MouseModeWarpOptions -> [MouseModeWarpOptions]

Eq MouseModeWarpOptions Source # |
Instance details Defined in SDL.Hint Methods (==) :: MouseModeWarpOptions -> MouseModeWarpOptions -> Bool (/=) :: MouseModeWarpOptions -> MouseModeWarpOptions -> Bool
Data MouseModeWarpOptions Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MouseModeWarpOptions -> c MouseModeWarpOptions

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MouseModeWarpOptions

toConstr :: MouseModeWarpOptions -> Constr

dataTypeOf :: MouseModeWarpOptions -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c MouseModeWarpOptions)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MouseModeWarpOptions)

gmapT :: (forall b. Data b => b -> b) -> MouseModeWarpOptions -> MouseModeWarpOptions

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MouseModeWarpOptions -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MouseModeWarpOptions -> r

gmapQ :: (forall d. Data d => d -> u) -> MouseModeWarpOptions -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> MouseModeWarpOptions -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MouseModeWarpOptions -> m MouseModeWarpOptions

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MouseModeWarpOptions -> m MouseModeWarpOptions

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MouseModeWarpOptions -> m MouseModeWarpOptions

Ord MouseModeWarpOptions Source # |

Instance details

Defined in SDL.Hint

Methods

compare :: MouseModeWarpOptions -> MouseModeWarpOptions -> Ordering

(<) :: MouseModeWarpOptions -> MouseModeWarpOptions -> Bool

(<=) :: MouseModeWarpOptions -> MouseModeWarpOptions -> Bool

(>) :: MouseModeWarpOptions -> MouseModeWarpOptions -> Bool

(>=) :: MouseModeWarpOptions -> MouseModeWarpOptions -> Bool

max :: MouseModeWarpOptions -> MouseModeWarpOptions -> MouseModeWarpOptions

min :: MouseModeWarpOptions -> MouseModeWarpOptions -> MouseModeWarpOptions

Read MouseModeWarpOptions Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS MouseModeWarpOptions readList :: ReadS [MouseModeWarpOptions] readPrec :: ReadPrec MouseModeWarpOptions readListPrec :: ReadPrec [MouseModeWarpOptions]
Show MouseModeWarpOptions Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> MouseModeWarpOptions -> ShowS show :: MouseModeWarpOptions -> String showList :: [MouseModeWarpOptions] -> ShowS
Generic MouseModeWarpOptions Source # |
Instance details Defined in SDL.Hint Associated Types type Rep MouseModeWarpOptions :: Type -> Type Methods from :: MouseModeWarpOptions -> Rep MouseModeWarpOptions x to :: Rep MouseModeWarpOptions x -> MouseModeWarpOptions
type Rep MouseModeWarpOptions Source # |
Instance details Defined in SDL.Hint type Rep MouseModeWarpOptions = D1 ('MetaData "MouseModeWarpOptions" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) (C1 ('MetaCons "MouseRawInput" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MouseWarping" 'PrefixI 'False) (U1 :: Type -> Type))

## `HintRenderDriver`

data RenderDrivers Source #

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.

Constructors

Direct3D |
OpenGL |
OpenGLES |
OpenGLES2 |
Software |

#### Instances

Instances details

Bounded RenderDrivers Source # |
Instance details Defined in SDL.Hint Methods minBound :: RenderDrivers maxBound :: RenderDrivers
Enum RenderDrivers Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: RenderDrivers -> RenderDrivers

pred :: RenderDrivers -> RenderDrivers

toEnum :: Int -> RenderDrivers

fromEnum :: RenderDrivers -> Int

enumFrom :: RenderDrivers -> [RenderDrivers]

enumFromThen :: RenderDrivers -> RenderDrivers -> [RenderDrivers]

enumFromTo :: RenderDrivers -> RenderDrivers -> [RenderDrivers]

enumFromThenTo :: RenderDrivers -> RenderDrivers -> RenderDrivers -> [RenderDrivers]

Eq RenderDrivers Source # |
Instance details Defined in SDL.Hint Methods (==) :: RenderDrivers -> RenderDrivers -> Bool (/=) :: RenderDrivers -> RenderDrivers -> Bool
Data RenderDrivers Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderDrivers -> c RenderDrivers

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderDrivers

toConstr :: RenderDrivers -> Constr

dataTypeOf :: RenderDrivers -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenderDrivers)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderDrivers)

gmapT :: (forall b. Data b => b -> b) -> RenderDrivers -> RenderDrivers

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderDrivers -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderDrivers -> r

gmapQ :: (forall d. Data d => d -> u) -> RenderDrivers -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderDrivers -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderDrivers -> m RenderDrivers

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderDrivers -> m RenderDrivers

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderDrivers -> m RenderDrivers

Ord RenderDrivers Source # |
Instance details Defined in SDL.Hint Methods compare :: RenderDrivers -> RenderDrivers -> Ordering (<) :: RenderDrivers -> RenderDrivers -> Bool (<=) :: RenderDrivers -> RenderDrivers -> Bool (>) :: RenderDrivers -> RenderDrivers -> Bool (>=) :: RenderDrivers -> RenderDrivers -> Bool max :: RenderDrivers -> RenderDrivers -> RenderDrivers min :: RenderDrivers -> RenderDrivers -> RenderDrivers
Read RenderDrivers Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS RenderDrivers readList :: ReadS [RenderDrivers] readPrec :: ReadPrec RenderDrivers readListPrec :: ReadPrec [RenderDrivers]
Show RenderDrivers Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> RenderDrivers -> ShowS show :: RenderDrivers -> String showList :: [RenderDrivers] -> ShowS
Generic RenderDrivers Source # |
Instance details Defined in SDL.Hint Associated Types type Rep RenderDrivers :: Type -> Type Methods from :: RenderDrivers -> Rep RenderDrivers x to :: Rep RenderDrivers x -> RenderDrivers
type Rep RenderDrivers Source # |

Instance details

Defined in SDL.Hint

type Rep RenderDrivers = D1 ('MetaData "RenderDrivers" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) ((C1 ('MetaCons "Direct3D" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OpenGL" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OpenGLES" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "OpenGLES2" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Software" 'PrefixI 'False) (U1 :: Type -> Type))))

## `HintRenderOpenGLShaders`

data RenderOpenGLShaderOptions Source #

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

Constructors

DisableShaders | Disable shaders
EnableShaders | Enable shaders, if they are available

#### Instances

Instances details

Bounded RenderOpenGLShaderOptions Source # |
Instance details Defined in SDL.Hint Methods minBound :: RenderOpenGLShaderOptions maxBound :: RenderOpenGLShaderOptions
Enum RenderOpenGLShaderOptions Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions

pred :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions

toEnum :: Int -> RenderOpenGLShaderOptions

fromEnum :: RenderOpenGLShaderOptions -> Int

enumFrom :: RenderOpenGLShaderOptions -> [RenderOpenGLShaderOptions]

enumFromThen :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> [RenderOpenGLShaderOptions]

enumFromTo :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> [RenderOpenGLShaderOptions]

enumFromThenTo :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> [RenderOpenGLShaderOptions]

Eq RenderOpenGLShaderOptions Source # |
Instance details Defined in SDL.Hint Methods (==) :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Bool (/=) :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Bool
Data RenderOpenGLShaderOptions Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderOpenGLShaderOptions -> c RenderOpenGLShaderOptions

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderOpenGLShaderOptions

toConstr :: RenderOpenGLShaderOptions -> Constr

dataTypeOf :: RenderOpenGLShaderOptions -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenderOpenGLShaderOptions)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderOpenGLShaderOptions)

gmapT :: (forall b. Data b => b -> b) -> RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderOpenGLShaderOptions -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderOpenGLShaderOptions -> r

gmapQ :: (forall d. Data d => d -> u) -> RenderOpenGLShaderOptions -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderOpenGLShaderOptions -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderOpenGLShaderOptions -> m RenderOpenGLShaderOptions

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderOpenGLShaderOptions -> m RenderOpenGLShaderOptions

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderOpenGLShaderOptions -> m RenderOpenGLShaderOptions

Ord RenderOpenGLShaderOptions Source # |

Instance details

Defined in SDL.Hint

Methods

compare :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Ordering

(<) :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Bool

(<=) :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Bool

(>) :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Bool

(>=) :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Bool

max :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions

min :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions

Read RenderOpenGLShaderOptions Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS RenderOpenGLShaderOptions readList :: ReadS [RenderOpenGLShaderOptions] readPrec :: ReadPrec RenderOpenGLShaderOptions readListPrec :: ReadPrec [RenderOpenGLShaderOptions]
Show RenderOpenGLShaderOptions Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> RenderOpenGLShaderOptions -> ShowS show :: RenderOpenGLShaderOptions -> String showList :: [RenderOpenGLShaderOptions] -> ShowS
Generic RenderOpenGLShaderOptions Source # |
Instance details Defined in SDL.Hint Associated Types type Rep RenderOpenGLShaderOptions :: Type -> Type Methods from :: RenderOpenGLShaderOptions -> Rep RenderOpenGLShaderOptions x to :: Rep RenderOpenGLShaderOptions x -> RenderOpenGLShaderOptions
type Rep RenderOpenGLShaderOptions Source # |
Instance details Defined in SDL.Hint type Rep RenderOpenGLShaderOptions = D1 ('MetaData "RenderOpenGLShaderOptions" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) (C1 ('MetaCons "DisableShaders" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EnableShaders" 'PrefixI 'False) (U1 :: Type -> Type))

## `HintRenderScaleQuality`

data RenderScaleQuality Source #

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

Constructors

ScaleNearest | Nearest pixel sampling
ScaleLinear | linear filtering (supported by OpenGL and Direct3D)
ScaleBest | Anisotropic filtering (supported by Direct3D)

#### Instances

Instances details

Bounded RenderScaleQuality Source # |
Instance details Defined in SDL.Hint Methods minBound :: RenderScaleQuality maxBound :: RenderScaleQuality
Enum RenderScaleQuality Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: RenderScaleQuality -> RenderScaleQuality

pred :: RenderScaleQuality -> RenderScaleQuality

toEnum :: Int -> RenderScaleQuality

fromEnum :: RenderScaleQuality -> Int

enumFrom :: RenderScaleQuality -> [RenderScaleQuality]

enumFromThen :: RenderScaleQuality -> RenderScaleQuality -> [RenderScaleQuality]

enumFromTo :: RenderScaleQuality -> RenderScaleQuality -> [RenderScaleQuality]

enumFromThenTo :: RenderScaleQuality -> RenderScaleQuality -> RenderScaleQuality -> [RenderScaleQuality]

Eq RenderScaleQuality Source # |
Instance details Defined in SDL.Hint Methods (==) :: RenderScaleQuality -> RenderScaleQuality -> Bool (/=) :: RenderScaleQuality -> RenderScaleQuality -> Bool
Data RenderScaleQuality Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderScaleQuality -> c RenderScaleQuality

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderScaleQuality

toConstr :: RenderScaleQuality -> Constr

dataTypeOf :: RenderScaleQuality -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenderScaleQuality)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderScaleQuality)

gmapT :: (forall b. Data b => b -> b) -> RenderScaleQuality -> RenderScaleQuality

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderScaleQuality -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderScaleQuality -> r

gmapQ :: (forall d. Data d => d -> u) -> RenderScaleQuality -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderScaleQuality -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderScaleQuality -> m RenderScaleQuality

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderScaleQuality -> m RenderScaleQuality

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderScaleQuality -> m RenderScaleQuality

Ord RenderScaleQuality Source # |

Instance details

Defined in SDL.Hint

Methods

compare :: RenderScaleQuality -> RenderScaleQuality -> Ordering

(<) :: RenderScaleQuality -> RenderScaleQuality -> Bool

(<=) :: RenderScaleQuality -> RenderScaleQuality -> Bool

(>) :: RenderScaleQuality -> RenderScaleQuality -> Bool

(>=) :: RenderScaleQuality -> RenderScaleQuality -> Bool

max :: RenderScaleQuality -> RenderScaleQuality -> RenderScaleQuality

min :: RenderScaleQuality -> RenderScaleQuality -> RenderScaleQuality

Read RenderScaleQuality Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS RenderScaleQuality readList :: ReadS [RenderScaleQuality] readPrec :: ReadPrec RenderScaleQuality readListPrec :: ReadPrec [RenderScaleQuality]
Show RenderScaleQuality Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> RenderScaleQuality -> ShowS show :: RenderScaleQuality -> String showList :: [RenderScaleQuality] -> ShowS
Generic RenderScaleQuality Source # |
Instance details Defined in SDL.Hint Associated Types type Rep RenderScaleQuality :: Type -> Type Methods from :: RenderScaleQuality -> Rep RenderScaleQuality x to :: Rep RenderScaleQuality x -> RenderScaleQuality
type Rep RenderScaleQuality Source # |
Instance details Defined in SDL.Hint type Rep RenderScaleQuality = D1 ('MetaData "RenderScaleQuality" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) (C1 ('MetaCons "ScaleNearest" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ScaleLinear" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScaleBest" 'PrefixI 'False) (U1 :: Type -> Type)))

## `HintRenderVSync`

data RenderVSyncOptions Source #

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.

Constructors

DisableVSync |
EnableVSync |

#### Instances

Instances details

Bounded RenderVSyncOptions Source # |
Instance details Defined in SDL.Hint Methods minBound :: RenderVSyncOptions maxBound :: RenderVSyncOptions
Enum RenderVSyncOptions Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: RenderVSyncOptions -> RenderVSyncOptions

pred :: RenderVSyncOptions -> RenderVSyncOptions

toEnum :: Int -> RenderVSyncOptions

fromEnum :: RenderVSyncOptions -> Int

enumFrom :: RenderVSyncOptions -> [RenderVSyncOptions]

enumFromThen :: RenderVSyncOptions -> RenderVSyncOptions -> [RenderVSyncOptions]

enumFromTo :: RenderVSyncOptions -> RenderVSyncOptions -> [RenderVSyncOptions]

enumFromThenTo :: RenderVSyncOptions -> RenderVSyncOptions -> RenderVSyncOptions -> [RenderVSyncOptions]

Eq RenderVSyncOptions Source # |
Instance details Defined in SDL.Hint Methods (==) :: RenderVSyncOptions -> RenderVSyncOptions -> Bool (/=) :: RenderVSyncOptions -> RenderVSyncOptions -> Bool
Data RenderVSyncOptions Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RenderVSyncOptions -> c RenderVSyncOptions

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RenderVSyncOptions

toConstr :: RenderVSyncOptions -> Constr

dataTypeOf :: RenderVSyncOptions -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RenderVSyncOptions)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RenderVSyncOptions)

gmapT :: (forall b. Data b => b -> b) -> RenderVSyncOptions -> RenderVSyncOptions

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RenderVSyncOptions -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RenderVSyncOptions -> r

gmapQ :: (forall d. Data d => d -> u) -> RenderVSyncOptions -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> RenderVSyncOptions -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RenderVSyncOptions -> m RenderVSyncOptions

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderVSyncOptions -> m RenderVSyncOptions

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RenderVSyncOptions -> m RenderVSyncOptions

Ord RenderVSyncOptions Source # |

Instance details

Defined in SDL.Hint

Methods

compare :: RenderVSyncOptions -> RenderVSyncOptions -> Ordering

(<) :: RenderVSyncOptions -> RenderVSyncOptions -> Bool

(<=) :: RenderVSyncOptions -> RenderVSyncOptions -> Bool

(>) :: RenderVSyncOptions -> RenderVSyncOptions -> Bool

(>=) :: RenderVSyncOptions -> RenderVSyncOptions -> Bool

max :: RenderVSyncOptions -> RenderVSyncOptions -> RenderVSyncOptions

min :: RenderVSyncOptions -> RenderVSyncOptions -> RenderVSyncOptions

Read RenderVSyncOptions Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS RenderVSyncOptions readList :: ReadS [RenderVSyncOptions] readPrec :: ReadPrec RenderVSyncOptions readListPrec :: ReadPrec [RenderVSyncOptions]
Show RenderVSyncOptions Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> RenderVSyncOptions -> ShowS show :: RenderVSyncOptions -> String showList :: [RenderVSyncOptions] -> ShowS
Generic RenderVSyncOptions Source # |
Instance details Defined in SDL.Hint Associated Types type Rep RenderVSyncOptions :: Type -> Type Methods from :: RenderVSyncOptions -> Rep RenderVSyncOptions x to :: Rep RenderVSyncOptions x -> RenderVSyncOptions
type Rep RenderVSyncOptions Source # |
Instance details Defined in SDL.Hint type Rep RenderVSyncOptions = D1 ('MetaData "RenderVSyncOptions" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) (C1 ('MetaCons "DisableVSync" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EnableVSync" 'PrefixI 'False) (U1 :: Type -> Type))

## `HintVideoWinD3DCompiler`

data VideoWinD3DCompilerOptions Source #

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

#### Instances

Instances details

Bounded VideoWinD3DCompilerOptions Source # |
Instance details Defined in SDL.Hint Methods minBound :: VideoWinD3DCompilerOptions maxBound :: VideoWinD3DCompilerOptions
Enum VideoWinD3DCompilerOptions Source # |

Instance details

Defined in SDL.Hint

Methods

succ :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions

pred :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions

toEnum :: Int -> VideoWinD3DCompilerOptions

fromEnum :: VideoWinD3DCompilerOptions -> Int

enumFrom :: VideoWinD3DCompilerOptions -> [VideoWinD3DCompilerOptions]

enumFromThen :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> [VideoWinD3DCompilerOptions]

enumFromTo :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> [VideoWinD3DCompilerOptions]

enumFromThenTo :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> [VideoWinD3DCompilerOptions]

Eq VideoWinD3DCompilerOptions Source # |
Instance details Defined in SDL.Hint Methods (==) :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Bool (/=) :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Bool
Data VideoWinD3DCompilerOptions Source # |

Instance details

Defined in SDL.Hint

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VideoWinD3DCompilerOptions -> c VideoWinD3DCompilerOptions

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VideoWinD3DCompilerOptions

toConstr :: VideoWinD3DCompilerOptions -> Constr

dataTypeOf :: VideoWinD3DCompilerOptions -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c VideoWinD3DCompilerOptions)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VideoWinD3DCompilerOptions)

gmapT :: (forall b. Data b => b -> b) -> VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VideoWinD3DCompilerOptions -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VideoWinD3DCompilerOptions -> r

gmapQ :: (forall d. Data d => d -> u) -> VideoWinD3DCompilerOptions -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> VideoWinD3DCompilerOptions -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> VideoWinD3DCompilerOptions -> m VideoWinD3DCompilerOptions

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VideoWinD3DCompilerOptions -> m VideoWinD3DCompilerOptions

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VideoWinD3DCompilerOptions -> m VideoWinD3DCompilerOptions

Ord VideoWinD3DCompilerOptions Source # |

Instance details

Defined in SDL.Hint

Methods

compare :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Ordering

(<) :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Bool

(<=) :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Bool

(>) :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Bool

(>=) :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Bool

max :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions

min :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions

Read VideoWinD3DCompilerOptions Source # |
Instance details Defined in SDL.Hint Methods readsPrec :: Int -> ReadS VideoWinD3DCompilerOptions readList :: ReadS [VideoWinD3DCompilerOptions] readPrec :: ReadPrec VideoWinD3DCompilerOptions readListPrec :: ReadPrec [VideoWinD3DCompilerOptions]
Show VideoWinD3DCompilerOptions Source # |
Instance details Defined in SDL.Hint Methods showsPrec :: Int -> VideoWinD3DCompilerOptions -> ShowS show :: VideoWinD3DCompilerOptions -> String showList :: [VideoWinD3DCompilerOptions] -> ShowS
Generic VideoWinD3DCompilerOptions Source # |
Instance details Defined in SDL.Hint Associated Types type Rep VideoWinD3DCompilerOptions :: Type -> Type Methods from :: VideoWinD3DCompilerOptions -> Rep VideoWinD3DCompilerOptions x to :: Rep VideoWinD3DCompilerOptions x -> VideoWinD3DCompilerOptions
type Rep VideoWinD3DCompilerOptions Source # |
Instance details Defined in SDL.Hint type Rep VideoWinD3DCompilerOptions = D1 ('MetaData "VideoWinD3DCompilerOptions" "SDL.Hint" "sdl2-2.5.2.0-Cx4Ipj2keSJFpflqvJYEGr" 'False) (C1 ('MetaCons "D3DVistaOrLater" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "D3DXPSupport" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "D3DNone" 'PrefixI 'False) (U1 :: Type -> Type)))