Blender  V2.93
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
GHOST_ModifierKeys Struct Reference

#include <GHOST_ModifierKeys.h>

Public Member Functions

 GHOST_ModifierKeys ()
 
 ~GHOST_ModifierKeys ()
 
bool get (GHOST_TModifierKeyMask mask) const
 
void set (GHOST_TModifierKeyMask mask, bool down)
 
void clear ()
 
bool equals (const GHOST_ModifierKeys &keys) const
 

Static Public Member Functions

static GHOST_TKey getModifierKeyCode (GHOST_TModifierKeyMask mask)
 

Public Attributes

GHOST_TUns8 m_LeftShift: 1
 
GHOST_TUns8 m_RightShift: 1
 
GHOST_TUns8 m_LeftAlt: 1
 
GHOST_TUns8 m_RightAlt: 1
 
GHOST_TUns8 m_LeftControl: 1
 
GHOST_TUns8 m_RightControl: 1
 
GHOST_TUns8 m_OS: 1
 

Detailed Description

Stores the state of modifier keys. Discriminates between left and right modifier keys.

Definition at line 33 of file GHOST_ModifierKeys.h.

Constructor & Destructor Documentation

◆ GHOST_ModifierKeys()

GHOST_ModifierKeys::GHOST_ModifierKeys ( )

Constructor.

Copyright (C) 2001 NaN Technologies B.V.

Definition at line 30 of file GHOST_ModifierKeys.cpp.

References clear().

◆ ~GHOST_ModifierKeys()

GHOST_ModifierKeys::~GHOST_ModifierKeys ( )

Definition at line 35 of file GHOST_ModifierKeys.cpp.

Member Function Documentation

◆ clear()

void GHOST_ModifierKeys::clear ( void  )

Sets the state of all modifier keys to up.

Definition at line 123 of file GHOST_ModifierKeys.cpp.

References m_LeftAlt, m_LeftControl, m_LeftShift, m_OS, m_RightAlt, m_RightControl, and m_RightShift.

Referenced by GHOST_ModifierKeys(), and GHOST_SystemWin32::s_wndProc().

◆ equals()

bool GHOST_ModifierKeys::equals ( const GHOST_ModifierKeys keys) const

Determines whether to modifier key states are equal.

Parameters
keysThe modifier key state to compare to.
Returns
Indication of equality.

Definition at line 134 of file GHOST_ModifierKeys.cpp.

References m_LeftAlt, m_LeftControl, m_LeftShift, m_OS, m_RightAlt, m_RightControl, and m_RightShift.

◆ get()

bool GHOST_ModifierKeys::get ( GHOST_TModifierKeyMask  mask) const

◆ getModifierKeyCode()

GHOST_TKey GHOST_ModifierKeys::getModifierKeyCode ( GHOST_TModifierKeyMask  mask)
static

◆ set()

void GHOST_ModifierKeys::set ( GHOST_TModifierKeyMask  mask,
bool  down 
)

Member Data Documentation

◆ m_LeftAlt

GHOST_TUns8 GHOST_ModifierKeys::m_LeftAlt

Bitfield that stores the appropriate key state.

Definition at line 79 of file GHOST_ModifierKeys.h.

Referenced by clear(), equals(), get(), and set().

◆ m_LeftControl

GHOST_TUns8 GHOST_ModifierKeys::m_LeftControl

Bitfield that stores the appropriate key state.

Definition at line 83 of file GHOST_ModifierKeys.h.

Referenced by clear(), equals(), get(), and set().

◆ m_LeftShift

GHOST_TUns8 GHOST_ModifierKeys::m_LeftShift

Bitfield that stores the appropriate key state.

Definition at line 75 of file GHOST_ModifierKeys.h.

Referenced by clear(), equals(), get(), and set().

◆ m_OS

GHOST_TUns8 GHOST_ModifierKeys::m_OS

Bitfield that stores the appropriate key state.

Definition at line 87 of file GHOST_ModifierKeys.h.

Referenced by clear(), equals(), get(), and set().

◆ m_RightAlt

GHOST_TUns8 GHOST_ModifierKeys::m_RightAlt

Bitfield that stores the appropriate key state.

Definition at line 81 of file GHOST_ModifierKeys.h.

Referenced by clear(), equals(), get(), and set().

◆ m_RightControl

GHOST_TUns8 GHOST_ModifierKeys::m_RightControl

Bitfield that stores the appropriate key state.

Definition at line 85 of file GHOST_ModifierKeys.h.

Referenced by clear(), equals(), get(), and set().

◆ m_RightShift

GHOST_TUns8 GHOST_ModifierKeys::m_RightShift

Bitfield that stores the appropriate key state.

Definition at line 77 of file GHOST_ModifierKeys.h.

Referenced by clear(), equals(), get(), and set().


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