#ifndef SHARED_SEPARABLE_H #define SHARED_SEPARABLE_H #include #include #include 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