mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-12 10:37:00 +00:00
27 lines
No EOL
569 B
C++
27 lines
No EOL
569 B
C++
// Copyright 2025 Pound Emulator Project. All rights reserved.
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <imgui.h>
|
|
|
|
namespace Pound::GUI
|
|
{
|
|
|
|
class Panel
|
|
{
|
|
public:
|
|
Panel(const std::string &name) : name(name) {}
|
|
virtual ~Panel() = default;
|
|
|
|
virtual void Render() = 0;
|
|
|
|
const std::string &GetName() const { return name; }
|
|
bool IsVisible() const { return visible; }
|
|
void SetVisible(bool vis) { visible = vis; }
|
|
|
|
protected:
|
|
std::string name;
|
|
bool visible = true;
|
|
};
|
|
|
|
} // namespace Pound::GUI
|