Programming API Reference: EduGraf.UI

Class public abstract Window

This is the platform independent window abstraction.
Property public int Width { get; set; }: the width of the window in pixels.
Property public int Height { get; set; }: the height of the window in pixels.
Property public virtual (float x float yMousePosition { get; set; }: in float pixels.
Property public virtual (float x float yMouseWheel { get; set; }: in unknown unit.
Property protected RenderingRendering { get; set; }: the displayed rendering.
Property protected CameraCamera { get; set; }: when passed to Show().

Constructor()

Create a new window.
  • int width : in pixels
  • int height : in pixels
  • params Action<InputEvent>[handlers : window event handlers

Method public virtual void Show()

Display the rendering.

Method protected virtual void OnLoad()

Do not call this from application programs.

    Method protected void OnUpdateFrame()

    Do not call this from application programs.

      Method protected void OnRenderFrame()

      Do not call this from application programs.

        Method protected void OnKeyDown()

        Called by the framework when a keyboard-key is pressed delegating the handling to the camera and rendering.
        • ConsoleKey key

        Method protected void OnKeyUp()

        Called by the framework when a keyboard-key is released delegating the handling to the camera and rendering.
        • ConsoleKey key

        Method protected void OnMouseButtonDown()

        Called by the framework when a mouse-button is pressed delegating the handling to the camera and rendering.

        Method protected void OnMouseButtonUp()

        Called by the framework when a mouse-button is released delegating the handling to the camera and rendering.

        Method protected void OnMouseMove()

        Called by the framework when the mouse is moved delegating the handling to the camera and rendering.
        • float x
        • float y

        Method protected void OnMouseScroll()

        Called by the framework when the mouse-wheel is turned delegating the handling to the camera and rendering.
        • float deltaX
        • float deltaY