MCPcopy Create free account
hub / github.com/axmolengine/axmol / changeRotation

Method changeRotation

tests/cpp-tests/Source/DrawNodeTest/DrawNodeTest.cpp:1584–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1582}
1583
1584void DrawNodeBaseTest::changeRotation(ax::Object* pSender, ax::ui::Slider::EventType type)
1585{
1586 if (type == ax::ui::Slider::EventType::ON_PERCENTAGE_CHANGED)
1587 {
1588 slider[sliderType::Rotation] = dynamic_cast<ax::ui::Slider*>(pSender);
1589 sliderValue[sliderType::Rotation] = slider[sliderType::Rotation]->getPercent() * 3.6;
1590 sliderLabel[sliderType::Rotation]->setString("Rotation: (" +
1591 Value(sliderValue[sliderType::Rotation]).asString() + ")");
1592 }
1593}
1594
1595void DrawNodeBaseTest::changeThickness(ax::Object* pSender, ax::ui::Slider::EventType type)
1596{

Callers

nothing calls this directly

Calls 4

asStringMethod · 0.80
ValueClass · 0.50
getPercentMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected