DR Developer's Guide
DR Interfaces | DR Methods | DR Types and Misc API

IMoaDrValue


Interface ID: IID_IMoaDrValue
Pointer type: PIMoaDrValue
Inheritance: IMoaUnknown
Header file: drivalue.h

Methods

Data conversion

ValueToCMRef()
CMRefToValue()
SpriteRefToValue()
ValueToCastLibRef()
CastLibRefToValue()
ValueToSoundSpriteRef()
SoundSpriteRefToValue()

CastLibRefToValue()

Syntax

CastLibRefToValue(PIMoaDrValue This,
ConstPMoaDrCastLibRef pCLRef,
PMoaMmValue pValue) )

Parameters

This
Pointer to the IMoaDrValue interface

pCLRef
ConstPMoaDrCastLibRef

pValue)
PMoaMmValue

Returns

MoaError

CMRefToValue()

Syntax

CMRefToValue(PIMoaDrValue This,
ConstPMoaDrCMRef pCMRef,
PMoaMmValue pValue)

Parameters

This
Pointer to the IMoaDrValue interface

pCMRef
Pointer to a ConstPMoaDrCMRef to be used as the basis for the new value

pValue
Pointer to MoaMmValue to receive the result

Returns

MoaError

Description

Creates a new cast member reference-type MoaMmValue from a MoaDrCMRef. pCMRef is a pointer to a MoaDrCMRef to be used as the basis for the new value. pValue contains a pointer to a MoaMmValue to receive the result. This call populates the MoaMmValue at pValue with a new MoaMmValue, overwriting any current value. Make sure to release any preexisting value before making this call. The caller is responsible for releasing the returned value using IMoaMmUtils::ValueRelease().

SoundSpriteRefToValue()

Syntax

SoundSpriteRefToValue(PIMoaDrValue This,
ConstPMoaDrSoundSpriteRef pSRef,
PMoaMmValue pValue)

Parameters

This
Pointer to the IMoaDrValue interface

pSRef
ConstPMoaDrSoundSpriteRef

pValue
PMoaMmValue

Returns

MoaError

SpriteRefToValue()

Syntax

SpriteRefToValue(PIMoaDrValue This,
ConstPMoaDrSpriteRef pSRef,
PMoaMmValue pValue)

Parameters

This
Pointer to the IMoaDrValue interface

pSRef
ConstPMoaDrSpriteRef

pValue
PMoaMmValue

Returns

MoaError

ValueToCastLibRef()

Syntax

ValueToCastLibRef(PIMoaDrValue This,
ConstPMoaMmValue pValue,
PMoaDrCastLibRef pCLRef)

Parameters

This
Pointer to the IMoaDrValue interface

pValue
ConstPMoaMmValue

pCLRef
PMoaDrCastLibRef

Returns

MoaError

ValueToCMRef()

Syntax

ValueToCMRef(PIMoaDrValue This,
ConstPMoaMmValue pValue,
PMoaDrCMRef pCMRef)

Parameters

This
Pointer to the IMoaDrValue interface

pValue
Pointer to a cast member reference type

pCMRef
Pointer to a MoaDrCMRef to receive the result

Returns

kMoaErr_NoErr successful
kMoaDrErr_CastMemberExpected Type mismatch: CMRef expected

Description


Obtains the MoaDrCMRef for a cast member reference-type MoaMmValue. pCMRef is a pointer to a MoaDrCMRef to receive the result. Returns kMoaDrErr_CastMemberExpected if pValue is not an cast member reference-type value.


ValueToSoundSpriteRef()

Syntax

ValueToSoundSpriteRef(PIMoaDrValue This,
ConstPMoaMmValue pValue,
PMoaDrSoundSpriteRef pSRef)

Parameters

This
Pointer to the IMoaDrValue interface

pValue
ConstPMoaMmValue

pSRef
PMoaDrSoundSpriteRef

Returns

MoaError

ValueToSpriteRef()

Syntax

ValueToSpriteRef(PIMoaDrValue This,
ConstPMoaMmValue pValue,
PMoaDrSpriteRef pSRef)

Parameters

This
Pointer to the IMoaDrValue interface

pValue
ConstPMoaMmValue

pSRef
PMoaDrSpriteRef

Returns

MoaError

Copyright © 1995-2007 Adobe Macromedia Software LLC, Inc.