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
- controlskin.cs
- DataRowCollection.cs
- HtmlSelectionListAdapter.cs
- SourceFileBuildProvider.cs
- TransformDescriptor.cs
- TokenBasedSetEnumerator.cs
- TCEAdapterGenerator.cs
- IdentityHolder.cs
- Intellisense.cs
- Size3D.cs
- DataGridViewRowEventArgs.cs
- IssuedTokensHeader.cs
- PackUriHelper.cs
- WebPartMenu.cs
- PageThemeCodeDomTreeGenerator.cs
- SignatureTargetIdManager.cs
- SqlConnectionHelper.cs
- DataTableNewRowEvent.cs
- Delay.cs
- RIPEMD160.cs
- FileSystemWatcher.cs
- SystemIPv4InterfaceProperties.cs
- StringValueSerializer.cs
- DesignerEditorPartChrome.cs
- TemplateGroupCollection.cs
- ConfigXmlSignificantWhitespace.cs
- StateMachineSubscription.cs
- ReaderWriterLockWrapper.cs
- RootBrowserWindowProxy.cs
- DateTimeUtil.cs
- ViewStateChangedEventArgs.cs
- WebReferenceCollection.cs
- Sequence.cs
- ContentHostHelper.cs
- GridViewSelectEventArgs.cs
- ToolStripItem.cs
- WmlCalendarAdapter.cs
- IndexedSelectQueryOperator.cs
- ZipIOFileItemStream.cs
- MsmqHostedTransportConfiguration.cs
- FixUp.cs
- MgmtResManager.cs
- SynchronizationFilter.cs
- Serializer.cs
- CommandBinding.cs
- SamlAssertionKeyIdentifierClause.cs
- PointCollection.cs
- WorkflowTerminatedException.cs
- TdsParserStaticMethods.cs
- DataGridViewCellCancelEventArgs.cs
- PiiTraceSource.cs
- CLSCompliantAttribute.cs
- HttpRequestWrapper.cs
- OrderByBuilder.cs
- CodeMemberMethod.cs
- SecurityMessageProperty.cs
- ObjectQuery_EntitySqlExtensions.cs
- LoginUtil.cs
- Transform3DGroup.cs
- PnrpPermission.cs
- RightsManagementPermission.cs
- MSG.cs
- Matrix3DConverter.cs
- SmiMetaDataProperty.cs
- ListViewCommandEventArgs.cs
- EngineSite.cs
- HtmlUtf8RawTextWriter.cs
- MsdtcClusterUtils.cs
- EntitySqlQueryCacheKey.cs
- SystemShuttingDownException.cs
- AdornerLayer.cs
- RenderOptions.cs
- Token.cs
- DataControlCommands.cs
- SystemNetHelpers.cs
- ForceCopyBuildProvider.cs
- OpenFileDialog.cs
- TemplateContent.cs
- CollectionChangeEventArgs.cs
- Run.cs
- D3DImage.cs
- XmlHierarchyData.cs
- PixelShader.cs
- LocalizationComments.cs
- InternalBufferOverflowException.cs
- CompilerWrapper.cs
- GridViewDeleteEventArgs.cs
- SqlXml.cs
- OdbcError.cs
- SpecialFolderEnumConverter.cs
- FixedDocument.cs
- Enum.cs
- StylusButtonCollection.cs
- Region.cs
- ConnectionStringSettings.cs
- DrawingContextDrawingContextWalker.cs
- MultiByteCodec.cs
- GroupDescription.cs
- ProgressBar.cs
- ColumnWidthChangingEvent.cs