QWSMouseHandler(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QWSMouseHandler β€” the 3qt manual page, bestie edition πŸ’–

Okay so we're doing QWSMouseHandler(3qt) today and honestly? iconic. This is the mouse driver for Qt/Embedded, and it's giving "quietly holding the whole pointer situation together" energy. Let's get into it. πŸ¦‹


✨ NAME ✨

QWSMouseHandler β€” mouse driver for Qt/Embedded. That's the whole vibe. 🐭


🌸 SYNOPSIS 🌸

#include <qmouse_qws.h>

πŸŽ€ Public Members πŸŽ€

QWSMouseHandler ( const QString & driver = QString::null, const QString
    & device = QString::null )
virtual ~QWSMouseHandler ()
virtual void clearCalibration ()
virtual void calibrate ( QWSPointerCalibrationData * )
void limitToScreen ( QPoint & pt )
void mouseChanged ( const QPoint & pos, int bstate )
const QPoint & pos () const

πŸ’… DESCRIPTION πŸ’…

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

The mouse driver handles events from system devices and generates mouse events. That's literally its whole job and it does it flawlessly, no cap. πŸ‘‘

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. So like: open device ➑️ notifier ➑️ data arrives ➑️ mouseChanged() ➑️ clients get the tea. A whole pipeline, fr fr. 🌈

See also Qt/Embedded.


🫢 MEMBER FUNCTION DOCUMENTATION 🫢

QWSMouseHandler::QWSMouseHandler ( const QString & driver = QString::null, const QString & device = QString::null )

Constructs a mouse handler. This becomes the primary mouse handler. Main character energy, obviously. ⭐

Note that once created, mouse handlers are controlled by the system and should not be deleted. Not yours to delete, bestie. Hands off. πŸ™ˆ

The driver and device arguments are not used by this base class. They're just there, sitting pretty, doing nothing. We love a decorative parameter. πŸ’€

QWSMouseHandler::~QWSMouseHandler () [virtual]

Destroys the mouse handler. You should not call this directly. Please don't. The system handles it. 😭

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

This method is reimplemented in the calibrated mouse handler to set calibration information (from, for instance, the Qtopia calibration screen). This version does nothing. Literally nothing. A beautiful, peaceful void. πŸ•³οΈβœ¨

void QWSMouseHandler::clearCalibration () [virtual]

This method is reimplemented in the calibrated mouse handler to clear calibration information. This version does nothing. Same energy as above, zero thoughts, head empty. 🎈

void QWSMouseHandler::limitToScreen ( QPoint & pt )

Ensures that the given point, pt is within the screen's boundaries, changing pt if necessary. It's a vibe check for coordinates β€” if you're off-screen, you're getting pulled back in. 🫰

void QWSMouseHandler::mouseChanged ( const QPoint & pos, int bstate )

When a mouse event occurs this function is called with the mouse's position in pos, and the state of its buttons in bstate. That's the moment the magic happens, bestie. πŸ”₯

const QPoint & QWSMouseHandler::pos () const

Returns the mouse position. Where's the cursor? Right here, babes. πŸ“


πŸ”— SEE ALSO πŸ”—


Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. Read the license, it's the rules. πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically from the source code. Not a human, just ✨the machine✨ doing its thing.


πŸ’€ BUGS πŸ’€

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. (Good bug reports are also highkey a love language, just saying. πŸ“)

The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. Not officially supported?? Noted. πŸ™ˆ

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qwsmousehandler.3qt) and the Qt version (3.3.8). Give them the receipts so they can actually fix it. 🧚


And that's the whole page, bestie!! Written by Trolltech AS, dated 2 February 2007, and living its life as the Qt 3.3.8 era QWSMouseHandler(3qt) man page. Go forth and handle those mouse events. Periodt. πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from