WiiUPluginLoaderBackend/source/utils/config/ConfigRendererItemCategory.h

30 lines
752 B
C
Raw Normal View History

#pragma once
2024-12-29 17:43:28 +01:00
//#include "ConfigRendererItemGeneric.h"
//#include "config/WUPSConfigCategory.h"
2024-11-27 20:44:36 +01:00
#include <cassert>
2024-11-27 20:44:36 +01:00
class ConfigRendererItemCategory final : public ConfigRendererItemGeneric {
public:
explicit ConfigRendererItemCategory(const WUPSConfigAPIBackend::WUPSConfigCategory *category) : mCategory(category) {
assert(category);
}
void Draw(uint32_t yOffset, bool isHighlighted) const override {
drawGenericBoxAndText(yOffset, mCategory->getName(), isHighlighted);
}
void Update(bool) override {
}
[[nodiscard]] bool NeedsRedraw() const override {
return false;
}
void ResetNeedsRedraw() override {
}
private:
const WUPSConfigAPIBackend::WUPSConfigCategory *mCategory;
};