Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / MS / Internal / Ink / StrokeNodeData.cs / 1 / StrokeNodeData.cs
//------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Windows; using System.Windows.Media; using System.Windows.Input; using System.Diagnostics; namespace MS.Internal.Ink { #region StrokeNodeData ////// This structure represents a node on a stroke spine. /// internal struct StrokeNodeData { #region Statics private static StrokeNodeData s_empty = new StrokeNodeData(); #endregion #region API (internal) ///Returns static object representing an unitialized node internal static StrokeNodeData Empty { get { return s_empty; } } ////// Constructor for nodes of a pressure insensitive stroke /// /// position of the node internal StrokeNodeData(Point position) { _position = position; _pressure = 1; } ////// Constructor for nodes with pressure data /// /// position of the node /// pressure scaling factor at the node internal StrokeNodeData(Point position, float pressure) { System.Diagnostics.Debug.Assert(DoubleUtil.GreaterThan((double)pressure, 0d)); _position = position; _pressure = pressure; } ///Tells whether the structre was properly initialized internal bool IsEmpty { get { Debug.Assert(DoubleUtil.AreClose(0, s_empty._pressure)); return DoubleUtil.AreClose(_pressure, s_empty._pressure); } } ///Position of the node internal Point Position { get { return _position; } } ///Pressure scaling factor at the node internal float PressureFactor { get { return _pressure; } } #endregion #region Privates private Point _position; private float _pressure; #endregion } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileDialog_Vista_Interop.cs
- DynamicVirtualDiscoSearcher.cs
- WebPartAuthorizationEventArgs.cs
- PageWrapper.cs
- Boolean.cs
- MobileRedirect.cs
- ComboBox.cs
- HighContrastHelper.cs
- IISUnsafeMethods.cs
- ListSourceHelper.cs
- UTF7Encoding.cs
- StandardBindingCollectionElement.cs
- ConfigXmlAttribute.cs
- HtmlHead.cs
- ValidationSummary.cs
- CharacterHit.cs
- CompressionTransform.cs
- AnchoredBlock.cs
- RuleSettings.cs
- GPRECT.cs
- TrackingMemoryStream.cs
- DataContractJsonSerializer.cs
- ObjectStorage.cs
- Automation.cs
- HttpClientCredentialType.cs
- MissingManifestResourceException.cs
- TransactionFlowElement.cs
- HMACSHA384.cs
- ToolStripLabel.cs
- TimeSpan.cs
- NameValueCollection.cs
- MsmqChannelFactoryBase.cs
- FrameworkElementAutomationPeer.cs
- MethodToken.cs
- Substitution.cs
- XsltLoader.cs
- VScrollProperties.cs
- PenThreadPool.cs
- ClientSettingsStore.cs
- ErrorsHelper.cs
- ControlAdapter.cs
- CommandID.cs
- Blend.cs
- AppDomainAttributes.cs
- SetUserLanguageRequest.cs
- KnownAssembliesSet.cs
- PolyBezierSegment.cs
- XPathNavigator.cs
- ServicePoint.cs
- ContextBase.cs
- Decorator.cs
- AddInActivator.cs
- LinkedDataMemberFieldEditor.cs
- PropertyBuilder.cs
- ToolStripStatusLabel.cs
- AlignmentYValidation.cs
- _NegotiateClient.cs
- DefinitionBase.cs
- HttpPostProtocolReflector.cs
- DocumentPageViewAutomationPeer.cs
- OdbcStatementHandle.cs
- XmlAnyAttributeAttribute.cs
- PolicyStatement.cs
- SqlCrossApplyToCrossJoin.cs
- SurrogateDataContract.cs
- Wizard.cs
- PagesChangedEventArgs.cs
- DeferredSelectedIndexReference.cs
- FormViewPageEventArgs.cs
- CapabilitiesSection.cs
- SqlHelper.cs
- InputProviderSite.cs
- LoginView.cs
- DefaultValueConverter.cs
- ContextStack.cs
- NameNode.cs
- ListViewPagedDataSource.cs
- InternalConfigSettingsFactory.cs
- SerializerDescriptor.cs
- SafeSystemMetrics.cs
- RouteParser.cs
- SparseMemoryStream.cs
- BrowserDefinition.cs
- DummyDataSource.cs
- BreakRecordTable.cs
- CodeCatchClauseCollection.cs
- XsdDataContractExporter.cs
- WebPartDescription.cs
- ManifestSignatureInformation.cs
- SQLByte.cs
- Grid.cs
- COM2ICategorizePropertiesHandler.cs
- WorkflowQueuingService.cs
- CompatibleComparer.cs
- OutOfProcStateClientManager.cs
- _AutoWebProxyScriptEngine.cs
- XmlWellformedWriterHelpers.cs
- ObjectStateManager.cs
- SqlException.cs
- ExecutedRoutedEventArgs.cs