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

Safe Haskell | Safe-Inferred
Language | Haskell2010

SDL.Hint

Contents

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

Synopsis

- data Hint v 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 v 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

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

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 Source #

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

toConstr :: HintPriority -> Constr Source #

dataTypeOf :: HintPriority -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: HintPriority -> HintPriority Source #

pred :: HintPriority -> HintPriority Source #

toEnum :: Int -> HintPriority Source #

fromEnum :: HintPriority -> Int Source #

enumFrom :: HintPriority -> [HintPriority] Source #

enumFromThen :: HintPriority -> HintPriority -> [HintPriority] Source #

enumFromTo :: HintPriority -> HintPriority -> [HintPriority] Source #

enumFromThenTo :: HintPriority -> HintPriority -> HintPriority -> [HintPriority] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: HintPriority -> HintPriority -> Ordering Source #

(<) :: HintPriority -> HintPriority -> Bool Source #

(<=) :: HintPriority -> HintPriority -> Bool Source #

(>) :: HintPriority -> HintPriority -> Bool Source #

(>=) :: HintPriority -> HintPriority -> Bool Source #

max :: HintPriority -> HintPriority -> HintPriority Source #

min :: HintPriority -> HintPriority -> HintPriority Source #

type Rep HintPriority Source # |
Instance details Defined in SDL.Hint type Rep HintPriority = D1 ('MetaData "HintPriority" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: AccelerometerJoystickOptions -> Constr Source #

dataTypeOf :: AccelerometerJoystickOptions -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions Source #

pred :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions Source #

toEnum :: Int -> AccelerometerJoystickOptions Source #

fromEnum :: AccelerometerJoystickOptions -> Int Source #

enumFrom :: AccelerometerJoystickOptions -> [AccelerometerJoystickOptions] Source #

enumFromThen :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> [AccelerometerJoystickOptions] Source #

enumFromTo :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> [AccelerometerJoystickOptions] Source #

enumFromThenTo :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> [AccelerometerJoystickOptions] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Ordering Source #

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

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

(>) :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> Bool Source #

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

max :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> AccelerometerJoystickOptions Source #

min :: AccelerometerJoystickOptions -> AccelerometerJoystickOptions -> AccelerometerJoystickOptions Source #

type Rep AccelerometerJoystickOptions Source # |
Instance details Defined in SDL.Hint type Rep AccelerometerJoystickOptions = D1 ('MetaData "AccelerometerJoystickOptions" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: FramebufferAccelerationOptions -> Constr Source #

dataTypeOf :: FramebufferAccelerationOptions -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions Source #

pred :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions Source #

toEnum :: Int -> FramebufferAccelerationOptions Source #

fromEnum :: FramebufferAccelerationOptions -> Int Source #

enumFrom :: FramebufferAccelerationOptions -> [FramebufferAccelerationOptions] Source #

enumFromThen :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> [FramebufferAccelerationOptions] Source #

enumFromTo :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> [FramebufferAccelerationOptions] Source #

enumFromThenTo :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> [FramebufferAccelerationOptions] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Ordering Source #

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

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

(>) :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> Bool Source #

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

max :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> FramebufferAccelerationOptions Source #

min :: FramebufferAccelerationOptions -> FramebufferAccelerationOptions -> FramebufferAccelerationOptions Source #

type Rep FramebufferAccelerationOptions Source # |

Instance details

Defined in SDL.Hint

type Rep FramebufferAccelerationOptions = D1 ('MetaData "FramebufferAccelerationOptions" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: MacCTRLClickOptions -> Constr Source #

dataTypeOf :: MacCTRLClickOptions -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: MacCTRLClickOptions -> MacCTRLClickOptions Source #

pred :: MacCTRLClickOptions -> MacCTRLClickOptions Source #

toEnum :: Int -> MacCTRLClickOptions Source #

fromEnum :: MacCTRLClickOptions -> Int Source #

enumFrom :: MacCTRLClickOptions -> [MacCTRLClickOptions] Source #

enumFromThen :: MacCTRLClickOptions -> MacCTRLClickOptions -> [MacCTRLClickOptions] Source #

enumFromTo :: MacCTRLClickOptions -> MacCTRLClickOptions -> [MacCTRLClickOptions] Source #

enumFromThenTo :: MacCTRLClickOptions -> MacCTRLClickOptions -> MacCTRLClickOptions -> [MacCTRLClickOptions] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: MacCTRLClickOptions -> MacCTRLClickOptions -> Ordering Source #

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

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

(>) :: MacCTRLClickOptions -> MacCTRLClickOptions -> Bool Source #

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

max :: MacCTRLClickOptions -> MacCTRLClickOptions -> MacCTRLClickOptions Source #

min :: MacCTRLClickOptions -> MacCTRLClickOptions -> MacCTRLClickOptions Source #

type Rep MacCTRLClickOptions Source # |
Instance details Defined in SDL.Hint type Rep MacCTRLClickOptions = D1 ('MetaData "MacCTRLClickOptions" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: MouseModeWarpOptions -> Constr Source #

dataTypeOf :: MouseModeWarpOptions -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: MouseModeWarpOptions -> MouseModeWarpOptions Source #

pred :: MouseModeWarpOptions -> MouseModeWarpOptions Source #

toEnum :: Int -> MouseModeWarpOptions Source #

fromEnum :: MouseModeWarpOptions -> Int Source #

enumFrom :: MouseModeWarpOptions -> [MouseModeWarpOptions] Source #

enumFromThen :: MouseModeWarpOptions -> MouseModeWarpOptions -> [MouseModeWarpOptions] Source #

enumFromTo :: MouseModeWarpOptions -> MouseModeWarpOptions -> [MouseModeWarpOptions] Source #

enumFromThenTo :: MouseModeWarpOptions -> MouseModeWarpOptions -> MouseModeWarpOptions -> [MouseModeWarpOptions] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: MouseModeWarpOptions -> MouseModeWarpOptions -> Ordering Source #

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

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

(>) :: MouseModeWarpOptions -> MouseModeWarpOptions -> Bool Source #

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

max :: MouseModeWarpOptions -> MouseModeWarpOptions -> MouseModeWarpOptions Source #

min :: MouseModeWarpOptions -> MouseModeWarpOptions -> MouseModeWarpOptions Source #

type Rep MouseModeWarpOptions Source # |
Instance details Defined in SDL.Hint type Rep MouseModeWarpOptions = D1 ('MetaData "MouseModeWarpOptions" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: RenderDrivers -> Constr Source #

dataTypeOf :: RenderDrivers -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: RenderDrivers -> RenderDrivers Source #

pred :: RenderDrivers -> RenderDrivers Source #

toEnum :: Int -> RenderDrivers Source #

fromEnum :: RenderDrivers -> Int Source #

enumFrom :: RenderDrivers -> [RenderDrivers] Source #

enumFromThen :: RenderDrivers -> RenderDrivers -> [RenderDrivers] Source #

enumFromTo :: RenderDrivers -> RenderDrivers -> [RenderDrivers] Source #

enumFromThenTo :: RenderDrivers -> RenderDrivers -> RenderDrivers -> [RenderDrivers] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: RenderDrivers -> RenderDrivers -> Ordering Source #

(<) :: RenderDrivers -> RenderDrivers -> Bool Source #

(<=) :: RenderDrivers -> RenderDrivers -> Bool Source #

(>) :: RenderDrivers -> RenderDrivers -> Bool Source #

(>=) :: RenderDrivers -> RenderDrivers -> Bool Source #

max :: RenderDrivers -> RenderDrivers -> RenderDrivers Source #

min :: RenderDrivers -> RenderDrivers -> RenderDrivers Source #

type Rep RenderDrivers Source # |

Instance details

Defined in SDL.Hint

type Rep RenderDrivers = D1 ('MetaData "RenderDrivers" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: RenderOpenGLShaderOptions -> Constr Source #

dataTypeOf :: RenderOpenGLShaderOptions -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions Source #

pred :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions Source #

toEnum :: Int -> RenderOpenGLShaderOptions Source #

fromEnum :: RenderOpenGLShaderOptions -> Int Source #

enumFrom :: RenderOpenGLShaderOptions -> [RenderOpenGLShaderOptions] Source #

enumFromThen :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> [RenderOpenGLShaderOptions] Source #

enumFromTo :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> [RenderOpenGLShaderOptions] Source #

enumFromThenTo :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> [RenderOpenGLShaderOptions] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Ordering Source #

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

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

(>) :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> Bool Source #

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

max :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions Source #

min :: RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions -> RenderOpenGLShaderOptions Source #

type Rep RenderOpenGLShaderOptions Source # |
Instance details Defined in SDL.Hint type Rep RenderOpenGLShaderOptions = D1 ('MetaData "RenderOpenGLShaderOptions" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: RenderScaleQuality -> Constr Source #

dataTypeOf :: RenderScaleQuality -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: RenderScaleQuality -> RenderScaleQuality Source #

pred :: RenderScaleQuality -> RenderScaleQuality Source #

toEnum :: Int -> RenderScaleQuality Source #

fromEnum :: RenderScaleQuality -> Int Source #

enumFrom :: RenderScaleQuality -> [RenderScaleQuality] Source #

enumFromThen :: RenderScaleQuality -> RenderScaleQuality -> [RenderScaleQuality] Source #

enumFromTo :: RenderScaleQuality -> RenderScaleQuality -> [RenderScaleQuality] Source #

enumFromThenTo :: RenderScaleQuality -> RenderScaleQuality -> RenderScaleQuality -> [RenderScaleQuality] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: RenderScaleQuality -> RenderScaleQuality -> Ordering Source #

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

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

(>) :: RenderScaleQuality -> RenderScaleQuality -> Bool Source #

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

max :: RenderScaleQuality -> RenderScaleQuality -> RenderScaleQuality Source #

min :: RenderScaleQuality -> RenderScaleQuality -> RenderScaleQuality Source #

type Rep RenderScaleQuality Source # |
Instance details Defined in SDL.Hint type Rep RenderScaleQuality = D1 ('MetaData "RenderScaleQuality" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: RenderVSyncOptions -> Constr Source #

dataTypeOf :: RenderVSyncOptions -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: RenderVSyncOptions -> RenderVSyncOptions Source #

pred :: RenderVSyncOptions -> RenderVSyncOptions Source #

toEnum :: Int -> RenderVSyncOptions Source #

fromEnum :: RenderVSyncOptions -> Int Source #

enumFrom :: RenderVSyncOptions -> [RenderVSyncOptions] Source #

enumFromThen :: RenderVSyncOptions -> RenderVSyncOptions -> [RenderVSyncOptions] Source #

enumFromTo :: RenderVSyncOptions -> RenderVSyncOptions -> [RenderVSyncOptions] Source #

enumFromThenTo :: RenderVSyncOptions -> RenderVSyncOptions -> RenderVSyncOptions -> [RenderVSyncOptions] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: RenderVSyncOptions -> RenderVSyncOptions -> Ordering Source #

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

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

(>) :: RenderVSyncOptions -> RenderVSyncOptions -> Bool Source #

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

max :: RenderVSyncOptions -> RenderVSyncOptions -> RenderVSyncOptions Source #

min :: RenderVSyncOptions -> RenderVSyncOptions -> RenderVSyncOptions Source #

type Rep RenderVSyncOptions Source # |
Instance details Defined in SDL.Hint type Rep RenderVSyncOptions = D1 ('MetaData "RenderVSyncOptions" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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

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 Source #

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

toConstr :: VideoWinD3DCompilerOptions -> Constr Source #

dataTypeOf :: VideoWinD3DCompilerOptions -> DataType Source #

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

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

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

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

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

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

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

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

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

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

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

Instance details

Defined in SDL.Hint

Methods

succ :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions Source #

pred :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions Source #

toEnum :: Int -> VideoWinD3DCompilerOptions Source #

fromEnum :: VideoWinD3DCompilerOptions -> Int Source #

enumFrom :: VideoWinD3DCompilerOptions -> [VideoWinD3DCompilerOptions] Source #

enumFromThen :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> [VideoWinD3DCompilerOptions] Source #

enumFromTo :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> [VideoWinD3DCompilerOptions] Source #

enumFromThenTo :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> [VideoWinD3DCompilerOptions] Source #

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

Instance details

Defined in SDL.Hint

Methods

compare :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Ordering Source #

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

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

(>) :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> Bool Source #

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

max :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions Source #

min :: VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions -> VideoWinD3DCompilerOptions Source #

type Rep VideoWinD3DCompilerOptions Source # |
Instance details Defined in SDL.Hint type Rep VideoWinD3DCompilerOptions = D1 ('MetaData "VideoWinD3DCompilerOptions" "SDL.Hint" "sdl2-2.5.5.0-1rHVQtCfQoNJ4T4oR9opIh" '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)))