AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
APointerIndex Class Reference

Wrapper class that stores either mouse button index or finger index. More...

Detailed Description

Wrapper class that stores either mouse button index or finger index.

Examples
/github/workspace/aui.views/src/AUI/View/AView.h.

Public Member Functions

bool isButton () const noexcept
 
bool isFinger () const noexcept
 
AOptional< AInput::Key > button () const noexcept
 
AOptional< int > finger () const noexcept
 
auto operator<=> (const APointerIndex &rhs) const noexcept=default
 
constexpr int rawValue () const noexcept
 

Static Public Member Functions

static constexpr APointerIndex button (AInput::Key button)
 
static constexpr APointerIndex finger (int fingerIndex)
 

Member Function Documentation

◆ button()

AOptional< AInput::Key > APointerIndex::button ( ) const
inlinenoexcept
Returns
(mouse) button, if it is.
Examples
/github/workspace/aui.views/src/AUI/View/AView.h.

◆ finger()

AOptional< int > APointerIndex::finger ( ) const
inlinenoexcept
Returns
finger index, if it is.

◆ isButton()

bool APointerIndex::isButton ( ) const
inlinenoexcept
Returns
true if (mouse) button.

◆ isFinger()

bool APointerIndex::isFinger ( ) const
inlinenoexcept
Returns
true if finger index.

#include <AUI/Event/APointerIndex.h>


The documentation for this class was generated from the following file: