1 #include "shapes/paint/shape_paint_mutator.hpp"
2 #include "component.hpp"
3 #include "shapes/paint/shape_paint.hpp"
7 bool ShapePaintMutator::initPaintMutator(Component* parent)
9 if (parent->is<ShapePaint>())
11 // Set this object as the mutator for the shape paint and get a
12 // reference to the paint we'll be mutating.
13 m_RenderPaint = parent->as<ShapePaint>()->initRenderPaint(this);
19 void ShapePaintMutator::renderOpacity(float value)
21 if (m_RenderOpacity == value)
25 m_RenderOpacity = value;
26 renderOpacityChanged();