Blender  V2.59
Public Member Functions | Static Public Member Functions | Public Attributes
GHOST_ModifierKeys Struct Reference

#include <GHOST_ModifierKeys.h>

List of all members.

Public Member Functions

 GHOST_ModifierKeys ()
virtual ~GHOST_ModifierKeys ()
virtual bool get (GHOST_TModifierKeyMask mask) const
virtual void set (GHOST_TModifierKeyMask mask, bool down)
virtual void clear ()
virtual 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.

Author:
Maarten Gribnau
Date:
May 17, 2001

Definition at line 45 of file GHOST_ModifierKeys.h.


Constructor & Destructor Documentation

GHOST_ModifierKeys::GHOST_ModifierKeys ( )

Constructor.

Id:
GHOST_ModifierKeys.cpp 35152 2011-02-25 11:28:33Z jesterking

Copyright (C) 2001 NaN Technologies B.V.

Author:
Maarten Gribnau
Date:
May 31, 2001

Definition at line 45 of file GHOST_ModifierKeys.cpp.

References clear().

GHOST_ModifierKeys::~GHOST_ModifierKeys ( ) [virtual]

Definition at line 50 of file GHOST_ModifierKeys.cpp.


Member Function Documentation

void GHOST_ModifierKeys::clear ( ) [virtual]

Sets the state of all modifier keys to up.

Definition at line 119 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().

bool GHOST_ModifierKeys::equals ( const GHOST_ModifierKeys keys) const [virtual]

Determines whether to modifier key states are equal.

Parameters:
keys.The modifier key state to compare to.
Returns:
Indication of equality.

Definition at line 131 of file GHOST_ModifierKeys.cpp.

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

bool GHOST_ModifierKeys::get ( GHOST_TModifierKeyMask  mask) const [virtual]
GHOST_TKey GHOST_ModifierKeys::getModifierKeyCode ( GHOST_TModifierKeyMask  mask) [static]
void GHOST_ModifierKeys::set ( GHOST_TModifierKeyMask  mask,
bool  down 
) [virtual]

Member Data Documentation

Bitfield that stores the appropriate key state.

Definition at line 93 of file GHOST_ModifierKeys.h.

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

Bitfield that stores the appropriate key state.

Definition at line 97 of file GHOST_ModifierKeys.h.

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

Bitfield that stores the appropriate key state.

Definition at line 89 of file GHOST_ModifierKeys.h.

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

Bitfield that stores the appropriate key state.

Definition at line 101 of file GHOST_ModifierKeys.h.

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

Bitfield that stores the appropriate key state.

Definition at line 95 of file GHOST_ModifierKeys.h.

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

Bitfield that stores the appropriate key state.

Definition at line 99 of file GHOST_ModifierKeys.h.

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

Bitfield that stores the appropriate key state.

Definition at line 91 of file GHOST_ModifierKeys.h.

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


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