Numworks Epsilon  1.4.1
Graphing Calculator Operating System
Ion::Events::Event Class Reference

#include <events.h>

Public Member Functions

constexpr Event ()
 
constexpr Event (int i)
 
 Event (Keyboard::Key key, bool shift, bool alpha)
 
bool operator== (const Event &other) const
 
bool operator!= (const Event &other) const
 
const char * text () const
 
bool hasText () const
 
bool isKeyboardEvent () const
 
bool isSpecialEvent () const
 
bool isDefined () const
 

Static Public Member Functions

static constexpr Event PlainKey (Keyboard::Key k)
 
static constexpr Event ShiftKey (Keyboard::Key k)
 
static constexpr Event AlphaKey (Keyboard::Key k)
 
static constexpr Event ShiftAlphaKey (Keyboard::Key k)
 
static constexpr Event Special (int i)
 

Static Public Attributes

static constexpr int PageSize = Keyboard::NumberOfKeys
 

Detailed Description

Definition at line 9 of file events.h.

Constructor & Destructor Documentation

◆ Event() [1/3]

constexpr Ion::Events::Event::Event ( )
inline

Definition at line 17 of file events.h.

◆ Event() [2/3]

constexpr Ion::Events::Event::Event ( int  i)
inline

Definition at line 18 of file events.h.

◆ Event() [3/3]

Ion::Events::Event::Event ( Keyboard::Key  key,
bool  shift,
bool  alpha 
)

Definition at line 32 of file events.cpp.

Member Function Documentation

◆ AlphaKey()

static constexpr Event Ion::Events::Event::AlphaKey ( Keyboard::Key  k)
inlinestatic

Definition at line 13 of file events.h.

◆ hasText()

bool Ion::Events::Event::hasText ( ) const

Definition at line 122 of file events.cpp.

◆ isDefined()

bool Ion::Events::Event::isDefined ( ) const

Definition at line 126 of file events.cpp.

◆ isKeyboardEvent()

bool Ion::Events::Event::isKeyboardEvent ( ) const
inline

Definition at line 33 of file events.h.

◆ isSpecialEvent()

bool Ion::Events::Event::isSpecialEvent ( ) const
inline

Definition at line 34 of file events.h.

◆ operator!=()

bool Ion::Events::Event::operator!= ( const Event other) const
inline

Definition at line 28 of file events.h.

◆ operator==()

bool Ion::Events::Event::operator== ( const Event other) const
inline

Definition at line 25 of file events.h.

◆ PlainKey()

static constexpr Event Ion::Events::Event::PlainKey ( Keyboard::Key  k)
inlinestatic

Definition at line 11 of file events.h.

◆ ShiftAlphaKey()

static constexpr Event Ion::Events::Event::ShiftAlphaKey ( Keyboard::Key  k)
inlinestatic

Definition at line 14 of file events.h.

◆ ShiftKey()

static constexpr Event Ion::Events::Event::ShiftKey ( Keyboard::Key  k)
inlinestatic

Definition at line 12 of file events.h.

◆ Special()

static constexpr Event Ion::Events::Event::Special ( int  i)
inlinestatic

Definition at line 15 of file events.h.

◆ text()

const char * Ion::Events::Event::text ( ) const

Definition at line 61 of file events.cpp.

Member Data Documentation

◆ PageSize

constexpr int Ion::Events::Event::PageSize = Keyboard::NumberOfKeys
static

Definition at line 36 of file events.h.


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