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

Max column id registered.

__init__()
get_delegate(column_id: int) Optional[AbstractColumnDelegate]

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) bool

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.