Windows

PsychExpAPIs.WindowType
Window()

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()
source
PsychExpAPIs.flipMethod
flip(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.

source
PsychExpAPIs.getPosMethod
getPos(win::Window)

Returns the center of the window. This, as well as the dimensions, can chage when going to full screen

source
PsychExpAPIs.getSizeMethod
getSize(win::Window)

Returns the width and height of the window. Dimensions can chage when going to full screen.

source