omni.flux.property_widget_builder.delegates#
SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
SPDX-License-Identifier: Apache-2.0
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
- class omni.flux.property_widget_builder.delegates.AbstractField(
- style_name: str = 'PropertiesWidgetField',
- identifier: str | None = None,
AbstractField that stores a style_name attribute to be used within build_ui for styling widgets.
- static set_dynamic_tooltip_fn(
- widget: ui.Widget,
- item_value_model: ItemModelBase,
Helper method to set dynamic tooltip function on a built widget.
- class omni.flux.property_widget_builder.delegates.BytesToHuman(
- style_name: str = 'PropertiesWidgetField',
- identifier: str | None = None,
Delegate of the tree
- static convert_size(size_bytes, _item_model)#
Convert bytes to something more readable
- class omni.flux.property_widget_builder.delegates.ColorField(
- display_precision: int = 2,
- style_name: str = 'ColorsWidgetFieldRead',
Delegate of the tree
- class omni.flux.property_widget_builder.delegates.CreatorField(
- text: str = 'Create',
- clicked_callback: Callable[[], None] | None = None,
- style_name: str = 'PropertiesWidgetField',
A simple delegate that presents a button that when clicked will trigger the provided callback.
- class omni.flux.property_widget_builder.delegates.DefaultField(
- widget_type: Type[Widget],
- style_name: str = 'PropertiesWidgetField',
- identifier: str | None = None,
A default field can be used to create a simple widget(s) for an item’s value_models.
- class omni.flux.property_widget_builder.delegates.DefaultLabelField(
- widget_type_name: str,
- style_name: str = 'PropertiesWidgetField',
- identifier: str | None = None,
Delegate of the tree
- class omni.flux.property_widget_builder.delegates.FileAccess(
- style_name: str = 'PropertiesWidgetField',
- identifier: str | None = None,
Delegate of the tree
- class omni.flux.property_widget_builder.delegates.FileFlags(
- style_name: str = 'PropertiesWidgetField',
- identifier: str | None = None,
Delegate of the tree
- class omni.flux.property_widget_builder.delegates.FilePicker(
- file_extension_options: list[tuple[str, str]] | None = None,
- style_name: str = 'PropertiesWidgetField',
- use_relative_paths: bool = False,
- class omni.flux.property_widget_builder.delegates.FloatSliderField(
- min_value,
- max_value,
- step: int | None = None,
- style_name: str = 'FloatSliderField',
- class omni.flux.property_widget_builder.delegates.MultilineField(line_count, style_name: str = 'PropertiesWidgetField')#
- class omni.flux.property_widget_builder.delegates.NameField(
- style_name: str = 'PropertiesWidgetField',
- identifier: str | None = None,