Share via


IXRStylusPoint (Compact 2013)

3/28/2014

This class represents a single point collected when the user makes an ink stroke with the stylus.

Syntax

class IXRStylusPoint : public IXRDependencyObject

Inheritance Hierarchy

IXRDependencyObject

  IXRStylusPoint

Methods

In addition to the methods inherited from IXRDependencyObject, this class contains the following methods.

Name

Description

IXRStylusPoint::GetPressureFactor

Retrieves the pressure factor of the stylus on the screen.

IXRStylusPoint::GetX

Retrieves the value of the x-coordinate of the IXRStylusPoint.

IXRStylusPoint::GetY

Retrieves the value of the y-coordinate of the IXRStylusPoint.

IXRStylusPoint::SetPressureFactor

Sets the pressure factor of the stylus on the screen.

IXRStylusPoint::SetX

Sets the value of the x-coordinate of the IXRStylusPoint.

IXRStylusPoint::SetY

Sets the value of the y-coordinate of the IXRStylusPoint.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

The IXRStylusPoint structure represents a single point. All IXRStylusPoint objects contain properties that indicate the coordinates and the pressure of the point..

Note

You can determine the relevant PressureFactor only if the device supports it. Otherwise, PressureFactor has a default value of 0.5.

Multiple IXRStylusPoint objects make up an IXRStroke object. The IXRStroke object stores the stylus points in the StylusPoints property.

When you create a class instance, use an IXRStylusPointPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

You can also define an IXRStylusPoint object in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this element in the source XAML for your application, see the StylusPoint Structure on MSDN.

.NET Framework Equivalent

System.Windows.Input.StylusPoint

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Ink Input