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

IMoaDrPaletteAccess


Interface ID: IID_IMoaDrPaletteAccess
Pointer type: PIMoaDrPaletteAccess
Inheritance: IMoaUnknown
Header file: driservc.h

Description


The IMoaDrPaletteAccess interface is provided in Director by the main callback object. Use this interface to access the media of the built in palettes supplied by director. To acquire IMoaDrPaletteAccess, call QueryInterface() on the main callback object.

Methods

Media access

GetBuiltInPaletteCount()
GetNthBuiltInPaletteSymbol()
GetBuiltInPaletteMedia()

GetBuiltInPaletteCount()

Syntax

GetBuiltInPaletteCount(PIMoaDrPaletteAccess This,
MoaUlong FAR * pCount)

Parameters

This
Pointer to the IMoaDrPaletteAccess interface

pCount
returns the number of build in palettes in Director

Returns

MoaError

Description


Returns the number of palettes supported internally by Director.

GetBuiltInPaletteMedia()

Syntax

GetBuiltInPaletteMedia(PIMoaDrPaletteAccess This,
MoaMmSymbol paletteSymbol,
PMoaVoid FAR * pPaletteMedia)

Parameters

This
Pointer to the IMoaDrPaletteAccess interface

paletteSymbol
the symbol for the palette to access

pPaletteMedia
returns the actual palette media

Returns

MoaError

Description

Returns the system-dependent palette media as a handle in pPaletteMedia. This handle references a CTable on the Macintosh, and an HTable on Windows. The caller owns rule applies to the returned media.

GetNthBuiltInPaletteSymbol()

Syntax

GetNthBuiltInPaletteSymbol(PIMoaDrPaletteAccess This,
MoaUlong nPalette,
PMoaMmSymbol pPaletteSymbol)

Parameters

This
Pointer to the IMoaDrPaletteAccess interface

nPalette
the index of the palette to access.

pPaletteSymbol
returns the symbol for the palette

Returns

MoaError

Description

Returns the symbol for the built in palette at nPalette

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