Skip to content

Latest commit

 

History

History
85 lines (63 loc) · 4.01 KB

nf-dcomp-idcompositionvisual-setoffsetx(idcompositionanimation).md

File metadata and controls

85 lines (63 loc) · 4.01 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dcomp.IDCompositionVisual.SetOffsetX(IDCompositionAnimation)
IDCompositionVisual::SetOffsetX(IDCompositionAnimation) (dcomp.h)
Changes the value of the OffsetX property of this visual. (overload 2/2)
IDCompositionVisual interface [DirectComposition]
SetOffsetX method
IDCompositionVisual.SetOffsetX
IDCompositionVisual.SetOffsetX(IDCompositionAnimation)
IDCompositionVisual::SetOffsetX
IDCompositionVisual::SetOffsetX(IDCompositionAnimation)
IDCompositionVisual::SetOffsetX(IDCompositionAnimation*)
SetOffsetX
SetOffsetX method [DirectComposition]
SetOffsetX method [DirectComposition]
IDCompositionVisual interface
dcomp/IDCompositionVisual::SetOffsetX
directcomp.idcompositionvisual_setoffsetx_idcompositionanimation
directcomp\idcompositionvisual_setoffsetx_idcompositionanimation.htm
directcomp
f0595951-a0b0-47bb-9e94-1cbaa7b7f736
12/05/2018
IDCompositionVisual interface [DirectComposition],SetOffsetX method, IDCompositionVisual.SetOffsetX, IDCompositionVisual.SetOffsetX(IDCompositionAnimation), IDCompositionVisual::SetOffsetX, IDCompositionVisual::SetOffsetX(IDCompositionAnimation), IDCompositionVisual::SetOffsetX(IDCompositionAnimation*), SetOffsetX, SetOffsetX method [DirectComposition], SetOffsetX method [DirectComposition],IDCompositionVisual interface, dcomp/IDCompositionVisual::SetOffsetX, directcomp.idcompositionvisual_setoffsetx_idcompositionanimation
dcomp.h
Windows
Windows 8 [desktop apps only]
Windows Server 2012 [desktop apps only]
Dcomp.lib
Dcomp.dll
Windows
19H1
IDCompositionVisual::SetOffsetX
dcomp/IDCompositionVisual::SetOffsetX
c++
APIRef
kbSyntax
COM
Dcomp.dll
IDCompositionVisual.SetOffsetX

IDCompositionVisual::SetOffsetX(IDCompositionAnimation)

-description

Changes the value of the OffsetX property of this visual. The OffsetX property specifies the new offset of the visual along the x-axis, relative to the parent visual.

-parameters

-param animation [in]

Type: IDCompositionAnimation*

An animation object that determines how the value of the OffsetX property changes over time. This parameter must not be NULL.

-returns

Type: HRESULT

If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. See DirectComposition Error Codes for a list of error codes.

-remarks

This method makes a copy of the specified animation. If the animation object referenced by the animation parameter is changed after this call, the change does not affect the OffsetX property unless this method is called again. If the OffsetX property was previously animated, this method replaces that animation with the new animation.

This method fails if animation is an invalid pointer or if it was not created by the same IDCompositionDevice interface that created this visual. The interface cannot be a custom implementation; only interfaces created by Microsoft DirectComposition can be used with this method.

-see-also

IDCompositionVisual

IDCompositionVisual::SetOffsetY

IDCompositionVisual::SetTransform