Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

key_modifier Namespace Reference

modifier key states. More...


Enumerations

enum  state { none = 0, ctrl = 1, alt = 2, shift = 4 }

Functions

state operator| (state const &s1, state const &s2)
void operator|= (state &s1, state s2)


Detailed Description

modifier key states.

Enumeration Type Documentation

enum key_modifier::state
 

Enumeration values:
none 
ctrl 
alt 
shift 

Definition at line 18 of file key_state.h.

00018                    {
00019                 none    = 0, //< no modifiers held
00020                 ctrl    = 1, //< control button held
00021                 alt     = 2, //< alt/meta key held
00022                 shift   = 4  //< shift key held
00023         };


Function Documentation

state operator| state const &    s1,
state const &    s2
[inline]
 

Definition at line 26 of file key_state.h.

00027 {
00028         int const i1(static_cast<int>(s1));
00029         int const i2(static_cast<int>(s2));
00030         return static_cast<state>(i1 | i2);
00031 }

void operator|= state   s1,
state    s2
[inline]
 

Definition at line 34 of file key_state.h.

00035 {
00036         s1 = static_cast<state>(s1 | s2);
00037 }


Generated on Fri Jul 18 01:19:06 2003 for lyx by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002