nyx-game-1.0.1.0: A bullet-hell game made with SDL2.
Play.Engine.Button
data Button Source #
Constructors
Fields
Defined in Play.Engine.Button
Methods
size :: Lens' Button IPoint Source #
pos :: Lens' Button IPoint Source #
text :: Lens' Button Text Source #
isClicked :: Lens' Button Bool Source #
font :: Lens' Button Font Source #
class HasFont s a | s -> a where Source #
font :: Lens' s a Source #
class HasIsClicked s a | s -> a where Source #
isClicked :: Lens' s a Source #
class HasText s a | s -> a where Source #
text :: Lens' s a Source #
make :: IPoint -> Size -> Font -> Text -> Button Source #
update :: Input -> Button -> Result (Bool, Button) Source #
render :: Renderer -> Bool -> Button -> IO () Source #