Skip to content

v0.3.0

Latest

Choose a tag to compare

@Maelkiz Maelkiz released this 22 Sep 13:17
· 1 commit to main since this release

Window style and state options for Window and GLWindow, plus a rebuild
against Mojo 1.1.0. No API breaks — existing calls compile and behave as
before — but the compiler floor moves to 1.1.0.

Window options

Window.__init__ and GLWindow.__init__ take three new keyword arguments,
with the same meaning on both:

  • resizable: Bool = True — allow the user to resize the window. Previously
    always on; now it can be turned off for a fixed-size window.
  • borderless: Bool = False — drop the title bar and frame. The window is
    still a normal desktop window, so it has no implicit drag or close
    behaviour; that is the caller's to provide.
  • maximized: Bool = False — open filling the desktop work area (unlike
    fullscreen, which covers the whole display and hides panels). As with
    fullscreen, SDL ignores the requested size; width()/height() report
    what it actually got, and Window sizes its pixel buffer to match.

Mojo 1.1.0

Mojo 1.1.0 removes InlineArray from the prelude, replacing it with
Array[T, N]. The event-polling buffers were updated accordingly.

The package ships a precompiled .mojoc, so it now requires
mojo-compiler >=1.1.0,<1.2.0 — the run dependency is pinned to the compiler
minor rather than the major, so the test and consumer environments can no
longer resolve a newer compiler than the one the .mojoc was built with.

This is why the release is a minor bump and not a patch: a consumer still on
Mojo 1.0.0 cannot resolve 0.3.0 at all, and upgrading means inheriting the
same prelude break in their own code. A <0.3 pin will not pick it up
automatically.

Install

[dependencies]
mojo-window = ">=0.3.0"