Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / Stylus / RawStylusActions.cs / 1305600 / RawStylusActions.cs
using System; namespace System.Windows.Input { ////// The raw actions being reported from the stylus. /// ////// Note that multiple actions can be reported at once. /// [Flags] internal enum RawStylusActions { ////// NoAction /// None = 0x000, ////// The stylus became active in the application. The application /// may need to refresh its stylus state. /// Activate = 0x001, ////// The stylus became inactive in the application. The application /// may need to clear its stylus state. /// Deactivate = 0x002, ////// The stylus just came in contact with the digitizer /// Down = 0x004, ////// The stylus just lost contact with the digitizer /// Up = 0x008, ////// The stylus is sending more data while in contact with the digitizer. /// Move = 0x010, ////// The stylus is sending more data while hovering in-air over the digitizer. /// InAirMove = 0x020, ////// The stylus is now in range of the digitizer. /// InRange = 0x040, ////// The stylus is now out of range of the digitizer. /// OutOfRange = 0x080, ////// The stylus is now out of range of the digitizer. /// SystemGesture = 0x100, } ////// Internal helper for validating RawStylusActions /// internal static class RawStylusActionsHelper { private static readonly RawStylusActions MaxActions = RawStylusActions.None | RawStylusActions.Activate | RawStylusActions.Deactivate | RawStylusActions.Down | RawStylusActions.Up | RawStylusActions.Move | RawStylusActions.InAirMove | RawStylusActions.InRange | RawStylusActions.OutOfRange | RawStylusActions.SystemGesture; internal static bool IsValid(RawStylusActions action) { if (action < RawStylusActions.None || action > MaxActions) { return false; } return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; namespace System.Windows.Input { ////// The raw actions being reported from the stylus. /// ////// Note that multiple actions can be reported at once. /// [Flags] internal enum RawStylusActions { ////// NoAction /// None = 0x000, ////// The stylus became active in the application. The application /// may need to refresh its stylus state. /// Activate = 0x001, ////// The stylus became inactive in the application. The application /// may need to clear its stylus state. /// Deactivate = 0x002, ////// The stylus just came in contact with the digitizer /// Down = 0x004, ////// The stylus just lost contact with the digitizer /// Up = 0x008, ////// The stylus is sending more data while in contact with the digitizer. /// Move = 0x010, ////// The stylus is sending more data while hovering in-air over the digitizer. /// InAirMove = 0x020, ////// The stylus is now in range of the digitizer. /// InRange = 0x040, ////// The stylus is now out of range of the digitizer. /// OutOfRange = 0x080, ////// The stylus is now out of range of the digitizer. /// SystemGesture = 0x100, } ////// Internal helper for validating RawStylusActions /// internal static class RawStylusActionsHelper { private static readonly RawStylusActions MaxActions = RawStylusActions.None | RawStylusActions.Activate | RawStylusActions.Deactivate | RawStylusActions.Down | RawStylusActions.Up | RawStylusActions.Move | RawStylusActions.InAirMove | RawStylusActions.InRange | RawStylusActions.OutOfRange | RawStylusActions.SystemGesture; internal static bool IsValid(RawStylusActions action) { if (action < RawStylusActions.None || action > MaxActions) { return false; } return true; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MatrixAnimationUsingKeyFrames.cs
- DocumentReference.cs
- FixedSOMTableRow.cs
- ItemsPanelTemplate.cs
- XamlPoint3DCollectionSerializer.cs
- CodeTypeDelegate.cs
- EntityKeyElement.cs
- NeutralResourcesLanguageAttribute.cs
- SessionStateItemCollection.cs
- ModelProperty.cs
- SafeFileHandle.cs
- Native.cs
- GeneralTransform3D.cs
- FlowLayoutPanel.cs
- SHA256.cs
- WebDisplayNameAttribute.cs
- MsmqIntegrationReceiveParameters.cs
- HiddenField.cs
- ZoomPercentageConverter.cs
- ProviderSettingsCollection.cs
- TypeUtils.cs
- InstancePersistenceCommand.cs
- ScriptBehaviorDescriptor.cs
- SelectionEditingBehavior.cs
- TreeNodeBinding.cs
- CacheVirtualItemsEvent.cs
- AmbientLight.cs
- InstanceDescriptor.cs
- WebEventCodes.cs
- CollectionsUtil.cs
- RepeatButtonAutomationPeer.cs
- TrustLevelCollection.cs
- recordstatefactory.cs
- LinkArea.cs
- XComponentModel.cs
- RuntimeHandles.cs
- ManagementObject.cs
- CodeDirectiveCollection.cs
- GridPattern.cs
- NetTcpBindingCollectionElement.cs
- HttpApplicationFactory.cs
- WmlPageAdapter.cs
- EdmError.cs
- GrabHandleGlyph.cs
- DataTableReader.cs
- TextTreeNode.cs
- GcSettings.cs
- Page.cs
- FormViewPagerRow.cs
- PassportIdentity.cs
- NativeRecognizer.cs
- Rect.cs
- DependencyPropertyKind.cs
- InkPresenter.cs
- ColorContextHelper.cs
- CodeLabeledStatement.cs
- X509CertificateEndpointIdentity.cs
- MappingMetadataHelper.cs
- Maps.cs
- PrtCap_Public.cs
- CodeMemberMethod.cs
- ResourceDescriptionAttribute.cs
- BamlVersionHeader.cs
- XmlNamespaceMapping.cs
- ServiceActivationException.cs
- __FastResourceComparer.cs
- CorrelationToken.cs
- ArgumentNullException.cs
- PeerEndPoint.cs
- DiagnosticsConfigurationHandler.cs
- ExecutionEngineException.cs
- ClientConfigurationSystem.cs
- ManualResetEvent.cs
- BitmapEffectGeneralTransform.cs
- DateTimeOffset.cs
- HtmlMeta.cs
- SqlException.cs
- XmlIgnoreAttribute.cs
- DataSourceHelper.cs
- TextServicesDisplayAttributePropertyRanges.cs
- ContainerParagraph.cs
- CqlGenerator.cs
- UserMapPath.cs
- DateTimeUtil.cs
- SqlCommandSet.cs
- cookiecollection.cs
- DropTarget.cs
- DbConnectionPoolGroupProviderInfo.cs
- SecurityUniqueId.cs
- CaseStatement.cs
- ParsedAttributeCollection.cs
- TextRangeBase.cs
- SQLGuid.cs
- ListViewItemMouseHoverEvent.cs
- SizeF.cs
- StylusOverProperty.cs
- FunctionUpdateCommand.cs
- PageThemeBuildProvider.cs
- RegionInfo.cs
- ZipIOExtraFieldElement.cs