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
- Duration.cs
- DataSvcMapFile.cs
- DefaultParameterValueAttribute.cs
- CodePageEncoding.cs
- BooleanToVisibilityConverter.cs
- RelationalExpressions.cs
- SqlUdtInfo.cs
- SecUtil.cs
- DynamicILGenerator.cs
- Table.cs
- PagedDataSource.cs
- PrintPreviewControl.cs
- HierarchicalDataSourceIDConverter.cs
- CollectionBuilder.cs
- WebPartRestoreVerb.cs
- HMAC.cs
- StrokeFIndices.cs
- Baml2006SchemaContext.cs
- ParallelTimeline.cs
- XmlLinkedNode.cs
- CodeTypeDeclarationCollection.cs
- IriParsingElement.cs
- _emptywebproxy.cs
- XDRSchema.cs
- DbLambda.cs
- ClientSession.cs
- StrokeFIndices.cs
- Maps.cs
- TileBrush.cs
- TextMessageEncodingElement.cs
- FixedSchema.cs
- OpenTypeCommon.cs
- TabPage.cs
- FileFormatException.cs
- CallInfo.cs
- TypeGeneratedEventArgs.cs
- AssociationSetMetadata.cs
- SBCSCodePageEncoding.cs
- ItemType.cs
- ObjectToModelValueConverter.cs
- XmlEntity.cs
- HtmlMeta.cs
- RotateTransform.cs
- CAGDesigner.cs
- DirectoryObjectSecurity.cs
- CriticalFinalizerObject.cs
- AnnotationAuthorChangedEventArgs.cs
- SamlDoNotCacheCondition.cs
- ActivationArguments.cs
- DataSourceExpression.cs
- ImageSource.cs
- CompilerError.cs
- ClrPerspective.cs
- ConnectionInterfaceCollection.cs
- OpenTypeLayoutCache.cs
- MemberMaps.cs
- LostFocusEventManager.cs
- TripleDESCryptoServiceProvider.cs
- DecimalStorage.cs
- Int32Storage.cs
- ProfileProvider.cs
- CompiledELinqQueryState.cs
- DriveInfo.cs
- HealthMonitoringSectionHelper.cs
- HtmlInputControl.cs
- Clause.cs
- UpdateProgress.cs
- ObjectDataSourceStatusEventArgs.cs
- ExpandableObjectConverter.cs
- GiveFeedbackEventArgs.cs
- Maps.cs
- ProgressChangedEventArgs.cs
- WizardForm.cs
- XmlQuerySequence.cs
- Win32NamedPipes.cs
- CollectionAdapters.cs
- Inflater.cs
- PopupRootAutomationPeer.cs
- SecurityAlgorithmSuite.cs
- ConfigXmlAttribute.cs
- QuotedPrintableStream.cs
- ItemCheckedEvent.cs
- COM2ICategorizePropertiesHandler.cs
- DecoderReplacementFallback.cs
- TileBrush.cs
- Enlistment.cs
- BuildManagerHost.cs
- Geometry3D.cs
- JoinElimination.cs
- UnhandledExceptionEventArgs.cs
- HitTestResult.cs
- StylusPointProperties.cs
- IntSecurity.cs
- TokenCreationException.cs
- smtpconnection.cs
- StorageEntityTypeMapping.cs
- ListItemConverter.cs
- DialogResultConverter.cs
- DisplayInformation.cs
- ClientTarget.cs