overload strokes getter for const

This commit is contained in:
2022-12-12 12:07:16 +01:00
parent 7fe6dc45ec
commit 702c4eaaeb
2 changed files with 6 additions and 0 deletions

View File

@@ -167,6 +167,11 @@ CurvesGeometry &GPFrame::strokes_as_curves()
return CurvesGeometry::wrap(*this->strokes);
}
const CurvesGeometry &GPFrame::strokes_as_curves() const
{
return CurvesGeometry::wrap(*this->strokes);
}
int GPFrame::strokes_num() const
{
if (this->strokes == nullptr) {

View File

@@ -255,6 +255,7 @@ class GPFrame : public ::GPFrame {
bool operator==(const GPFrame &other) const;
CurvesGeometry &strokes_as_curves();
const CurvesGeometry &strokes_as_curves() const;
int strokes_num() const;
int points_num() const;