MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / moveChildren

Method moveChildren

src/components/AnimationComponent.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void AnimationComponent::moveChildren(int offsetx, int offsety)
85{
86 Eigen::Vector3f move((float)offsetx, (float)offsety, 0);
87 for(unsigned int i = 0; i < mChildren.size(); i++)
88 {
89 GuiComponent* comp = mChildren.at(i);
90 comp->setPosition(comp->getPosition() + move);
91 }
92}
93
94void AnimationComponent::setChildrenOpacity(unsigned char opacity)
95{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
setPositionMethod · 0.45
getPositionMethod · 0.45

Tested by

no test coverage detected