Velaptor.UI.IWindow
Velaptor
Velaptor.UI
IWindow Interface
Provides the core of an application window which facilitates how the window behaves, its state and the ability to be used in various types of applications.
public interface IWindow
Derived
↳ Window
Properties
AutoSceneLoading
Gets or sets a value indicating whether the scenes should be automatically loaded.
bool AutoSceneLoading { get; set; }
Property Value
AutoSceneRendering
Gets or sets a value indicating whether the scenes should be automatically rendered.
bool AutoSceneRendering { get; set; }
Property Value
AutoSceneUnloading
Gets or sets a value indicating whether the scenes should be automatically unloaded.
bool AutoSceneUnloading { get; set; }
Property Value
AutoSceneUpdating
Gets or sets a value indicating whether the scenes should be automatically updated.
bool AutoSceneUpdating { get; set; }
Property Value
Draw
Gets or sets the System.Action delegate that is invoked per frame for rendering.
System.Action<Velaptor.FrameTime>? Draw { get; set; }
Property Value
Fps
Gets the frames per second that the main loop is running at.
float Fps { get; }
Property Value
Height
Gets or sets the height of the window.
uint Height { get; set; }
Property Value
Initialize
Gets or sets the System.Action delegate to be invoked one time to initialize the window.
System.Action? Initialize { get; set; }
Property Value
Initialized
Gets a value indicating whether the window has been initialized.
bool Initialized { get; }
Property Value
MouseCursorVisible
Gets or sets a value indicating whether the mouse cursor is visible.
bool MouseCursorVisible { get; set; }
Property Value
Position
Gets or sets the position of the window.
System.Numerics.Vector2 Position { get; set; }
Property Value
SceneManager
Gets the scene manager.
Velaptor.Scene.ISceneManager SceneManager { get; }
Property Value
Title
Gets or sets the title of the window.
string Title { get; set; }
Property Value
TypeOfBorder
Gets or sets the type of border that the IWindow will have.
Velaptor.WindowBorder TypeOfBorder { get; set; }
Property Value
Uninitialize
Gets or sets the System.Action delegate to be invoked one time to uninitialize the window.
System.Action? Uninitialize { get; set; }
Property Value
Update
Gets or sets the System.Action delegate that is invoked per frame for updating.
System.Action<Velaptor.FrameTime>? Update { get; set; }
Property Value
UpdateFrequency
Gets or sets the value of how often the update and render calls are invoked in the value of hertz.
int UpdateFrequency { get; set; }
Property Value
Width
Gets or sets the width of the window.
uint Width { get; set; }
Property Value
WindowState
Gets or sets the state of the window.
Velaptor.StateOfWindow WindowState { get; set; }
Property Value
WinResize
Gets or sets the System.Action delegate that is invoked every time the window is resized.
System.Action<Velaptor.SizeU>? WinResize { get; set; }
Property Value
Methods
Close()
Closes the window.
void Close();
Show()
Shows the window.
void Show();