Programming API Reference: EduGraf.UI

Class public abstract Window

This is the platform independent window abstraction.
Property public int Width { get; set; }: of the window in pixels
Property public int Height { get; set; }: 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; }: displayed
Property protected Camera Camera { get; }: to produce the rendering

Constructor()

Create a new window.
  • int width : in pixels
  • int height : in pixels
  • Camera camera : handles events if handlers are not passed explicitly
  • params Action<IInputEvent>[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()

        The framework calls this method when a keyboard-key is pressed delegating the handling to the camera and rendering.
        • ConsoleKey key

        Method protected void OnKeyUp()

        The framework calls this method when a keyboard-key is released delegating the handling to the camera and rendering.
        • ConsoleKey key

        Method protected void OnMouseButtonDown()

        The framework calls this method when a mouse-button is pressed delegating the handling to the camera and rendering.

        Method protected void OnMouseButtonUp()

        The framework calls this method when a mouse-button is released delegating the handling to the camera and rendering.

        Method protected void OnMouseMove()

        The framework calls this method when the mouse is moved delegating the handling to the camera and rendering.
        • float x
        • float y

        Method protected void OnMouseScroll()

        The framework calls this method when the mouse-wheel is turned delegating the handling to the camera and rendering.
        • float deltaX
        • float deltaY