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

Method getPrevious

src/doc/layer.cpp:45–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45Layer* Layer::getPrevious() const
46{
47 if (m_parent != NULL) {
48 LayerConstIterator it =
49 std::find(m_parent->getLayerBegin(),
50 m_parent->getLayerEnd(), this);
51
52 if (it != m_parent->getLayerEnd() &&
53 it != m_parent->getLayerBegin()) {
54 it--;
55 return *it;
56 }
57 }
58 return NULL;
59}
60
61Layer* Layer::getNext() const
62{

Callers 6

onEnabledMethod · 0.80
onExecuteMethod · 0.80
MoveLayerMethod · 0.80
RemoveLayerMethod · 0.80
onBeforeRemoveLayerMethod · 0.80
onAfterRemoveLayerMethod · 0.80

Calls 2

getLayerBeginMethod · 0.80
getLayerEndMethod · 0.80

Tested by

no test coverage detected