|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // e32\include\k32keys.inl |
|
15 // |
|
16 // WARNING: This file contains some APIs which are internal and are subject |
|
17 // to change without noticed. Such APIs should therefore not be used |
|
18 // outside the Kernel and Hardware Services package. |
|
19 // |
|
20 |
|
21 /** |
|
22 @internalComponent |
|
23 @released |
|
24 */ |
|
25 inline TBool MatchesMaskedValue(TInt aModifiers,const TMaskedModifiers &aMaskedModifiers) |
|
26 { |
|
27 return (TBool)((aModifiers&aMaskedModifiers.iMask)==aMaskedModifiers.iValue); |
|
28 } |
|
29 |
|
30 /** |
|
31 @internalComponent |
|
32 @released |
|
33 */ |
|
34 inline void MergeModifiers(TInt &aModifiers,const TMaskedModifiers &aMaskedModifiers) |
|
35 // Set the masked bits only of the parameter |
|
36 { |
|
37 aModifiers&=~aMaskedModifiers.iMask; |
|
38 aModifiers|=(aMaskedModifiers.iMask&aMaskedModifiers.iValue); |
|
39 } |
|
40 |
|
41 inline void TCtrlDigits::SetRadix(TRadix aRadix) |
|
42 {iRadix=aRadix;} |
|
43 |
|
44 inline void TCtrlDigits::SetMaxCount(TInt aMaxCount) |
|
45 {iMaxCount=Min(aMaxCount, iMaximumCtrlDigitsMaxCount);} |
|
46 |
|
47 inline TRadix TCtrlDigits::GetRadix() const |
|
48 {return iRadix;} |
|
49 |
|
50 inline TBool TCtrlDigits::WithinLimits() const |
|
51 {return (TBool)(iDigits<=0xffffL);} |
|
52 |
|
53 inline TUint TCtrlDigits::GetDigits() const |
|
54 {return iDigits;} |
|
55 |
|
56 inline TBool TCtrlDigits::Error() const |
|
57 {return iErrorFlag;} |
|
58 |
|
59 inline TUint TConvTable::FirstScanCode() const |
|
60 {return iFirstScanCode;} |
|
61 |
|
62 inline TUint TConvTable::LastScanCode() const |
|
63 {return iLastScanCode;} |
|
64 |
|
65 inline TCharExtended::TCharExtended(): |
|
66 TChar(0) |
|
67 {} |
|
68 |
|
69 inline TCharExtended::TCharExtended(TUint aChar): |
|
70 TChar(aChar) |
|
71 {} |
|
72 |