Mac OS 9
ColorPicker.h File Reference

Color Picker package Interfaces. More...

#include <MixedMode.h>
#include <Quickdraw.h>
#include <CMApplication.h>
#include <Events.h>

Go to the source code of this file.

Data Structures

struct  HSVColor
 
struct  HSLColor
 
struct  CMYColor
 
struct  PMColor
 
struct  NPMColor
 
struct  PickerMenuItemInfo
 
struct  ColorPickerInfo
 
struct  NColorPickerInfo
 

Macros

#define NewColorChangedUPP(userRoutine)
 
#define NewNColorChangedUPP(userRoutine)
 
#define NewUserEventUPP(userRoutine)
 
#define DisposeColorChangedUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeNColorChangedUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define DisposeUserEventUPP(userUPP)   DisposeRoutineDescriptor(userUPP)
 
#define InvokeColorChangedUPP(userData, newColor, userUPP)
 
#define InvokeNColorChangedUPP(userData, newColor, userUPP)
 
#define InvokeUserEventUPP(event, userUPP)    (Boolean) CALL_ONE_PARAMETER_UPP((userUPP), uppUserEventProcInfo, (event))
 
#define NewColorChangedProc(userRoutine)   NewColorChangedUPP(userRoutine)
 
#define NewNColorChangedProc(userRoutine)   NewNColorChangedUPP(userRoutine)
 
#define NewUserEventProc(userRoutine)   NewUserEventUPP(userRoutine)
 
#define CallColorChangedProc(userRoutine, userData, newColor)    InvokeColorChangedUPP(userData, newColor, userRoutine)
 
#define CallNColorChangedProc(userRoutine, userData, newColor)    InvokeNColorChangedUPP(userData, newColor, userRoutine)
 
#define CallUserEventProc(userRoutine, event)    InvokeUserEventUPP(event, userRoutine)
 

Typedefs

typedef SInt16 DialogPlacementSpec
 
typedef unsigned short SmallFract
 
typedef struct HSVColor HSVColor
 
typedef struct HSLColor HSLColor
 
typedef struct CMYColor CMYColor
 
typedef struct PMColor PMColor
 
typedef PMColorPMColorPtr
 
typedef struct NPMColor NPMColor
 
typedef NPMColorNPMColorPtr
 
typedef struct OpaquePicker * Picker
 
typedef Picker picker
 
typedef struct PickerMenuItemInfo PickerMenuItemInfo
 
typedef PMColornewColor
 
typedef struct ColorPickerInfo ColorPickerInfo
 
typedef struct NColorPickerInfo NColorPickerInfo
 

Enumerations

enum  { kMaximumSmallFract = 0x0000FFFF }
 
enum  { kDefaultColorPickerWidth = 383 , kDefaultColorPickerHeight = 238 }
 
enum  { kAtSpecifiedOrigin = 0 , kDeepestColorScreen = 1 , kCenterOnMainScreen = 2 }
 
enum  {
  kColorPickerDialogIsMoveable = 1 , kColorPickerDialogIsModal = 2 , kColorPickerCanModifyPalette = 4 , kColorPickerCanAnimatePalette = 8 ,
  kColorPickerAppIsColorSyncAware = 16 , kColorPickerInSystemDialog = 32 , kColorPickerInApplicationDialog = 64 , kColorPickerInPickerDialog = 128 ,
  kColorPickerDetachedFromChoices = 256 , kColorPickerCallColorProcLive = 512
}
 
enum  { uppColorChangedProcInfo = 0x000003C0 }
 
enum  { uppNColorChangedProcInfo = 0x000003C0 }
 
enum  { uppUserEventProcInfo = 0x000000D0 }
 

Functions

