keid-core-0.1.9.0: Core parts of Keid engine.
Safe HaskellSafe-Inferred
LanguageGHC2021

Engine.Window.MouseButton

Synopsis

Documentation

data MouseButton #

Part of the Mouse Input system.

Instances

Instances details
Data MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

Methods

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

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

toConstr :: MouseButton -> Constr #

dataTypeOf :: MouseButton -> DataType #

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

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

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

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

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

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

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

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

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

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

Bounded MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

Enum MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

Generic MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

Associated Types

type Rep MouseButton :: Type -> Type #

Read MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

Show MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

NFData MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

Methods

rnf :: MouseButton -> () #

Eq MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

Ord MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

type Rep MouseButton 
Instance details

Defined in Graphics.UI.GLFW.Types

type Rep MouseButton = D1 ('MetaData "MouseButton" "Graphics.UI.GLFW.Types" "GLFW-b-3.3.0.0-6a75b1c7daa663bd53f8b0fb24e39c08db92be5fbadde6af260dfe5b0e0e8abf" 'False) (((C1 ('MetaCons "MouseButton'1" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MouseButton'2" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MouseButton'3" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MouseButton'4" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MouseButton'5" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MouseButton'6" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MouseButton'7" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MouseButton'8" 'PrefixI 'False) (U1 :: Type -> Type))))

data MouseButtonState #

If the mouse button is pressed or not when getMouseButton is called.

Instances

Instances details
Data MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

Methods

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

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

toConstr :: MouseButtonState -> Constr #

dataTypeOf :: MouseButtonState -> DataType #

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

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

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

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

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

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

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

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

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

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

Bounded MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

Enum MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

Generic MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

Associated Types

type Rep MouseButtonState :: Type -> Type #

Read MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

Show MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

NFData MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

Methods

rnf :: MouseButtonState -> () #

Eq MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

Ord MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

type Rep MouseButtonState 
Instance details

Defined in Graphics.UI.GLFW.Types

type Rep MouseButtonState = D1 ('MetaData "MouseButtonState" "Graphics.UI.GLFW.Types" "GLFW-b-3.3.0.0-6a75b1c7daa663bd53f8b0fb24e39c08db92be5fbadde6af260dfe5b0e0e8abf" 'False) (C1 ('MetaCons "MouseButtonState'Pressed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MouseButtonState'Released" 'PrefixI 'False) (U1 :: Type -> Type))

data ModifierKeys #

Modifier keys that were pressed as part of another keypress event.

Instances

Instances details
Data ModifierKeys 
Instance details

Defined in Graphics.UI.GLFW.Types

Methods

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

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

toConstr :: ModifierKeys -> Constr #

dataTypeOf :: ModifierKeys -> DataType #

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

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

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

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

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

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

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

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

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

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

Generic ModifierKeys 
Instance details

Defined in Graphics.UI.GLFW.Types

Associated Types

type Rep ModifierKeys :: Type -> Type #

Read ModifierKeys 
Instance details

Defined in Graphics.UI.GLFW.Types

Show ModifierKeys 
Instance details

Defined in Graphics.UI.GLFW.Types

NFData ModifierKeys 
Instance details

Defined in Graphics.UI.GLFW.Types

Methods

rnf :: ModifierKeys -> () #

Eq ModifierKeys 
Instance details

Defined in Graphics.UI.GLFW.Types

Ord ModifierKeys 
Instance details

Defined in Graphics.UI.GLFW.Types

type Rep ModifierKeys 
Instance details

Defined in Graphics.UI.GLFW.Types

type Rep ModifierKeys = D1 ('MetaData "ModifierKeys" "Graphics.UI.GLFW.Types" "GLFW-b-3.3.0.0-6a75b1c7daa663bd53f8b0fb24e39c08db92be5fbadde6af260dfe5b0e0e8abf" 'False) (C1 ('MetaCons "ModifierKeys" 'PrefixI 'True) ((S1 ('MetaSel ('Just "modifierKeysShift") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "modifierKeysControl") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "modifierKeysAlt") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))) :*: (S1 ('MetaSel ('Just "modifierKeysSuper") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "modifierKeysCapsLock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "modifierKeysNumLock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)))))

data Collection a Source #

Constructors

Collection 

Fields

Instances

Instances details
Foldable Collection Source # 
Instance details

Defined in Engine.Window.MouseButton

Methods

fold :: Monoid m => Collection m -> m #

foldMap :: Monoid m => (a -> m) -> Collection a -> m #

foldMap' :: Monoid m => (a -> m) -> Collection a -> m #

foldr :: (a -> b -> b) -> b -> Collection a -> b #

foldr' :: (a -> b -> b) -> b -> Collection a -> b #

foldl :: (b -> a -> b) -> b -> Collection a -> b #

foldl' :: (b -> a -> b) -> b -> Collection a -> b #

foldr1 :: (a -> a -> a) -> Collection a -> a #

foldl1 :: (a -> a -> a) -> Collection a -> a #

toList :: Collection a -> [a] #

null :: Collection a -> Bool #

length :: Collection a -> Int #

elem :: Eq a => a -> Collection a -> Bool #

maximum :: Ord a => Collection a -> a #

minimum :: Ord a => Collection a -> a #

sum :: Num a => Collection a -> a #

product :: Num a => Collection a -> a #

Traversable Collection Source # 
Instance details

Defined in Engine.Window.MouseButton

Methods

traverse :: Applicative f => (a -> f b) -> Collection a -> f (Collection b) #

sequenceA :: Applicative f => Collection (f a) -> f (Collection a) #

mapM :: Monad m => (a -> m b) -> Collection a -> m (Collection b) #

sequence :: Monad m => Collection (m a) -> m (Collection a) #

Applicative Collection Source # 
Instance details

Defined in Engine.Window.MouseButton

Methods

pure :: a -> Collection a #

(<*>) :: Collection (a -> b) -> Collection a -> Collection b #

liftA2 :: (a -> b -> c) -> Collection a -> Collection b -> Collection c #

(*>) :: Collection a -> Collection b -> Collection b #

(<*) :: Collection a -> Collection b -> Collection a #

Functor Collection Source # 
Instance details

Defined in Engine.Window.MouseButton

Methods

fmap :: (a -> b) -> Collection a -> Collection b #

(<$) :: a -> Collection b -> Collection a #

Generic1 Collection Source # 
Instance details

Defined in Engine.Window.MouseButton

Associated Types

type Rep1 Collection :: k -> Type #

Methods

from1 :: forall (a :: k). Collection a -> Rep1 Collection a #

to1 :: forall (a :: k). Rep1 Collection a -> Collection a #

Show a => Show (Collection a) Source # 
Instance details

Defined in Engine.Window.MouseButton

Eq a => Eq (Collection a) Source # 
Instance details

Defined in Engine.Window.MouseButton

Methods

(==) :: Collection a -> Collection a -> Bool #

(/=) :: Collection a -> Collection a -> Bool #

Ord a => Ord (Collection a) Source # 
Instance details

Defined in Engine.Window.MouseButton

type Rep1 Collection Source # 
Instance details

Defined in Engine.Window.MouseButton