ColumnRegistry#
- class omni.kit.actions.window.ColumnRegistry#
Bases:
object
Registry for action columns.
Methods
__init__
()get_delegate
(column_id)Retrieve a delegate for a column.
register_delegate
(delegate[, column_id, ...])Register a delegate for a column.
unregister_delegate
(column_id)Unregister a delegate for a column.
Attributes
Max column id registered.
- __init__()#
- get_delegate(
- column_id: int,
Retrieve a delegate for a column.
- Parameters:
column_id (int) – Column id.
- register_delegate(
- delegate: AbstractColumnDelegate,
- column_id: int = -1,
- overwrite_if_exists: bool = True,
Register a delegate for a column.
- Parameters:
delegate (AbstractColumnDelegate) – Delegate to show a column.
- Kwargs:
column_id (int): Column id. Default -1 means auto generation. overwrite_if_exists (bool): Overwrite exising delegate if True. Otherwise False.
- unregister_delegate(column_id: int) bool #
Unregister a delegate for a column.
- Parameters:
column_id (int) – Column id to unregister.
- property max_column_id: int#
Max column id registered.