mischief-sdl
Safe HaskellNone
LanguageGHC2024

Mischief.SDL.Window

Synopsis

Documentation

data Window Source #

A component that will create a new window when added to an entity, and destroy it when removed.

Windows can be configured by inserting a WindowSize, WindowTitle, WindowFlags alongside this component.

Constructors

Window 

Instances

Instances details
Component Window Source # 
Instance details

Defined in Mischief.SDL.Window

Associated Types

type IsExclusiveRel Window 
Instance details

Defined in Mischief.SDL.Window

type IsExclusiveRel Window Source # 
Instance details

Defined in Mischief.SDL.Window

data WindowSize Source #

The size of a window in pixels.

Constructors

WindowSize 

Fields

newtype WindowTitle Source #

The displayed title (or name) of a window.

Constructors

WindowTitle String 

newtype WindowFlags Source #

A list of WindowFlags specifying various configurations for the window. The only one set by default is WindowResizable.

Constructors

WindowFlags [WindowFlag] 

data WindowPlugin Source #

Plugin adding windowing functionality.

Instances

Instances details
Plugin WindowPlugin Source # 
Instance details

Defined in Mischief.SDL.Window

Methods

deps :: [Dependency] #

init :: System () #