neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::keyboard_event Class Reference

#include <window_events.hpp>

Public Types

typedef keyboard_event abstract_type
 
typedef neolib::variant< neogfx::scan_code_e, neogfx::key_code_e, neogfx::key_modifiers_e, stringparameter_type
 

Public Member Functions

 keyboard_event (keyboard_event_type aType, const parameter_type &aParameter1=parameter_type(), const parameter_type &aParameter2=parameter_type(), const parameter_type &aParameter3=parameter_type())
 
keyboard_event_type type () const
 
neogfx::scan_code_e scan_code () const
 
neogfx::key_code_e key_code () const
 
neogfx::key_modifiers_e key_modifiers () const
 
std::string text () const
 

Detailed Description

Definition at line 195 of file window_events.hpp.

Member Typedef Documentation

◆ abstract_type

◆ parameter_type

Constructor & Destructor Documentation

◆ keyboard_event()

neogfx::keyboard_event::keyboard_event ( keyboard_event_type  aType,
const parameter_type aParameter1 = parameter_type(),
const parameter_type aParameter2 = parameter_type(),
const parameter_type aParameter3 = parameter_type() 
)
inline

Definition at line 202 of file window_events.hpp.

Member Function Documentation

◆ key_code()

neogfx::key_code_e neogfx::keyboard_event::key_code ( ) const
inline

Definition at line 215 of file window_events.hpp.

◆ key_modifiers()

neogfx::key_modifiers_e neogfx::keyboard_event::key_modifiers ( ) const
inline

Definition at line 219 of file window_events.hpp.

◆ scan_code()

neogfx::scan_code_e neogfx::keyboard_event::scan_code ( ) const
inline

Definition at line 211 of file window_events.hpp.

◆ text()

std::string neogfx::keyboard_event::text ( ) const
inline

Definition at line 223 of file window_events.hpp.

◆ type()

keyboard_event_type neogfx::keyboard_event::type ( ) const
inline

Definition at line 207 of file window_events.hpp.


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