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 #pragma once
0008 
0009 #include "model/shapes/polystar.hpp"
0010 
0011 #include "shape_tool_widget.hpp"
0012 
0013 namespace glaxnimate::gui {
0014 
0015 class StarToolWidget : public ShapeToolWidget
0016 {
0017 public:
0018     StarToolWidget(QWidget* parent = nullptr);
0019 
0020     model::PolyStar::StarType star_type() const;
0021 
0022     double spoke_ratio() const;
0023 
0024     int points();
0025 
0026 private:
0027     class Private;
0028 };
0029 
0030 } // namespace glaxnimate::gui