SearchDelegate#
- class omni.kit.widget.search_delegate.SearchDelegate#
Bases:
object
A base class for implementing search delegates in Omni UI.
This abstract class defines the interface for search user interface components. It provides properties to determine if the search widget is visible and enabled, and to manage the search directory. Subclasses must implement the build_ui and destroy methods to create and remove UI elements appropriately.
Methods
__init__
()Initializes a new SearchDelegate instance.
build_ui
()Builds the user interface components for the search delegate.
destroy
()Destroys any resources used by the search delegate.
Attributes
Gets the enabled property.
Gets the search_dir property.
Gets the visible property.
- __init__()#
Initializes a new SearchDelegate instance.
- abstract build_ui()#
Builds the user interface components for the search delegate.
- abstract destroy()#
Destroys any resources used by the search delegate.
- property enabled#
Gets the enabled property. Enable/disable Widget.
- Returns:
The enabled property state.
- Return type:
bool
- property search_dir#
Gets the search_dir property.
- Returns:
The current search directory.
- Return type:
str
- property visible#
Gets the visible property.
- Returns:
The visible property state.
- Return type:
bool