Class Display
A display that handles collecting events and drawing to the activity and handling window stuff
Will handle the main loop and send events to where they need to be handled
Constructors
Name | Description |
this
|
Constructs a display given a width, height, window flags, renderer flags, a title, and a path for an image icon (or null)
Disregarding width and height, constructor asks for flags first because once set, those cannot be changed
|
Fields
Name | Type | Description |
activity
|
Activity | The activity that the display is displaying right now
|
eventHandlers
|
EventHandler[] | All event handlers of the display; define specific behaviours for events; events pass to handlers from first to last
|
frameSleep
|
int | How long to wait between frames in milliseconds; will be ignored in case of VSync
|
isRunning
|
bool | Whether the display is running; will stop running if set to false
|
Properties
Name | Type | Description |
framerate [set]
|
int | Sets the window's framerate
|
framerate [get]
|
int | Gets the window's framerate
|
frames [get]
|
ulong | Gets how many frames have passed since the window started
|
keyboard [get]
|
Keyboard | Gets the keyboard of the display
|
mouse [get]
|
Mouse | Gets the mouse of the display
|
renderer [get]
|
Renderer | Gets the contained window's renderer
|
window [get]
|
Window | Gets the window of the display
|
Methods
Name | Description |
run
|
Actually runs the display and handles event collection and framerate and most other things
|