Inspector

class omni.ui.Inspector

Bases: pybind11_object

Inspector is the helper to check the internal state of the widget. It’s not recommended to use it for the routine UI.

Methods

__init__(*args, **kwargs)

begin_computed_height_metric()

Start counting how many times Widget::setComputedHeight is called

begin_computed_width_metric()

Start counting how many times Widget::setComputedWidth is called

end_computed_height_metric()

Start counting how many times Widget::setComputedHeight is called and return the number

end_computed_width_metric()

Start counting how many times Widget::setComputedWidth is called and return the number

get_children(widget)

Get the children of the given Widget.

get_resolved_style(widget)

Get the resolved style of the given Widget.

get_stored_font_atlases()

Provides the information about font atlases

__init__(*args, **kwargs)
static begin_computed_height_metric() None

Start counting how many times Widget::setComputedHeight is called

static begin_computed_width_metric() None

Start counting how many times Widget::setComputedWidth is called

static end_computed_height_metric() int

Start counting how many times Widget::setComputedHeight is called and return the number

static end_computed_width_metric() int

Start counting how many times Widget::setComputedWidth is called and return the number

static get_children(widget: omni.ui._ui.Widget) List[omni.ui._ui.Widget]

Get the children of the given Widget.

static get_resolved_style(widget: omni.ui._ui.Widget) omni::ui::StyleContainer

Get the resolved style of the given Widget.

static get_stored_font_atlases() List[Tuple[str, int]]

Provides the information about font atlases