File indexing completed on 2024-04-21 05:53:06

0001 /*
0002     This file is part of the Okteta Gui library, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2003, 2008, 2019 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef OKTETA_BORDERCOLUMNRENDERER_HPP
0010 #define OKTETA_BORDERCOLUMNRENDERER_HPP
0011 
0012 // lib
0013 #include "abstractcolumnrenderer.hpp"
0014 
0015 namespace Okteta {
0016 
0017 class BorderColumnRendererPrivate;
0018 
0019 /** column that does nothing but draw a vertical line in the middle of the column
0020  *
0021  * @author Friedrich W. H. Kossebau
0022  */
0023 
0024 class OKTETAGUI_EXPORT BorderColumnRenderer : public AbstractColumnRenderer
0025 {
0026 public:
0027     BorderColumnRenderer(AbstractColumnStylist* stylist, bool lineDrawn, bool inEmpty = true);
0028     ~BorderColumnRenderer() override;
0029 
0030 public: // AbstractColumnRenderer-API
0031     void renderColumn(QPainter* painter, const PixelXRange& Xs, const PixelYRange& Ys) override;
0032     void renderEmptyColumn(QPainter* painter, const PixelXRange& Xs, const PixelYRange& Ys) override;
0033 
0034 private:
0035     Q_DECLARE_PRIVATE(BorderColumnRenderer)
0036 };
0037 
0038 }
0039 
0040 #endif