| 1234567891011121314151617181920212223242526272829303132333435363738 |
- // This file is part of Desktop App Toolkit,
- // a set of libraries for developing nice desktop applications.
- //
- // For license and copyright information please follow this link:
- // https://github.com/desktop-app/legal/blob/master/LEGAL
- //
- #pragma once
- #include "ui/rp_widget.h"
- #include "ui/rect_part.h"
- namespace Ui {
- class BoxContentDivider : public Ui::RpWidget {
- public:
- BoxContentDivider(QWidget *parent);
- BoxContentDivider(QWidget *parent, int height);
- BoxContentDivider(
- QWidget *parent,
- int height,
- const style::color &bg,
- RectParts parts = RectPart::Top | RectPart::Bottom);
- [[nodiscard]] const style::color &color() const;
- protected:
- void paintEvent(QPaintEvent *e) override;
- void paintTop(QPainter &p, int skip = 0);
- void paintBottom(QPainter &p, int skip = 0);
- private:
- const style::color &_bg;
- const RectParts _parts;
- };
- } // namespace Ui
|