![]() |
The ZX Ecosystem v5.1.0;_GUI_v3.1.0
|
Provides support in the ZX ecosystem to the mouse.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Namespaces | |
| namespace | zxeco |
| The main namespace of the library, that spans across all the zx modules. | |
Classes | |
| class | zxeco::PointingStatus |
| Status of the pointing device. More... | |
| class zxeco::PointingStatus |
Status of the pointing device.
Contains all the info about the state of the mouse.
Definition at line 38 of file ZXPointing.h.
Public Attributes | |
| PixelCoord | x |
| Position of the pointing device on the zx screen. More... | |
| PixelCoord | y |
| Position of the pointing device on the zx screen. More... | |
| bool | buttonleft |
| State (TRUE->pressed) of main buttons. More... | |
| bool | buttonright |
| State (TRUE->pressed) of main buttons. More... | |
Public Member Functions | |
| PointingStatus (PixelCoord xx=0, PixelCoord yy=0, bool left=false, bool right=false) | |
| Default constructor. More... | |
| bool | clicked (void) const noexcept |
| < Return TRUE if any button has been clicked. More... | |
| bool | operator== (const PointingStatus &oth) const noexcept |
| < Return TRUE if both are exactly the same. More... | |
| bool | operator!= (const PointingStatus &oth) const noexcept |
| < Return TRUE if there is any difference between them. More... | |
| std::string | to_string (void) const |
| < Return a text information of the status. More... | |
|
inline |
Default constructor.
Definition at line 49 of file ZXPointing.h.
|
inlinenoexcept |
< Return TRUE if any button has been clicked.
Definition at line 55 of file ZXPointing.h.
|
inlinenoexcept |
< Return TRUE if both are exactly the same.
Definition at line 59 of file ZXPointing.h.
|
inlinenoexcept |
< Return TRUE if there is any difference between them.
Definition at line 65 of file ZXPointing.h.
|
inline |
< Return a text information of the status.
Definition at line 69 of file ZXPointing.h.
| PixelCoord zxeco::PointingStatus::x |
Position of the pointing device on the zx screen.
Definition at line 41 of file ZXPointing.h.
| PixelCoord zxeco::PointingStatus::y |
Position of the pointing device on the zx screen.
Definition at line 41 of file ZXPointing.h.
| bool zxeco::PointingStatus::buttonleft |
State (TRUE->pressed) of main buttons.
Definition at line 45 of file ZXPointing.h.
| bool zxeco::PointingStatus::buttonright |
State (TRUE->pressed) of main buttons.
Definition at line 45 of file ZXPointing.h.