touchgfx::ScrollableContainer::doScroll() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXtouchgfx::ScrollableContainer::doScroll()

touchgfx::ScrollableContainer::doScroll() method

@fn virtual bool ScrollableContainer::doScroll(int16_t deltaX, int16_t deltaY); Method to actually scroll the container. Method to actually scroll the container. Passing negative values will scroll the items in the ScrollableContainer up / left, whereas positive values will scroll items down / right. If the distance is larger than allowed, the deltas are adjusted down to make sure the contained items stay inside view.

Syntax

virtual bool doScroll(int16_t deltaX,     int16_t deltaY);

Arguments

deltaX

The horizontal amount to scroll.

deltaY

The vertical amount to scroll.

Return value

did the container actually scroll. The call doScroll(0,0) will always return false.

References

LocationText
ScrollableContainer.hpp:474
virtual bool doScroll(int16_t deltaX, int16_t deltaY);