PsychoJL.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, 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()
source
PsychoJL.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