24 increment_ = std::make_unique<ShapeButton>(
"Increment", Colours::black, Colours::black, Colours::black);
25 addAndMakeVisible(increment_.get());
26 increment_->addListener(
this);
30 increment_shape.startNewSubPath(Point<float>(0.5f, 0.1f));
31 increment_shape.lineTo(Point<float>(0.2f, 0.45f));
32 increment_shape.lineTo(Point<float>(0.8f, 0.45f));
33 increment_shape.closeSubPath();
36 increment_shape.startNewSubPath(Point<float>(0.0f, 0.0f));
37 increment_shape.closeSubPath();
38 increment_shape.startNewSubPath(Point<float>(1.0f, 0.5f));
39 increment_shape.closeSubPath();
41 increment_shape.addLineSegment(Line<float>(0.0f, 0.0f, 0.0f, 0.0f), 0.2f);
42 increment_shape.addLineSegment(Line<float>(0.5f, 0.5f, 0.5f, 0.5f), 0.2f);
43 increment_->setShape(increment_shape,
true,
true,
false);
45 decrement_ = std::make_unique<ShapeButton>(
"Decrement", Colours::black, Colours::black, Colours::black);
46 addAndMakeVisible(decrement_.get());
47 decrement_->addListener(
this);
51 decrement_shape.startNewSubPath(Point<float>(0.5f, 0.4f));
52 decrement_shape.lineTo(Point<float>(0.2f, 0.05f));
53 decrement_shape.lineTo(Point<float>(0.8f, 0.05f));
54 decrement_shape.closeSubPath();
57 decrement_shape.startNewSubPath(Point<float>(0.0f, 0.0f));
58 decrement_shape.closeSubPath();
59 decrement_shape.startNewSubPath(Point<float>(1.0f, 0.5f));
60 decrement_shape.closeSubPath();
62 decrement_shape.addLineSegment(Line<float>(0.0f, 0.0f, 0.0f, 0.0f), 0.2f);
63 decrement_shape.addLineSegment(Line<float>(0.5f, 0.5f, 0.5f, 0.5f), 0.2f);
64 decrement_->setShape(decrement_shape,
true,
true,
false);