MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / createCopy

Method createCopy

src/doc/cel.cpp:37–43  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

35
36// static
37std::shared_ptr<Cel> Cel::createCopy(std::shared_ptr<const Cel> other)
38{
39 auto cel = std::make_shared<Cel>(other->frame(), ImageRef(Image::createCopy(other->image())));
40 cel->setPosition(other->position());
41 cel->setOpacity(other->opacity());
42 return cel;
43}
44
45// static
46std::shared_ptr<Cel> Cel::createLink(std::shared_ptr<const Cel> other)

Callers

nothing calls this directly

Calls 6

frameMethod · 0.45
imageMethod · 0.45
setPositionMethod · 0.45
positionMethod · 0.45
setOpacityMethod · 0.45
opacityMethod · 0.45

Tested by

no test coverage detected