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

40 lines
799 B
C++
Raw Normal View History

2022-02-06 20:28:46 +00:00
#pragma once
#include <QSize>
#include <QPoint>
#include <optional>
namespace Widgets
2022-02-06 20:28:46 +00:00
{
struct DetachedWindowState
{
QSize size;
QPoint position;
DetachedWindowState() = default;
DetachedWindowState(QSize size, QPoint position)
: size(size)
, position(position)
{}
};
2022-02-06 20:28:46 +00:00
struct PaneState
{
bool activated = false;
bool attached = true;
std::optional<DetachedWindowState> detachedWindowState;
2022-02-06 20:28:46 +00:00
PaneState(
bool activated,
bool attached,
std::optional<DetachedWindowState> detachedWindowState
)
: activated(activated)
, attached(attached)
, detachedWindowState(detachedWindowState)
{};
2022-02-06 20:28:46 +00:00
};
}