Windows
- Objects
- Functions
PsychExpAPIs.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, Int64} ......position
- color::MVector{3, Int64}
- colorSpace::String
- coordinateSpace::String ......placeholder for now
- 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
- startTime::Float64 .......global proximy for startTime() and stopTime()
Methods:
- closeAndQuitPsychoJL()
- closeWinOnly()
- flip()
- getPos()
- getSize()
- hideWindow()
- mouseVisible()
- setFullScreen()
PsychExpAPIs.closeAndQuitPsychoJL — MethodcloseAndQuitPsychoJL(win::Window)Attempts to close a PsychoJL Window and quit SDL.
PsychExpAPIs.closeWinOnly — MethodcloseWinOnly(win::Window)Attempts to close a PsychoJL Window without quiting SDL.
PsychExpAPIs.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.
PsychExpAPIs.getPos — MethodgetPos(win::Window)Returns the center of the window. This, as well as the dimensions, can chage when going to full screen
PsychExpAPIs.getSize — MethodgetSize(win::Window)Returns the width and height of the window. Dimensions can chage when going to full screen.
PsychExpAPIs.hideWindow — MethodhideWindow(win::Window)Attempts to hide a PsychoJL Window.
PsychExpAPIs.mouseVisible — MethodmouseVisible(mode::Bool)Hides or shows the cursor
PsychExpAPIs.setFullScreen — MethodsetFullScreen(win::Window, mode::Bool)Allows you to flip between windowed and full-screen mode.