1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <escher/scroll_view_data_source.h> ScrollViewDataSource::ScrollViewDataSource() : m_offset(KDPointZero) { } KDPoint ScrollViewDataSource::offset() const { return m_offset; } bool ScrollViewDataSource::setOffset(KDPoint offset) { if (offset != m_offset) { m_offset = offset; return true; } return false; }