DR Developer's Guide
DR Interfaces | DR Methods | DR Types and Misc API
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()
Syntax
- GetBuiltInPaletteCount(MoaUlong * pCount)
Parameters
- pCount
- returns the number of build in palettes in Director
Returns
- MoaError
Description
-
Returns the number of palettes supported internally by Director.
Syntax
- GetBuiltInPaletteMedia(MoaMmSymbol paletteSymbol, PMoaVoid * pPaletteMedia)
Parameters
- 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.
Syntax
- GetNthBuiltInPaletteSymbol(MoaUlong nPalette, PMoaMmSymbol pPaletteSymbol)
Parameters
- 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-2008 Adobe Macromedia Software LLC, Inc.