1 2 3 4 5 6 7 8 9 10 11 12
#include <escher/scroll_view_data_source.h> bool ScrollViewDataSource::setOffset(KDPoint offset) { if (offset != m_offset) { m_offset = offset; if (m_delegate) { m_delegate->scrollViewDidChangeOffset(this); } return true; } return false; }