Caller-owned visibility selection ported from Pcg UIControllerSelection. 更多...
#include <PcgControllerSelection.h>
Public 成员函数 | |
| Result< void > | add (const std::string &name, int controllerType, const std::string &widgetId) |
| Append one controller type and its stable UI widget id. | |
| Result< bool > | refresh (int currentController) |
| Select first matching type; no match preserves the previous visibility snapshot. | |
| int | getCount () const noexcept |
| Return configured row count. | |
| int | getSelectedIndex () const noexcept |
| Return selected row or -1. | |
| Result< bool > | getVisible (int index) const |
| Return row visibility. | |
| Result< std::string > | getWidgetId (int index) const |
| Return stable widget id. | |
详细描述
Caller-owned visibility selection ported from Pcg UIControllerSelection.
在文件 PcgControllerSelection.h 第 11 行定义.
成员函数说明
◆ add()
| Result< void > eve::ui::PcgControllerSelection::add | ( | const std::string & | name, |
| int | controllerType, | ||
| const std::string & | widgetId | ||
| ) |
Append one controller type and its stable UI widget id.
在文件 PcgControllerSelection.cpp 第 5 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), id, eve::InvalidArgument, name, eve::Result< T >::success() , 以及 type.
◆ getCount()
|
inlinenoexcept |
Return configured row count.
在文件 PcgControllerSelection.h 第 15 行定义.
◆ getSelectedIndex()
|
inlinenoexcept |
Return selected row or -1.
在文件 PcgControllerSelection.h 第 16 行定义.
◆ getVisible()
| Result< bool > eve::ui::PcgControllerSelection::getVisible | ( | int | index | ) | const |
Return row visibility.
在文件 PcgControllerSelection.cpp 第 7 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 visible.
◆ getWidgetId()
| Result< std::string > eve::ui::PcgControllerSelection::getWidgetId | ( | int | index | ) | const |
Return stable widget id.
在文件 PcgControllerSelection.cpp 第 8 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument , 以及 eve::Result< T >::success().
◆ refresh()
| Result< bool > eve::ui::PcgControllerSelection::refresh | ( | int | currentController | ) |
Select first matching type; no match preserves the previous visibility snapshot.
在文件 PcgControllerSelection.cpp 第 6 行定义.
引用了 current, found, eve::Result< T >::success() , 以及 visible.
该类的文档由以下文件生成:
- src/modules/ui/PcgControllerSelection.h
- src/modules/ui/PcgControllerSelection.cpp