Skip to content

Grasshopper.GUI.Base

This namespace contains general purpose UI elements that have been divorced from winforms Control handles. This allows them to be rendered on screen as part of a larger constellation of UI elements. There are dedicated winforms control implementations of all the elements in this namespace in the Grasshopper.GUI namespace.

Classes

Class

Description


Public Class
GH_ColourCube

Maintains a collection of graphical shapes and coordinates that specify important features of the Colour Space Cube graphics.


Public Class
GH_ColourPickerBase

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


Public Class
GH_ColourPickerEventArgs

Arguments passed via GH_SliderBase.ValueChanged events.


Public Class
GH_DigitNumber

Maintains and provides functionality for evaluating and modifying numbers as used in the GH_DigitScrollerBase control.


Public Class
GH_DigitScrollerBase

Provides Numeric digit scrolling GUI not tied to a control-handle.


Public Class
GH_DigitScrollerEventArgs

Arguments passed via GH_digitScrollerBase.ValueChanged events.


Public Class
GH_ScrollBarVerticalBase

Provides basic vertical scroll bar logic.


Public Class
GH_SliderBase

Provides Numeric slider GUI not tied to a control-handle.


Public Class
GH_SliderEventArgs

Arguments passed via GH_SliderBase.ValueChanged events.


Public Class
GH_TextBoxInputBase

Structures

Structure

Description


Public Struct
SliderSnapRange

Represents a snap range on a slider.


Delegates

Delegate

Description


Public delegate

GH_ColourPickerBase.ColorChangedEventHandler

Public delegate

GH_ColourPickerBase.InvalidatedEventHandler

Public delegate

GH_DigitScrollerBase.InvalidatedEventHandler

Public delegate

GH_DigitScrollerBase.ValueChangedEventHandler

Public delegate

GH_SliderBase.DrawSliderChannel

This delegate is used to intervene in the slider drawing process.


Public delegate

GH_SliderBase.TextInputHandler

Delegate used during Text Input handling.


Public delegate

GH_SliderBase.ValueChangedEventHandler

Enumerations

Enumeration

Description


Public Enum
GH_ColourSpace

Enumerates the different colour spaces supported by the GH_ColourPickerBase class.


Public Enum
GH_DigitAlign

Enumerates the possible alignments for digits inside the GH_DigitScroller control.


Public Enum
GH_DigitScrollerBase.GH_MouseAction

Enumerates the possible actions due to mouse-down mouse-move events.


Public Enum
GH_SliderAccuracy

Enumerates the possible numeric slider accuracies.


Public Enum
GH_SliderGripDisplay

Enumerates the possible slider grip displays.


Public Enum
GH_SliderRailDisplay

Enumerates the possible slider rail displays.


Public Enum
GH_SliderTickDisplay

Enumerates the possible slider tick displays.