The ZX Ecosystem v5.1.0;_GUI_v3.1.0
Loading...
Searching...
No Matches
Namespaces | Classes
Mouse support

Description

Provides support in the ZX ecosystem to the mouse.

http://jafma.net

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.

Collaboration diagram for Mouse support:

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 Documentation

◆ zxeco::PointingStatus

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...
 

Constructor & Destructor Documentation

◆ PointingStatus()

zxeco::PointingStatus::PointingStatus ( PixelCoord  xx = 0,
PixelCoord  yy = 0,
bool  left = false,
bool  right = false 
)
inline

Default constructor.

Definition at line 49 of file ZXPointing.h.

Member Function Documentation

◆ clicked()

bool zxeco::PointingStatus::clicked ( void  ) const
inlinenoexcept

< Return TRUE if any button has been clicked.

Definition at line 55 of file ZXPointing.h.

◆ operator==()

bool zxeco::PointingStatus::operator== ( const PointingStatus oth) const
inlinenoexcept

< Return TRUE if both are exactly the same.

Definition at line 59 of file ZXPointing.h.

◆ operator!=()

bool zxeco::PointingStatus::operator!= ( const PointingStatus oth) const
inlinenoexcept

< Return TRUE if there is any difference between them.

Definition at line 65 of file ZXPointing.h.

◆ to_string()

std::string zxeco::PointingStatus::to_string ( void  ) const
inline

< Return a text information of the status.

Definition at line 69 of file ZXPointing.h.

Member Data Documentation

◆ x

PixelCoord zxeco::PointingStatus::x

Position of the pointing device on the zx screen.

Definition at line 41 of file ZXPointing.h.

◆ y

PixelCoord zxeco::PointingStatus::y

Position of the pointing device on the zx screen.

Definition at line 41 of file ZXPointing.h.

◆ buttonleft

bool zxeco::PointingStatus::buttonleft

State (TRUE->pressed) of main buttons.

Definition at line 45 of file ZXPointing.h.

◆ buttonright

bool zxeco::PointingStatus::buttonright

State (TRUE->pressed) of main buttons.

Definition at line 45 of file ZXPointing.h.