Can edit stroke colors through selection
This commit is contained in:
parent
f6c4eeb9f3
commit
a73f5e2122
18 changed files with 283 additions and 51 deletions
|
|
@ -27,6 +27,14 @@ void RectangleCanvasComponent::load_file(cereal::PortableBinaryInputArchive& a,
|
|||
a(d.strokeColor, d.fillColor, d.cornerRadius, d.strokeWidth, d.p1, d.p2, d.fillStrokeMode);
|
||||
}
|
||||
|
||||
void RectangleCanvasComponent::change_stroke_color(const Vector4f& newStrokeColor) {
|
||||
d.strokeColor = newStrokeColor;
|
||||
}
|
||||
|
||||
std::optional<Vector4f> RectangleCanvasComponent::get_stroke_color() const {
|
||||
return d.strokeColor;
|
||||
}
|
||||
|
||||
std::unique_ptr<CanvasComponent> RectangleCanvasComponent::get_data_copy() const {
|
||||
auto toRet = std::make_unique<RectangleCanvasComponent>();
|
||||
toRet->d = d;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue