propertyHints.h
Go to the documentation of this file.
1 //
2 // Copyright 2025 Pixar
3 //
4 // Licensed under the terms set forth in the LICENSE.txt file available at
5 // https://openusd.org/license.
6 //
7 
8 #ifndef PXR_USD_USDUI_PROPERTY_HINTS_H
9 #define PXR_USD_USDUI_PROPERTY_HINTS_H
10 
12 
14 #include "pxr/usd/usd/property.h"
15 
16 PXR_NAMESPACE_OPEN_SCOPE
17 
32 {
33 public:
38  USDUI_API
40 
42  USDUI_API
43  explicit UsdUIPropertyHints(const UsdProperty& prop);
44 
46  UsdProperty GetProperty() const { return _prop; }
47 
56  USDUI_API
57  std::string GetDisplayGroup() const;
58 
65  USDUI_API
66  bool SetDisplayGroup(const std::string& group);
67 
72  USDUI_API
73  std::string GetShownIf() const;
74 
77  USDUI_API
78  bool SetShownIf(const std::string& shownIf);
79 
80 private:
81  UsdProperty _prop;
82 };
83 
84 PXR_NAMESPACE_CLOSE_SCOPE
85 
86 #endif
UsdProperty GetProperty() const
Return the property that this hints instance is interpreting.
Definition: propertyHints.h:46
USDUI_API std::string GetDisplayGroup() const
Return the property's display group, indicating which group it should appear under in the UI.
USDUI_API bool SetShownIf(const std::string &shownIf)
Set the property's "shown if" expression string.
USDUI_API UsdUIPropertyHints()
Default constructor that creates an invalid hints object.
A "schema-like" wrapper that provides API for retrieving and authoring UI hint values within the uiHi...
Definition: objectHints.h:59
A "schema-like" wrapper that provides API for retrieving and authoring UI hint values within the uiHi...
Definition: propertyHints.h:31
Base class for UsdAttribute and UsdRelationship scenegraph objects.
Definition: property.h:38
USDUI_API bool SetDisplayGroup(const std::string &group)
Set the object's display group to group.
USDUI_API std::string GetShownIf() const
Return the property's "shown if" expression string.