MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / BigButton

Method BigButton

Rtxpt/SampleUI.cpp:1853–1853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1851 bool Enabled;
1852
1853 BigButton( const std::string & name, bool & prop ) : Name(name), PropVar(&prop), PropNode(nullptr), Enabled(true) {}
1854 BigButton( const std::string & name, bool & prop, const std::string& hoverText, bool enabled ) : Name(name), PropVar(&prop), PropNode(nullptr), HoverText(hoverText), Enabled(enabled) {}
1855 BigButton( const std::string & name, TogglableNode * prop ) : Name(TrimTogglable(name)), PropVar(nullptr), PropNode(prop), Enabled(true) {}
1856 BigButton( const std::string & name, std::vector<std::string>* propOptions, int* propOptionIndex, const std::string& hoverText, const std::function<std::string(std::string)> & getItemName) : Name(name), PropOptions(propOptions), PropOptionIndex(propOptionIndex), HoverText(hoverText), Enabled(true), GetItemName(getItemName) { assert(PropOptions->size()>0); }

Callers

nothing calls this directly

Calls 1

TrimTogglableFunction · 0.85

Tested by

no test coverage detected