DragAndDropDataAssetArray Class Reference

#include <asset_draganddrop.h>

Detailed Description

Message data for DRAGTYPE_ASSET.

Public Member Functions

Result< void > SetAssetDescriptions (const BaseArray< DndAsset > &assetDescriptions)
 
void SetAssetDescriptions (BaseArray< DndAsset > &&assetDescriptions)
 
const BaseArray< DndAsset > & GetAssetDescriptions () const
 
BaseArray< DndAsset > & GetAssetDescriptions ()
 
void SetLookupRepository (const AssetRepositoryRef &lookupRepository)
 
const AssetRepositoryRef & GetLookupRepository () const
 
 MAXON_OPERATOR_STRUCT (DragAndDropDataAssetArray, _assetDescriptions, _lookupRepository)
 

Private Attributes

BaseArray< DndAsset_assetDescriptions
 
AssetRepositoryRef _lookupRepository
 

Member Function Documentation

◆ SetAssetDescriptions() [1/2]

Result<void> SetAssetDescriptions ( const BaseArray< DndAsset > &  assetDescriptions)

SetAssetDescriptions setter for DndAsset data.

Parameters
[in]assetDescriptionsArray with assets to drag around.
Returns
OK on success.

◆ SetAssetDescriptions() [2/2]

void SetAssetDescriptions ( BaseArray< DndAsset > &&  assetDescriptions)

SetAssetDescriptions setter for DndAsset data.

Parameters
[in]assetDescriptionsArray with assets to drag around.

◆ GetAssetDescriptions() [1/2]

const BaseArray<DndAsset>& GetAssetDescriptions ( ) const

GetAssetDescriptions getter to access the BaseArray<DndAsset>.

Returns
OK on success.

◆ GetAssetDescriptions() [2/2]

BaseArray<DndAsset>& GetAssetDescriptions ( )

GetAssetDescriptions getter to access the BaseArray<DndAsset>.

Returns
OK on success.

◆ SetLookupRepository()

void SetLookupRepository ( const AssetRepositoryRef &  lookupRepository)

SetLookupRepository setter to set the lookup repository.

Parameters
[in]lookupRepositoryRepository to search in.

◆ GetLookupRepository()

const AssetRepositoryRef& GetLookupRepository ( ) const

GetLookupRepository getter function.

Returns
AssetRepositoryRef where to search for assets.

◆ MAXON_OPERATOR_STRUCT()

MAXON_OPERATOR_STRUCT ( DragAndDropDataAssetArray  ,
_assetDescriptions  ,
_lookupRepository   
)

Member Data Documentation

◆ _assetDescriptions

BaseArray<DndAsset> _assetDescriptions
private

◆ _lookupRepository

AssetRepositoryRef _lookupRepository
private