Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.platform.sdl2.Application.Configuration class

Configuration

Enums

class WindowFlags: RESIZABLE = 32 FULLSCREEN = 1 FULLSCREEN_DESKTOP = 4097 BORDERLESS = 16 HIDDEN = 8 MAXIMIZED = 128 MINIMIZED = 64 MOUSE_LOCKED = 256 ALWAYS_ON_TOP = 32768 SKIP_TASKBAR = 65536 UTILITY = 131072 TOOLTIP = 262144 POPUP_MENU = 524288 NONE = 0
Window flags

Special methods

def __init__(self, *, title: str = 'Magnum SDL2 Application', size: Vector2i = Vector(800, 600), window_flags: WindowFlags = WindowFlags.NONE) -> None
Constructor

Properties

size: Vector2i get set
Window size
title: str get set
Window title
window_flags: WindowFlags get set
Window flags