simvx.core.selection¶
Multi-select selection system for editor use.
Module Contents¶
Classes¶
Tracks an ordered set of selected items with change notification. |
API¶
- class simvx.core.selection.Selection¶
Tracks an ordered set of selected items with change notification.
Initialization
- property items: list¶
- property count: int¶
- property primary: object | None¶
- property empty: bool¶
- select(item, *, additive: bool = False)¶
Select item. If additive, toggle it; otherwise replace.
- deselect(item)¶
- toggle(item)¶
- clear()¶
- select_all(items)¶
- is_selected(item) bool¶
- __contains__(item)¶
- __iter__()¶
- __len__() int¶