Numworks Epsilon
1.4.1
Graphing Calculator Operating System
scroll_view_data_source.cpp
Go to the documentation of this file.
1
#include <
escher/scroll_view_data_source.h
>
2
3
ScrollViewDataSource::ScrollViewDataSource
() :
4
m_offset(
KDPointZero
)
5
{
6
}
7
8
KDPoint
ScrollViewDataSource::offset
()
const
{
9
return
m_offset;
10
}
11
12
bool
ScrollViewDataSource::setOffset
(
KDPoint
offset) {
13
if
(
offset
!= m_offset) {
14
m_offset =
offset
;
15
return
true
;
16
}
17
return
false
;
18
}
19
ScrollViewDataSource::offset
KDPoint offset() const
Definition:
scroll_view_data_source.cpp:8
ScrollViewDataSource::ScrollViewDataSource
ScrollViewDataSource()
Definition:
scroll_view_data_source.cpp:3
ScrollViewDataSource::setOffset
bool setOffset(KDPoint offset)
Definition:
scroll_view_data_source.cpp:12
scroll_view_data_source.h
KDPointZero
constexpr KDPoint KDPointZero
Definition:
point.h:25
KDPoint
Definition:
point.h:6
epsilon
escher
src
scroll_view_data_source.cpp
Generated by
1.8.14