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

Method getNext

src/doc/layer.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Layer* Layer::getNext() const
62{
63 if (m_parent != NULL) {
64 LayerConstIterator it =
65 std::find(m_parent->getLayerBegin(),
66 m_parent->getLayerEnd(), this);
67
68 if (it != m_parent->getLayerEnd()) {
69 it++;
70 if (it != m_parent->getLayerEnd())
71 return *it;
72 }
73 }
74 return NULL;
75}
76
77std::shared_ptr<Cel> Layer::cel(frame_t frame) const
78{

Callers 5

onBeforeRemoveLayerMethod · 0.80
onAfterRemoveLayerMethod · 0.80
layers_range.cppFile · 0.80
iteratorMethod · 0.80
cels_range.cppFile · 0.80

Calls 2

getLayerBeginMethod · 0.80
getLayerEndMethod · 0.80

Tested by

no test coverage detected