Skip to content

GH_ColourPickerBase

Public Class

Provides Colour picker GUI not tied to a control-handle.

Inheritance Hierarchy

System.Object
Grasshopper.GUI.Base.GH_ColourPickerBase

Namespace: Grasshopper.GUI.Base

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public class GH_ColourPickerBase

The GH_ColourPickerBase type exposes the following members.

Constructors

Name

Description


Public Method

Create a new instance of the Colour Picker base control. This constructor assigns the default Colour space model and involves a call to the Grasshopper core settings server. You must call SetupColourPicker() prior to rendering this control on screen.


Properties

Name

Description


Public Property

Gets or sets a value indicating whether the width and height of the Bounds are adjusted to fit the UI.


Public Property

Gets or sets the background colour of the picker.


Public Property

Gets the original base colour for this picker. Use SetupColourPicker to assign this colour.


Public Property

Gets or sets the Bounds for this control.


Public Property

Gets the Colour space mode used in this picker.


Public Property

Gets the ideal height for this colour picker given it’s width and UI settings.


Public Property

Gets or sets whether or not the alpha slider is included in the UI.


Public Property

Gets or sets whether the background of the picker is drawn.


Public Property

Gets or sets whether or not the three basic channel sliders are included in the UI.


Public Property

Gets the rectangle in which the eye-dropped preview will be drawn.


Public Property

Gets or sets the Font used in this Colour Picker. Do not Dispose the Font returned by this property.


Public Property

Gets whether any of the slider is currently displaying a text input box.


Public Property

Gets or sets the Padding for this control.


Public Property

Gets the picked colour.


Public Property

Gets the rectangle containing the eye-dropper function.


Methods

Name

Description


Public Method

Raise the Invalidated event.


Public Method

Respond to mouse-click events.


Public Method

Respond to mouse-doubleclick events.


Public Method

Respond to mouse-down events.


Public Method

Respond to mouse-move events.


Public Method

Respond to mouse-up events.


Public Method

Raise the ColorChanged event.


Public Method

Render this slider into a Graphics context.


Public Method

Public Method

Public Method

Public Method

Setup all UI elements.


Public Method

Setup all UI elements.


Events

Name

Description


Public Event

Raised whenever the color of this picker is changed due to User-Interface methods.


Public Event

Raised whenever a redraw is required.