本文整理汇总了C++中GestureManager类的典型用法代码示例。如果您正苦于以下问题:C++ GestureManager类的具体用法?C++ GestureManager怎么用?C++ GestureManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了GestureManager类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
bool
ChartControl::OnMouseMove(PixelPoint p, unsigned keys)
{
if (dragging)
gestures.Update(p);
return true;
}
示例2:
bool
FlarmTrafficControl::OnMouseDown(PixelScalar x, PixelScalar y)
{
gestures.Start(x, y, Layout::Scale(20));
return true;
}
示例3: SetCapture
bool
ChartControl::OnMouseDown(PixelPoint p)
{
dragging = true;
SetCapture();
gestures.Start(p, Layout::Scale(20));
return true;
}
示例4:
bool
FlarmTrafficControl::on_mouse_move(int x, int y, unsigned keys)
{
if (XCSoarInterface::SettingsComputer().EnableGestures)
gestures.Update(x, y);
return true;
}
示例5: OnGesture
bool
CrossSectionControl::on_mouse_up(int x, int y)
{
const TCHAR* gesture = gestures.Finish();
if (gesture != NULL)
OnGesture(gesture);
return true;
}
示例6: OnGesture
bool
CrossSectionControl::OnMouseUp(PixelScalar x, PixelScalar y)
{
const TCHAR* gesture = gestures.Finish();
if (gesture != NULL)
OnGesture(gesture);
return true;
}
示例7: SetCapture
bool
FlarmTrafficControl::OnMouseDown(PixelScalar x, PixelScalar y)
{
if (!dragging) {
dragging = true;
SetCapture();
gestures.Start(x, y, Layout::Scale(20));
}
return true;
}
示例8: SelectNearTarget
bool
FlarmTrafficControl::OnMouseUp(PixelScalar x, PixelScalar y)
{
const TCHAR *gesture = gestures.Finish();
if (gesture && on_mouse_gesture(gesture))
return true;
if (!WarningMode())
SelectNearTarget(x, y, Layout::Scale(15));
return true;
}
示例9: ReleaseCapture
bool
ChartControl::OnMouseUp(PixelPoint p)
{
if (dragging) {
dragging = false;
ReleaseCapture();
const TCHAR *gesture = gestures.Finish();
if (gesture != NULL)
analysis_widget.OnGesture(gesture);
}
return true;
}
示例10: SelectNearTarget
bool
FlarmTrafficControl::on_mouse_up(int x, int y)
{
if (XCSoarInterface::SettingsComputer().EnableGestures) {
const char* gesture = gestures.Finish();
if (gesture && on_mouse_gesture(gesture))
return true;
}
if (!WarningMode())
SelectNearTarget(x, y, Layout::Scale(15));
return true;
}
示例11: StopDragging
bool
FlarmTrafficControl::OnMouseUp(PixelScalar x, PixelScalar y)
{
if (dragging) {
StopDragging();
const TCHAR *gesture = gestures.Finish();
if (gesture && OnMouseGesture(gesture))
return true;
}
if (!WarningMode())
SelectNearTarget(x, y, Layout::Scale(15));
return true;
}
示例12:
bool
CrossSectionControl::on_mouse_move(int x, int y, unsigned keys)
{
gestures.Update(x, y);
return true;
}
示例13:
bool
CrossSectionControl::OnMouseMove(PixelScalar x, PixelScalar y, unsigned keys)
{
gestures.Update(x, y);
return true;
}