ToolBar
- class omni.ui.ToolBar
Bases:
Window
The ToolBar class represents a window in the underlying windowing system that as some fixed size property.
Methods
__init__
(self, title, **kwargs)Construct ToolBar.
set_axis_changed_fn
(self, arg0)Attributes
axis
- __init__(self: omni.ui._ui.ToolBar, title: str, **kwargs) None
Construct ToolBar.
- `kwargsdict`
See below
### Keyword Arguments:
- `axisui.Axis`
@breif axis for the toolbar
- `axis_changed_fnCallable[[ui.Axis], None]`
@breif axis for the toolbar
- `flags`
This property set the Flags for the Window.
- `visible`
This property holds whether the window is visible.
- `title`
This property holds the window’s title.
- `padding_x`
This property set the padding to the frame on the X axis.
- `padding_y`
This property set the padding to the frame on the Y axis.
- `width`
This property holds the window Width.
- `height`
This property holds the window Height.
- `position_x`
This property set/get the position of the window in the X Axis. The default is kWindowFloatInvalid because we send the window position to the underlying system only if the position is explicitly set by the user. Otherwise the underlying system decides the position.
- `position_y`
This property set/get the position of the window in the Y Axis. The default is kWindowFloatInvalid because we send the window position to the underlying system only if the position is explicitly set by the user. Otherwise the underlying system decides the position.
- `auto_resize`
setup the window to resize automatically based on its content
- `noTabBar`
setup the visibility of the TabBar Handle, this is the small triangle at the corner of the view If it is not shown then it is not possible to undock that window and it need to be closed/moved programatically
- `tabBarTooltip`
This property sets the tooltip when hovering over window’s tabbar.
- `raster_policy`
Determine how the content of the window should be rastered.
- `width_changed_fn`
This property holds the window Width.
- `height_changed_fn`
This property holds the window Height.
- `visibility_changed_fn`
This property holds whether the window is visible.
- set_axis_changed_fn(self: omni.ui._ui.ToolBar, arg0: Callable[[omni.ui._ui.ToolBarAxis], None]) None