Rhino C++ API
8.13
|
#include <IRhRdkColorPicker.h>
Public Member Functions | |
virtual void | DeleteThis (void)=0 |
virtual void * | EVF (const wchar_t *, void *)=0 |
virtual bool | GetCustomNamedColors (ON_ClassArray< CRhinoNamedColor > &aColorOut) const =0 |
virtual bool | MenuString (ON_wString &sOut) const =0 |
virtual void | NormalizeColor (CRhRdkColor &colInOut) const =0 |
virtual void | SetButtonColor (const CRhRdkColor &col) const =0 |
virtual bool | ShowPicker (CRhRdkColor &colInOut, HWND pParent)=0 |
virtual RDK_DEPRECATED bool | ShowPicker (CRhRdkColor &colInOut, HWND pParent, class CRhRdkColorButton *pButton) |
Protected Member Functions | |
virtual | ~IRhRdkColorPicker () |
STARTING WITH RHINO 8, THIS CONTROL IS DEPRECATED AND DOES NOT WORK. See [DEPCTL]
|
inlineprotectedvirtual |
|
pure virtual |
You must implement this method as
|
pure virtual |
Emergency virtual function for future expansion.
|
pure virtual |
Implement this method to return an array of custom named colors to be displayed on the left side of the color picker instead of the defaults.
aColorOut | accepts the custom colors if you plan to return true. |
|
pure virtual |
Optionally implement this method to return the menu string describing the picker and return true. If you just want the default text "Color Picker..." you can simply return false.
|
pure virtual |
Called when a color is about to be applied to a color button. The implementation of this method typically does nothing, but you may wish to implement special behaviour to modify the color. For example, a grayscale picker would convert the color to grayscale.
|
pure virtual |
Called when the user picks a color. This can happen once when the color picker is dismissed or it can be called many times as the user plays with the color picker, depending on how the color picker is implemented.
|
pure virtual |
Display the color picker user interface.
colInOut | contains the initial color value and accepts the user's new color choice. |
pParent | is the parent window of the picker. This should not be the color button itself. |
|
virtual |
This method is deprecated in favor of the one below.