typedef CALLBACK_API (void, ColorChangedProcPtr)(long userData
 
typedef CALLBACK_API (void, NColorChangedProcPtr)(long userData
 
typedef CALLBACK_API (Boolean, UserEventProcPtr)(EventRecord *event)
 
typedef STACK_UPP_TYPE (ColorChangedProcPtr) ColorChangedUPP
 
typedef STACK_UPP_TYPE (NColorChangedProcPtr) NColorChangedUPP
 
typedef STACK_UPP_TYPE (UserEventProcPtr) UserEventUPP
 
SmallFract Fix2SmallFract (Fixed f)
 
Fixed SmallFract2Fix (SmallFract s)
 
void CMY2RGB (const CMYColor *cColor, RGBColor *rColor)
 
void RGB2CMY (const RGBColor *rColor, CMYColor *cColor)
 
void HSL2RGB (const HSLColor *hColor, RGBColor *rColor)
 
void RGB2HSL (const RGBColor *rColor, HSLColor *hColor)
 
void HSV2RGB (const HSVColor *hColor, RGBColor *rColor)
 
void RGB2HSV (const RGBColor *rColor, HSVColor *hColor)
 
Boolean GetColor (Point where, ConstStr255Param prompt, const RGBColor *inColor, RGBColor *outColor)
 
OSErr PickColor (ColorPickerInfo *theColorInfo)
 
OSErr NPickColor (NColorPickerInfo *theColorInfo)
 
ColorChangedUPP NewColorChangedUPP (ColorChangedProcPtr userRoutine)
 
NColorChangedUPP NewNColorChangedUPP (NColorChangedProcPtr userRoutine)
 
UserEventUPP NewUserEventUPP (UserEventProcPtr userRoutine)
 
void DisposeColorChangedUPP (ColorChangedUPP userUPP)
 
void DisposeNColorChangedUPP (NColorChangedUPP userUPP)
 
void DisposeUserEventUPP (UserEventUPP userUPP)
 
void InvokeColorChangedUPP (long userData, PMColor *newColor, ColorChangedUPP userUPP)
 
void InvokeNColorChangedUPP (long userData, NPMColor *newColor, NColorChangedUPP userUPP)
 
Boolean InvokeUserEventUPP (EventRecord *event, UserEventUPP userUPP)
 

Detailed Description

Color Picker package Interfaces.

Introduced In: System 7.5
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/

Macro Definition Documentation

◆ InvokeColorChangedUPP

#define InvokeColorChangedUPP (   userData,
  newColor,
  userUPP 
)
Value:
CALL_TWO_PARAMETER_UPP((userUPP), uppColorChangedProcInfo, (userData), \
Definition: ColorPicker.h:158

◆ InvokeNColorChangedUPP

#define InvokeNColorChangedUPP (   userData,
  newColor,
  userUPP 
)
Value:
CALL_TWO_PARAMETER_UPP((userUPP), uppNColorChangedProcInfo, (userData), \

◆ NewColorChangedUPP

#define NewColorChangedUPP (   userRoutine)
Value:
(ColorChangedUPP) \
NewRoutineDescriptor((ProcPtr)(userRoutine), uppColorChangedProcInfo, \
GetCurrentArchitecture())
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)

◆ NewNColorChangedUPP

#define NewNColorChangedUPP (   userRoutine)
Value:
(NColorChangedUPP) \
NewRoutineDescriptor((ProcPtr)(userRoutine), uppNColorChangedProcInfo, \
GetCurrentArchitecture())

◆ NewUserEventUPP

#define NewUserEventUPP (   userRoutine)
Value:
(UserEventUPP) NewRoutineDescriptor( \
(ProcPtr)(userRoutine), uppUserEventProcInfo, GetCurrentArchitecture())

Function Documentation

◆ CMY2RGB()

void CMY2RGB ( const CMYColor cColor,
RGBColor rColor 
)

CMY2RGB()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ DisposeColorChangedUPP()

void DisposeColorChangedUPP ( ColorChangedUPP  userUPP)

DisposeColorChangedUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ DisposeNColorChangedUPP()

void DisposeNColorChangedUPP ( NColorChangedUPP  userUPP)

DisposeNColorChangedUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ DisposeUserEventUPP()

void DisposeUserEventUPP ( UserEventUPP  userUPP)

DisposeUserEventUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ Fix2SmallFract()

SmallFract Fix2SmallFract ( Fixed  f)

Fix2SmallFract()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ GetColor()

Boolean GetColor ( Point  where,
ConstStr255Param  prompt,
const RGBColor inColor,
RGBColor outColor 
)

GetColor()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ HSL2RGB()

void HSL2RGB ( const HSLColor hColor,
RGBColor rColor 
)

HSL2RGB()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ HSV2RGB()

void HSV2RGB ( const HSVColor hColor,
RGBColor rColor 
)

HSV2RGB()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ InvokeColorChangedUPP()

void InvokeColorChangedUPP ( long  userData,
PMColor newColor,
ColorChangedUPP  userUPP 
)

InvokeColorChangedUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ InvokeNColorChangedUPP()

void InvokeNColorChangedUPP ( long  userData,
NPMColor newColor,
NColorChangedUPP  userUPP 
)

InvokeNColorChangedUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ InvokeUserEventUPP()

Boolean InvokeUserEventUPP ( EventRecord event,
UserEventUPP  userUPP 
)

InvokeUserEventUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ NewColorChangedUPP()

ColorChangedUPP NewColorChangedUPP ( ColorChangedProcPtr  userRoutine)

NewColorChangedUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ NewNColorChangedUPP()

NColorChangedUPP NewNColorChangedUPP ( NColorChangedProcPtr  userRoutine)

NewNColorChangedUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ NewUserEventUPP()

UserEventUPP NewUserEventUPP ( UserEventProcPtr  userRoutine)

NewUserEventUPP()

Non-Carbon CFM: available as macro/inline
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ NPickColor()

OSErr NPickColor ( NColorPickerInfo theColorInfo)

NPickColor()

Non-Carbon CFM: in ColorPickerLib 2.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ PickColor()

OSErr PickColor ( ColorPickerInfo theColorInfo)

PickColor()

Non-Carbon CFM: in ColorPickerLib 2.0 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ RGB2CMY()

void RGB2CMY ( const RGBColor rColor,
CMYColor cColor 
)

RGB2CMY()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ RGB2HSL()

void RGB2HSL ( const RGBColor rColor,
HSLColor hColor 
)

RGB2HSL()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ RGB2HSV()

void RGB2HSV ( const RGBColor rColor,
HSVColor hColor 
)

RGB2HSV()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available

◆ SmallFract2Fix()

Fixed SmallFract2Fix ( SmallFract  s)

SmallFract2Fix()

Non-Carbon CFM: in InterfaceLib 7.1 and later
Carbon Lib: in CarbonLib 1.0 and later
Mac OS X: not available