|
| void | InitPalettes (void) |
| |
| PaletteHandle | NewPalette (short entries, CTabHandle srcColors, short srcUsage, short srcTolerance) |
| |
| PaletteHandle | GetNewPalette (short PaletteID) |
| |
| void | DisposePalette (PaletteHandle srcPalette) |
| |
| void | ActivatePalette (WindowRef srcWindow) |
| |
| void | SetPalette (WindowRef dstWindow, PaletteHandle srcPalette, Boolean cUpdates) |
| |
| void | NSetPalette (WindowRef dstWindow, PaletteHandle srcPalette, short nCUpdates) |
| |
| PaletteHandle | GetPalette (WindowRef srcWindow) |
| |
| void | CopyPalette (PaletteHandle srcPalette, PaletteHandle dstPalette, short srcEntry, short dstEntry, short dstLength) |
| |
| void | PmForeColor (short dstEntry) |
| |
| void | PmBackColor (short dstEntry) |
| |
| void | AnimateEntry (WindowRef dstWindow, short dstEntry, const RGBColor *srcRGB) |
| |
| void | MacAnimatePalette (WindowRef dstWindow, CTabHandle srcCTab, short srcIndex, short dstEntry, short dstLength) |
| |
| void | GetEntryColor (PaletteHandle srcPalette, short srcEntry, RGBColor *dstRGB) |
| |
| void | SetEntryColor (PaletteHandle dstPalette, short dstEntry, const RGBColor *srcRGB) |
| |
| void | GetEntryUsage (PaletteHandle srcPalette, short srcEntry, short *dstUsage, short *dstTolerance) |
| |
| void | SetEntryUsage (PaletteHandle dstPalette, short dstEntry, short srcUsage, short srcTolerance) |
| |
| void | CTab2Palette (CTabHandle srcCTab, PaletteHandle dstPalette, short srcUsage, short srcTolerance) |
| |
| void | Palette2CTab (PaletteHandle srcPalette, CTabHandle dstCTab) |
| |
| long | Entry2Index (short entry) |
| |
| void | RestoreDeviceClut (GDHandle gd) |
| |
| void | MacResizePalette (PaletteHandle p, short size) |
| |
| void | SaveFore (ColorSpec *c) |
| |
| void | SaveBack (ColorSpec *c) |
| |
| void | RestoreFore (const ColorSpec *c) |
| |
| void | RestoreBack (const ColorSpec *c) |
| |
| OSErr | SetDepth (GDHandle gd, short depth, short whichFlags, short flags) |
| |
| short | HasDepth (GDHandle gd, short depth, short whichFlags, short flags) |
| |
| short | PMgrVersion (void) |
| |
| void | SetPaletteUpdates (PaletteHandle p, short updates) |
| |
| short | GetPaletteUpdates (PaletteHandle p) |
| |
| Boolean | GetGray (GDHandle device, const RGBColor *backGround, RGBColor *foreGround) |
| |
Palette Manager Interfaces.
- Introduced In: Mac OS 8
- Avaliable From: Universal Interfaces 3.4.1
- Copyright: © 1987-2001 by Apple Computer, Inc., all rights reserved
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
| void GetEntryUsage |
( |
PaletteHandle |
srcPalette, |
|
|
short |
srcEntry, |
|
|
short * |
dstUsage, |
|
|
short * |
dstTolerance |
|
) |
| |
\brief Access the usage and tolerance fields of one palette color
<pre>GetEntryUsage lets your application open up a target color so it can be modified
by SetEntryUsage . srcPalette is the palette containing the color values you want to copy. srcEntry is the particular color whose values you want. destUsage is pmCourteous , pmExplicit , pmTolerant , or pmAnimated destTolerance is the tolerance level of the color about to be changed. Returns: none
- Note
GetEntryUsage does the preparation work in making new color qualities
available. Later, SetEntryUsage can come along and make the change.
- Copyright: THINK Reference © 1991-1992 Symantec Corporation
- Non-Carbon CFM: in InterfaceLib 7.1 and later
- Carbon Lib: in CarbonLib 1.0 and later
- Mac OS X: in version 10.0 and later
| void SetEntryUsage |
( |
PaletteHandle |
dstPalette, |
|
|
short |
dstEntry, |
|
|
short |
srcUsage, |
|
|
short |
srcTolerance |
|
) |
| |
\brief Change the usage and tolerance of a palette entry
<pre>SetEntryUsage lets your application alter a single palette entry's color usage
and tolerance. destPalette is the palette containing the color you want to change. destEntry is the particular color you've targeted for change. srcUsage is pmCourteous , pmExplicit , pmTolerant or pmAnimated . srcTolerance specification for tolerance level in new palette entry. Returns: none
- Note
SetEntryUsage marks a change in a color palette entry from old to new usage
and tolerance. As yet, however, no visible change occurs in the color
environment. That event takes place at the next ActivatePalette call. The
change comes quickly, though, since a changed entry is marked as such and a
palette update occurs even when no other changes that would normally
precipitate a color environment change have taken place. Use this routine after
creating a new palette with NewPalette or modifying one with CTab2Palette
where the usage and tolerance fields carry the same value if you want to
customize your palette.
- Copyright: THINK Reference © 1991-1992 Symantec Corporation
- Non-Carbon CFM: in InterfaceLib 7.1 and later
- Carbon Lib: in CarbonLib 1.0 and later
- Mac OS X: in version 10.0 and later