mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
26 lines
570 B
C++
26 lines
570 B
C++
#ifndef SHARED_SEPARABLE_H
|
|
#define SHARED_SEPARABLE_H
|
|
|
|
#include <escher/metric.h>
|
|
#include <kandinsky/rect.h>
|
|
#include <kandinsky/coordinate.h>
|
|
|
|
namespace Shared {
|
|
|
|
class Separable {
|
|
public:
|
|
Separable() : m_separatorLeft(false) {}
|
|
void setSeparatorLeft(bool separator);
|
|
KDRect separatorRect(KDRect bounds, KDCoordinate verticalOffset = 0) const;
|
|
KDRect rectWithoutSeparator(KDRect bounds) const;
|
|
protected:
|
|
bool m_separatorLeft;
|
|
private:
|
|
static constexpr int k_thickness = Metric::TableSeparatorThickness;
|
|
virtual void didSetSeparator() = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|