Download Now

    Reference IWindow

    Declared in Codebot.Platform.pas on line 221

    IWindow is the window showing a scene, given to scenes by their host. On the LCL it is the form holding the control the scene renders in, and on SDL it is the SDL window. It can be called from the thread running the scene.
    Scale is the ratio of pixels to logical units, such as 2 on a high resolution display. Close closes the window, which stops the scene. The mouse cursor over the scene is Mouse.Cursor in Codebot.Hardware.
      IWindow = interface
      public
        { Close the window stopping the scene }
        procedure Close;
        { The window caption }
        property Title: string read GetTitle write SetTitle;
        { Fullscreen is true when the window covers the whole screen }
        property Fullscreen: Boolean read GetFullscreen write SetFullscreen;
        { The ratio of pixels to logical units }
        property Scale: Single read GetScale;
      end;