WiiUPluginLoaderBackend/source/utils/config/ConfigRendererItemGeneric.h

30 lines
746 B
C
Raw Permalink Normal View History

#pragma once
2024-11-27 20:44:36 +01:00
#include <cstdint>
#include <string>
#include <wups/config.h>
class ConfigRendererItemGeneric {
public:
2024-11-27 20:44:36 +01:00
virtual ~ConfigRendererItemGeneric();
virtual void drawGenericBoxAndText(uint32_t yOffset, const std::string &displayName, bool isHighlighted) const;
virtual void Draw(uint32_t yOffset, bool isHighlighted) const = 0;
virtual void Update(bool) = 0;
[[nodiscard]] virtual bool NeedsRedraw() const = 0;
virtual void ResetNeedsRedraw() = 0;
2024-11-27 20:44:36 +01:00
virtual void SetIsSelected(bool);
virtual void OnButtonPressed(WUPSConfigButtons);
virtual void OnInput(WUPSConfigSimplePadData);
2024-11-27 20:44:36 +01:00
virtual void OnInputEx(WUPSConfigComplexPadData);
2024-11-27 20:44:36 +01:00
[[nodiscard]] virtual bool IsMovementAllowed() const;
};