MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyScrollChangePosition

Method notifyScrollChangePosition

Demos/Demo_Gui/ColourWindow.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54
55 void ColourWindow::notifyScrollChangePosition(MyGUI::ScrollBar* _sender, size_t _position)
56 {
57 MyGUI::Colour colour(
58 float(mSliderRed->getScrollPosition()) / float(mSliderRed->getScrollRange()),
59 float(mSliderGreen->getScrollPosition()) / float(mSliderGreen->getScrollRange()),
60 float(mSliderBlue->getScrollPosition()) / float(mSliderBlue->getScrollRange()));
61
62 mColour->setColour(colour);
63 }
64
65 void ColourWindow::notifyEditSelectAccept(MyGUI::EditBox* _sender)
66 {

Callers

nothing calls this directly

Calls 3

getScrollPositionMethod · 0.80
getScrollRangeMethod · 0.80
setColourMethod · 0.45

Tested by

no test coverage detected