90 bool OnPan(
int dx,
int dy);
102 void OnScrollBy(
int dx,
int dy,
bool accumulative);
104 virtual void OnMessageReceived(
TBMessage *msg);
106 bool StopIfAlmostStill();
107 void StopOrSnapScroll();
109 void AdjustToSnappingAndScroll(
float ppms_x,
float ppms_y);
110 void Scroll(
float start_speed_ppms_x,
float start_speed_ppms_y);
111 void GetTargetChildTranslation(
int &x,
int &y)
const;
112 void GetTargetScrollXY(
int &x,
int &y)
const;
117 float m_pan_dx, m_pan_dy;
118 float m_previous_pan_dx, m_previous_pan_dy;
119 double m_pan_time_ms;
120 double m_pan_delta_time_ms;
121 float m_scroll_start_speed_ppms_x, m_scroll_start_speed_ppms_y;
122 double m_scroll_start_ms;
123 float m_scroll_duration_x_ms, m_scroll_duration_y_ms;
124 int m_scroll_start_scroll_x, m_scroll_start_scroll_y;
125 float m_pan_power_multiplier_x;
126 float m_pan_power_multiplier_y;
127 int m_expected_scroll_x;
128 int m_expected_scroll_y;
133 #endif // TB_SCROLLER_H
TBMessageHandler handles a list of pending messages posted to itself.
Definition: tb_msg.h:72
TBMessage is a message created and owned by TBMessageHandler.
Definition: tb_msg.h:47