Public Member Functions

HSVCallback Class Reference

Search for all occurrences

Detailed Description

See also:
Class ColorPicker, List of Color Conversion Utilities.

Description:
This class provides methods that are called when using the modeless color picker. All methods of this class are virtual.

#include <hsv.h>

Inheritance diagram for HSVCallback:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~HSVCallback ()
virtual void  ButtonDown ()
virtual void  ButtonUp (BOOL accept)
virtual void  ColorChanged (DWORD col, BOOL buttonUp)
virtual void  ColorChanged (AColor col, BOOL ButtonUp)
virtual void  BeingDestroyed (IPoint2 pos)=0
virtual CoreExport void  OnOK ()
virtual CoreExport void  OnCancel ()

Constructor & Destructor Documentation

virtual ~HSVCallback ( ) [inline, virtual]
Remarks:
Destructor.
{;}

Member Function Documentation

virtual void ButtonDown ( ) [inline, virtual]
Remarks:
This method is called when the user has pressed the mouse button.
Default Implementation:
{}
{}
virtual void ButtonUp ( BOOL  accept ) [inline, virtual]
Remarks:
This method is called when the user has released the mouse button.
Parameters:
BOOL accept

TRUE if the mouse button was released normally; FALSE if the user canceled.
Default Implementation:
{}
{}
virtual void ColorChanged ( DWORD  col,
BOOL  buttonUp 
) [inline, virtual]
Remarks:
This callback proc gets called after the user changes the color. Implement this method to handle interactive updates.
Parameters:
DWORD col

The new color.

BOOL buttonUp

Indicates if the mouse button has been released (is up). TRUE if the button is up; FALSE if it is down.
{}
virtual void ColorChanged ( AColor  col,
BOOL  ButtonUp 
) [inline, virtual]
Remarks:
This callback proc gets called after the user changes the color. Implement this method to handle interactive updates.
Parameters:
AColor col

The new color.

BOOL buttonUp

Indicates if the mouse button has been released (is up). TRUE if the button is up; FALSE if it is down.
{}
virtual void BeingDestroyed ( IPoint2  pos ) [pure virtual]
Remarks:
This callback proc gets called when the color picker is closed:
Parameters:
IPoint2 pos

The last screen position of the color picker before it was closed.
virtual CoreExport void OnOK ( ) [virtual]
Remarks:
This callback proc gets called when user click OK to confirm the color modification. Default Implementation: Do Nothing
virtual CoreExport void OnCancel ( ) [virtual]
Remarks:
This callback proc gets called when user click Cancel to cancel the color modification. Default Implementation: Do Nothing

HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback
HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback HSVCallback