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
- PolyBezierSegment.cs
- HeaderCollection.cs
- EntityDataSourceSelectedEventArgs.cs
- DataGridRowEventArgs.cs
- ReadOnlyActivityGlyph.cs
- DbParameterHelper.cs
- C14NUtil.cs
- RawAppCommandInputReport.cs
- TextRunCache.cs
- VirtualDirectoryMapping.cs
- IgnoreDeviceFilterElement.cs
- CodeSubDirectory.cs
- SqlConnectionPoolProviderInfo.cs
- KeyedCollection.cs
- FixedMaxHeap.cs
- LinkedDataMemberFieldEditor.cs
- GroupBox.cs
- ProgressBarBrushConverter.cs
- IRCollection.cs
- DatePickerDateValidationErrorEventArgs.cs
- HwndSource.cs
- DrawingContext.cs
- WmlImageAdapter.cs
- DependencyProperty.cs
- ToggleButtonAutomationPeer.cs
- DeadCharTextComposition.cs
- ConnectionStringsExpressionEditor.cs
- SpeechRecognitionEngine.cs
- SerializationSectionGroup.cs
- SecureStringHasher.cs
- securitymgrsite.cs
- LowerCaseStringConverter.cs
- EntitySetBaseCollection.cs
- TreeNodeStyle.cs
- BitmapEffectGroup.cs
- Stack.cs
- MetafileHeader.cs
- Message.cs
- _OverlappedAsyncResult.cs
- BindingValueChangedEventArgs.cs
- SecurityKeyType.cs
- sitestring.cs
- DataGridColumn.cs
- XmlSchemaIdentityConstraint.cs
- PerformanceCounterManager.cs
- RegexFCD.cs
- DesignTimeVisibleAttribute.cs
- ResourceReferenceKeyNotFoundException.cs
- TriggerBase.cs
- ColorTransform.cs
- EventWaitHandleSecurity.cs
- TypedAsyncResult.cs
- FreezableOperations.cs
- AliasGenerator.cs
- ExtensionSimplifierMarkupObject.cs
- ControllableStoryboardAction.cs
- Canonicalizers.cs
- GifBitmapEncoder.cs
- DataSetMappper.cs
- CodeCastExpression.cs
- FixedHyperLink.cs
- CssTextWriter.cs
- Point4D.cs
- Scanner.cs
- Line.cs
- SaveFileDialog.cs
- XPathChildIterator.cs
- FastEncoderStatics.cs
- CodeLabeledStatement.cs
- ISAPIApplicationHost.cs
- ServiceMetadataBehavior.cs
- RectKeyFrameCollection.cs
- ExpressionVisitorHelpers.cs
- StickyNoteHelper.cs
- SqlConnectionHelper.cs
- AuthenticationManager.cs
- PreviewKeyDownEventArgs.cs
- TableLayoutStyle.cs
- PhysicalFontFamily.cs
- TextTreeRootTextBlock.cs
- StreamInfo.cs
- WeakHashtable.cs
- Registry.cs
- VirtualPathData.cs
- NameTable.cs
- PasswordDeriveBytes.cs
- PointConverter.cs
- ToolStripItemGlyph.cs
- SqlLiftIndependentRowExpressions.cs
- HtmlEncodedRawTextWriter.cs
- Registry.cs
- NetworkCredential.cs
- RegexCode.cs
- ButtonPopupAdapter.cs
- MasterPage.cs
- SequenceFullException.cs
- XmlUtilWriter.cs
- TdsValueSetter.cs
- SHA1Managed.cs
- InvalidProgramException.cs