Skip to content

Mojo app window

mojo:mojo.app.Window

Class Window Extends View#

The Window class.

Constructors
New Creates a new window.
Properties
CanRender (read only)
ClearColor The window clear color.
ClearEnabled True if window clearing is enabled.
ContentView Window content view.
DesktopHeight (read only)
DesktopWidth (read only)
Fullscreen Window fullscreen state.
IsFullscreen (read only)
Maximized Window maximized state. (read only)
Minimized Window minimized state. (read only)
MouseScale Mouse scale for ios retina devices. Should prob. be in App so @2.png can use it etc. (read only)
SDLGLContext The internal SDL_GLContext used by this window. (read only)
SDLWindow The internal SDL_Window used by this window. (read only)
SwapAsync
SwapInterval The window swap interval.
Title The window title text.
WindowHeight (read only)
WindowWidth (read only)
WindowX (read only)
WindowXY (read only)
WindowY (read only)
Methods
BeginFullscreen Switches window to fullscreen mode.
ClearWindow Clear the window directly.
EndFullscreen Ends fullscreen mode.
Maximize Maximizes the window.
Minimize Minimizes the window.
ResizeWindow
Restore Restores the window.
SendTouchEvent
SendWindowEvent
SetMinSize
UpdateWindow
WindowResize Resize the current window
Functions
AllWindows
VisibleWindows
WindowForID
Protected methods
OnCreateWindow Called once after a Window has been created.
OnThemeChanged Theme changed handler.
OnTouchEvent Touch event handler.
OnWindowEvent Window event handler.