D2D1_PROPERTY_BINDING structure (d2d1effectauthor.h)

Defines a property binding to a pair of functions which get and set the corresponding property.

Syntax

typedef struct D2D1_PROPERTY_BINDING {
  PCWSTR                      propertyName;
  PD2D1_PROPERTY_SET_FUNCTION setFunction;
  PD2D1_PROPERTY_GET_FUNCTION getFunction;
} D2D1_PROPERTY_BINDING;

Members

propertyName

The name of the property.

setFunction

The function that will receive the data to set.

getFunction

The function that will be asked to write the output data.

Remarks

The propertyName is used to cross-correlate the property binding with the registration XML. The propertyName must be present in the XML call or the registration will fail.

All properties must be bound.

Requirements

Requirement Value
Minimum supported client Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps]
Header d2d1effectauthor.h

See also

ID2D1EffectImpl

ID2D1Factory::RegisterEffect