mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
UI: Add text description for all views.
This commit is contained in:
1 parent
7c72fe7110
commit
3c778f567c
23 files changed
+252
-103
No files matched your search
+14
-1
@@ -1,7 +1,8 @@
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <set>
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
#include <sstream>
|
||||
|
||||
#include "Common/Input/KeyCodes.h"
|
||||
#include "Common/Math/curves.h"
|
||||
@@ -154,6 +155,18 @@ void ViewGroup::Draw(UIContext &dc) {
|
||||
}
|
||||
}
|
||||
|
||||
std::string ViewGroup::DescribeText() const {
|
||||
std::stringstream ss;
|
||||
// TODO: In some cases, might be nice to define as a list explicitly.
|
||||
for (size_t i = 0; i < views_.size(); ++i) {
|
||||
if (i != 0) {
|
||||
ss << "\n";
|
||||
}
|
||||
ss << views_[i]->DescribeText();
|
||||
}
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
void ViewGroup::Update() {
|
||||
View::Update();
|
||||
for (View *view : views_) {
|
||||
|
||||
Reference in new issue
Block a user