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.scenegraph.DrawableGroup2D class

Group of drawables for two-dimensional float scenes

Methods

def add(self, arg0: Drawable2D, /) -> None
Add a feature to the group
def remove(self, arg0: Drawable2D, /) -> None
Remove a feature from the group

Special methods

def __getitem__(self, arg0: int, /) -> Drawable2D
Feature at given index
def __init__(self, /) -> None
Constructor
def __len__(self, /) -> int
Count of features in the group