Files
BloomPatched/src/Insight/UserInterfaces/InsightWindow/Widgets/PaneWidget.hpp

27 lines
510 B
C++
Raw Normal View History

2022-02-06 20:28:46 +00:00
#pragma once
#include <QWidget>
#include "PanelWidget.hpp"
#include "PaneState.hpp"
namespace Bloom::Widgets
{
class PaneWidget: public QWidget
{
Q_OBJECT
public:
bool activated = false;
PanelWidget* parentPanel = nullptr;
explicit PaneWidget(PanelWidget* parent): QWidget(parent), parentPanel(parent) {};
[[nodiscard]] PaneState getCurrentState() const {
return PaneState(
this->activated
);
}
};
}