Clapkit
Loading...
Searching...
No Matches
CKEvent Struct Reference

Defines an event raised by the framework, mostly for user actions. More...

#include <ckTypes.h>

Public Member Functions

 CKEvent (CKEventType type)
 
 CKEvent (CKEventType type, CKPoint point)
 
void fillFromOS (EventRecord e)
 

Public Attributes

CKEventType type
 
CKPoint point
 
CKMouseButton mouseButton
 
bool shiftDown = false
 
bool cmdDown = false
 
bool optDown = false
 
bool ctrlDown = false
 
char key
 
char character
 
const CKWindowwindow = nullptr
 
const CKControlcontrol = nullptr
 

Detailed Description

Defines an event raised by the framework, mostly for user actions.

Constructor & Destructor Documentation

◆ CKEvent() [1/2]

CKEvent::CKEvent ( CKEventType  type)
inline

◆ CKEvent() [2/2]

CKEvent::CKEvent ( CKEventType  type,
CKPoint  point 
)
inline

Member Function Documentation

◆ fillFromOS()

void CKEvent::fillFromOS ( EventRecord  e)
inline

Member Data Documentation

◆ character

char CKEvent::character

◆ cmdDown

bool CKEvent::cmdDown = false

◆ control

const CKControl* CKEvent::control = nullptr

◆ ctrlDown

bool CKEvent::ctrlDown = false

◆ key

char CKEvent::key

◆ mouseButton

CKMouseButton CKEvent::mouseButton

◆ optDown

bool CKEvent::optDown = false

◆ point

CKPoint CKEvent::point

◆ shiftDown

bool CKEvent::shiftDown = false

◆ type

CKEventType CKEvent::type

◆ window

const CKWindow* CKEvent::window = nullptr

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