metaforce/Runtime/GuiSys/CGuiWidgetIdDB.hpp

22 lines
429 B
C++
Raw Permalink Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-03-11 22:50:15 +00:00
2020-04-11 22:51:39 +00:00
#include <string>
#include <string_view>
2016-03-11 22:50:15 +00:00
#include <unordered_map>
#include "Runtime/GCNTypes.hpp"
2016-03-11 22:50:15 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2018-12-08 05:30:43 +00:00
class CGuiWidgetIdDB {
std::unordered_map<std::string, s16> x0_dbMap;
s16 x14_lastPoolId = 0;
2016-03-11 22:50:15 +00:00
public:
2018-12-08 05:30:43 +00:00
CGuiWidgetIdDB();
s16 FindWidgetID(std::string_view name) const;
s16 AddWidget(std::string_view name, s16 id);
s16 AddWidget(std::string_view name);
2016-03-11 22:50:15 +00:00
};
2021-04-10 08:42:06 +00:00
} // namespace metaforce