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

Method SetSelected

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

Source from the content-addressed store, hash-verified

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); }
1857 bool IsSelected() const { return (PropOptions != nullptr)?(true):((PropVar != nullptr)?(*PropVar):(PropNode->IsSelected())); }
1858 void SetSelected( bool selected ) { if( PropVar != nullptr ) *PropVar = selected; else if (PropNode != nullptr ) PropNode->SetSelected(selected); else *PropOptionIndex = ( ((*PropOptionIndex)+1) % PropOptions->size() ); }
1859 std::string GetText() const
1860 {
1861 if (PropOptions != nullptr)

Callers

nothing calls this directly

Calls 1

SetSelectedMethod · 0.45

Tested by

no test coverage detected