mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-19 01:21:53 +01:00
28 lines
746 B
C++
28 lines
746 B
C++
#pragma once
|
|
#include "ConfigRendererItemGeneric.h"
|
|
#include "config/WUPSConfigCategory.h"
|
|
#include <cassert>
|
|
|
|
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;
|
|
}; |