PsychoJL.Window — TypeWindow()Constructor for a Window object
Constructor inputs:
- size::MVector{2, Int64}
- fullScreen::Bool
Optional constructor inputs:
- color::MVector{3, Int64}
- colorSpace::String .......Future. Not implemented yet
- pos::MVector{2, Float64} ......position
- timeScale::String .......default = "milliseconds"
- title::String ......default = "Window"
Full list of fields
- win::Ptr{SDL_Window}
- size::MVector{2, Int64}
- pos::MVector{2, Float64} ......position
- color::MVector{3, Int64}
- colorSpace::String
- renderer::Ptr{SDL_Renderer}
- font::Ptr{SimpleDirectMediaLayer.LibSDL2.TTFFont}
- boldFont::Ptr{SimpleDirectMediaLayer.LibSDL2.TTFFont}
- italicFont::Ptr{SimpleDirectMediaLayer.LibSDL2.TTFFont}
- event::Base.RefValue{SDL_Event}
- fullScreen::Bool
- timeScale::String .......defaults is milliseconds. Other option is seconds
- title::String
Methods:
- close()
- closeWinOnly()
- flip()
- hideWindow()
PsychoJL.closeAndQuitPsychoJL — MethodcloseAndQuitPsychoJL(win::Window)Attempts to close a PsychoJL Window and quit SDL.
PsychoJL.closeWinOnly — MethodcloseWinOnly(win::Window)Attempts to close a PsychoJL Window without quiting SDL.
PsychoJL.flip — Methodflip(win::Window)Flips the offscreen buffer on screen. In other words, all of the visual objects that you have drawn offscreen prior to the flip will now become visible.
PsychoJL.hideWindow — MethodhideWindow(win::Window)Attempts to hide a PsychoJL Window.