StyleModel#
- class omni.kit.window.inspector.style.style_model.StyleModel(treeview)#
Bases:
AbstractItemModelThe item model that watches the stage
Methods
__init__(treeview)Flat means the root node has all the children and children of children, etc.
can_item_have_children(self[, parentItem])Returns true if the item can have children.
delete_item(item)destroy()duplicate_item(item)get_item_children(item)Reimplemented from AbstractItemModel
get_item_value_model(item, column_id)Reimplemented from AbstractItemModel
Reimplemented from AbstractItemModel
set_widget(widget)update()update_cached_style()- __init__(treeview)#
Flat means the root node has all the children and children of children, etc.
- can_item_have_children(
- self: omni.ui._ui.AbstractItemModel,
- parentItem: omni.ui._ui.AbstractItem = None,
Returns true if the item can have children. In this way the delegate usually draws +/- icon.
### Arguments:
- `id :`
The item to request children from. If it’s null, the children of root will be returned.
- get_item_children(
- item: StyleGroupItem | StyleItem | None,
Reimplemented from AbstractItemModel
- get_item_value_model(
- item: StyleItem | StyleGroupItem,
- column_id: int,
Reimplemented from AbstractItemModel
- get_item_value_model_count(item)#
Reimplemented from AbstractItemModel