Blender V5.0
GHOST_ModifierKeys Struct Reference

#include <GHOST_ModifierKeys.hh>

Public Member Functions

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

Static Public Member Functions

static GHOST_TKey getModifierKeyCode (GHOST_TModifierKey mask)

Public Attributes

uint8_t left_shift_: 1
uint8_t right_shift_: 1
uint8_t left_alt_: 1
uint8_t right_alt_: 1
uint8_t left_control_: 1
uint8_t right_control_: 1
uint8_t left_os_: 1
uint8_t right_os_: 1
uint8_t left_hyper_: 1
uint8_t right_hyper_: 1

Detailed Description

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

Definition at line 18 of file GHOST_ModifierKeys.hh.

Constructor & Destructor Documentation

◆ GHOST_ModifierKeys()

GHOST_ModifierKeys::GHOST_ModifierKeys ( )

Constructor.

Copyright (C) 2001 NaN Technologies B.V.

Definition at line 16 of file GHOST_ModifierKeys.cc.

References clear().

Referenced by equals(), and ~GHOST_ModifierKeys().

◆ ~GHOST_ModifierKeys()

GHOST_ModifierKeys::~GHOST_ModifierKeys ( )
default

References GHOST_ModifierKeys(), and mask().

Member Function Documentation

◆ clear()

void GHOST_ModifierKeys::clear ( )

Sets the state of all modifier keys to up.

Definition at line 134 of file GHOST_ModifierKeys.cc.

References left_alt_, left_control_, left_hyper_, left_os_, left_shift_, right_alt_, right_control_, right_hyper_, right_os_, and right_shift_.

Referenced by GHOST_ModifierKeys().

◆ 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 148 of file GHOST_ModifierKeys.cc.

References GHOST_ModifierKeys(), left_alt_, left_control_, left_hyper_, left_os_, left_shift_, right_alt_, right_control_, right_hyper_, right_os_, and right_shift_.

◆ get()

◆ getModifierKeyCode()

◆ set()

Member Data Documentation

◆ left_alt_

uint8_t GHOST_ModifierKeys::left_alt_

Bit-field that stores the appropriate key state.

Definition at line 64 of file GHOST_ModifierKeys.hh.

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

◆ left_control_

uint8_t GHOST_ModifierKeys::left_control_

Bit-field that stores the appropriate key state.

Definition at line 68 of file GHOST_ModifierKeys.hh.

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

◆ left_hyper_

uint8_t GHOST_ModifierKeys::left_hyper_

Definition at line 74 of file GHOST_ModifierKeys.hh.

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

◆ left_os_

uint8_t GHOST_ModifierKeys::left_os_

Bit-field that stores the appropriate key state.

Definition at line 72 of file GHOST_ModifierKeys.hh.

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

◆ left_shift_

uint8_t GHOST_ModifierKeys::left_shift_

Bit-field that stores the appropriate key state.

Definition at line 60 of file GHOST_ModifierKeys.hh.

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

◆ right_alt_

uint8_t GHOST_ModifierKeys::right_alt_

Bit-field that stores the appropriate key state.

Definition at line 66 of file GHOST_ModifierKeys.hh.

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

◆ right_control_

uint8_t GHOST_ModifierKeys::right_control_

Bit-field that stores the appropriate key state.

Definition at line 70 of file GHOST_ModifierKeys.hh.

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

◆ right_hyper_

uint8_t GHOST_ModifierKeys::right_hyper_

Definition at line 75 of file GHOST_ModifierKeys.hh.

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

◆ right_os_

uint8_t GHOST_ModifierKeys::right_os_

Definition at line 73 of file GHOST_ModifierKeys.hh.

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

◆ right_shift_

uint8_t GHOST_ModifierKeys::right_shift_

Bit-field that stores the appropriate key state.

Definition at line 62 of file GHOST_ModifierKeys.hh.

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


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