Blender  V2.93
Public Member Functions | Protected Attributes | List of all members
GHOST_EventKey Class Reference

#include <GHOST_EventKey.h>

Inherits GHOST_Event.

Public Member Functions

 GHOST_EventKey (GHOST_TUns64 msec, GHOST_TEventType type, GHOST_IWindow *window, GHOST_TKey key, bool is_repeat)
 
 GHOST_EventKey (GHOST_TUns64 msec, GHOST_TEventType type, GHOST_IWindow *window, GHOST_TKey key, char ascii, const char utf8_buf[6], bool is_repeat)
 
- Public Member Functions inherited from GHOST_Event
 GHOST_Event (GHOST_TUns64 msec, GHOST_TEventType type, GHOST_IWindow *window)
 
GHOST_TEventType getType ()
 
GHOST_TUns64 getTime ()
 
GHOST_IWindowgetWindow ()
 
GHOST_TEventDataPtr getData ()
 
- Public Member Functions inherited from GHOST_IEvent
virtual ~GHOST_IEvent ()
 

Protected Attributes

GHOST_TEventKeyData m_keyEventData
 
- Protected Attributes inherited from GHOST_Event
GHOST_TEventType m_type
 
GHOST_TUns64 m_time
 
GHOST_IWindowm_window
 
GHOST_TEventDataPtr m_data
 

Detailed Description

Key event.

Definition at line 34 of file GHOST_EventKey.h.

Constructor & Destructor Documentation

◆ GHOST_EventKey() [1/2]

GHOST_EventKey::GHOST_EventKey ( GHOST_TUns64  msec,
GHOST_TEventType  type,
GHOST_IWindow window,
GHOST_TKey  key,
bool  is_repeat 
)
inline

Constructor.

Parameters
msecThe time this event was generated.
typeThe type of key event.
keyThe key code of the key.

Definition at line 42 of file GHOST_EventKey.h.

References GHOST_TEventKeyData::ascii, GHOST_TEventKeyData::is_repeat, GHOST_TEventKeyData::key, GHOST_Event::m_data, m_keyEventData, and GHOST_TEventKeyData::utf8_buf.

◆ GHOST_EventKey() [2/2]

GHOST_EventKey::GHOST_EventKey ( GHOST_TUns64  msec,
GHOST_TEventType  type,
GHOST_IWindow window,
GHOST_TKey  key,
char  ascii,
const char  utf8_buf[6],
bool  is_repeat 
)
inline

Constructor.

Parameters
msecThe time this event was generated.
typeThe type of key event.
keyThe key code of the key.
asciiThe ascii code for the key event.

Definition at line 63 of file GHOST_EventKey.h.

References GHOST_TEventKeyData::ascii, GHOST_TEventKeyData::is_repeat, GHOST_TEventKeyData::key, GHOST_Event::m_data, m_keyEventData, and GHOST_TEventKeyData::utf8_buf.

Member Data Documentation

◆ m_keyEventData

GHOST_TEventKeyData GHOST_EventKey::m_keyEventData
protected

The key event data.

Definition at line 84 of file GHOST_EventKey.h.

Referenced by GHOST_EventKey().


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