返回介绍

QWSMouseHandler Class

发布于 2019-10-04 15:04:14 字数 2209 浏览 1073 评论 0 收藏 0

The QWSMouseHandler class is a mouse driver/handler for Qt/Embedded. More...

#include <qwsmouse_qws.h>

Inherits QObject.

List of all member functions.

Public Members

  • QWSMouseHandler ()
  • virtual ~QWSMouseHandler ()
  • virtual void clearCalibration ()
  • virtual void calibrate ( QWSPointerCalibrationData * )
  • virtual void getCalibration ( QWSPointerCalibrationData * )

Protected Members

  • void mouseChanged ( constQPoint&pos, intbstate )

Detailed Description

The QWSMouseHandler class is a mouse driver/handler for Qt/Embedded.

The mouse driver/handler handles events from system devices and generates mouse events.

A QWSMouseHandler will usually open some system device in its constructor, create a QSocketNotifier on that opened device and when it receives data, it will call mouseChanged() to send the event to Qt/Embedded for relaying to clients.

See also Qt/Embedded.


Member Function Documentation

QWSMouseHandler::QWSMouseHandler ()

Constructs a mouse handler. This becomes the primary mouse handler.

Note that once created, mouse handlers are controlled by the system and should not be deleted.

QWSMouseHandler::~QWSMouseHandler () [virtual]

Destroys the mouse handler. You should not call this directly.

void QWSMouseHandler::calibrate ( QWSPointerCalibrationData * ) [virtual]

This method is reimplemented in the calibrated mouse handler to set calibration information (from, for instance, the QPE calibration screen). This version does nothing.

void QWSMouseHandler::clearCalibration () [virtual]

This method is reimplemented in the calibrated mouse handler to clear calibration information. This version does nothing.

void QWSMouseHandler::mouseChanged ( constQPoint&pos, intbstate ) [protected]

When a mouse event occurs this function is called with the mouse's position in pos, and the state of its buttons in bstate.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文