8#ifndef PXR_USD_USDUI_OBJECT_HINTS_H
9#define PXR_USD_USDUI_OBJECT_HINTS_H
14#include "pxr/usd/usdUI/api.h"
21PXR_NAMESPACE_OPEN_SCOPE
24extern TfEnvSetting<bool> USDUI_WRITE_LEGACY_UI_HINTS;
27#define USDUI_HINT_KEYS \
28 ((UIHints, "uiHints")) \
29 ((DisplayName, "displayName")) \
30 ((DisplayGroup, "displayGroup")) \
31 ((Hidden, "hidden")) \
32 ((ShownIf, "shownIf")) \
33 ((ValueLabels, "valueLabels")) \
34 ((ValueLabelsOrder, "valueLabelsOrder")) \
35 ((DisplayGroupsExpanded, "displayGroupsExpanded")) \
36 ((DisplayGroupsShownIf, "displayGroupsShownIf")) \
45 UsdUIHintKeys, USDUI_API, USDUI_HINT_KEYS);
114 explicit operator bool()
const {
120 return _obj == rhs._obj;
125 return !(*
this == rhs);
140PXR_NAMESPACE_CLOSE_SCOPE
Token for efficient comparison, assignment, and hashing of known strings.
Base class for Usd scenegraph objects, providing common API.
A "schema-like" wrapper that provides API for retrieving and authoring UI hint values within the uiHi...
USDUI_API UsdUIObjectHints(const UsdObject &obj)
Construct a hints object for the given UsdObject obj.
bool operator!=(const UsdUIObjectHints &rhs) const
Inequality operator.
bool operator==(const UsdUIObjectHints &rhs) const
Equality operator.
USDUI_API bool GetHidden() const
Return the object's hidden status, indicating whether or not it should be hidden from the UI.
USDUI_API UsdUIObjectHints()
Default constructor that creates an invalid hints object.
USDUI_API std::string GetDisplayName() const
Return the object's display name, indicating how it should appear in the UI.
static USDUI_API TfToken _MakeKeyPath(const TfToken &key1, const TfToken &key2)
Combine key1 and key2 into a single token, separated by the namespace delimiter ':'.
USDUI_API bool SetDisplayName(const std::string &name)
Set the object's display name to name.
USDUI_API bool SetHidden(bool hidden)
Set the object's hidden status to hidden.
UsdObject GetObject() const
Return the object that this hints intance is interpreting.
Environment setting variable.
This file defines some macros that are useful for declaring and using static TfTokens.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.