File indexing completed on 2025-02-02 04:11:35

0001 /*
0002  * SPDX-FileCopyrightText: 2019-2023 Mattia Basaglia <dev@dragon.best>
0003  *
0004  * SPDX-License-Identifier: GPL-3.0-or-later
0005  */
0006 
0007 #ifndef FILLTOOLWIDGET_H
0008 #define FILLTOOLWIDGET_H
0009 
0010 #include <memory>
0011 #include <QWidget>
0012 
0013 namespace glaxnimate::gui {
0014 
0015 class FillToolWidget : public QWidget
0016 {
0017     Q_OBJECT
0018 
0019 public:
0020     FillToolWidget(QWidget* parent = nullptr);
0021     ~FillToolWidget();
0022 
0023     bool fill() const;
0024     bool stroke() const;
0025 
0026     void swap_fill_color();
0027 
0028 protected:
0029     void changeEvent ( QEvent* e ) override;
0030 
0031 private:
0032     class Private;
0033     std::unique_ptr<Private> d;
0034 };
0035 
0036 } // namespace glaxnimate::gui
0037 
0038 #endif // FILLTOOLWIDGET_H