StandardIcons
Static class providing easy access to the construction of various icons.
Properties
Grasshopper2GdiIcon
#public static Icon Grasshopper2GdiIcon { get; }
Gets a GDI ico instance with the Grasshopper 2 logo.
Grasshopper2Icon
#public static Icon Grasshopper2Icon { get; }
Gets the Grasshopper 2 icon in an Icon instance stored under various sizes.
Grasshopper2IconModel
#public static Icon Grasshopper2IconModel { get; }
Gets a GDI ico describing the Icon Colour space.
Methods
AnimatedCountDown
#Create an animated countdown icon.
Parameters:
| colour (Kel) | Colour of icon shapes. |
| duration (TimeSpan) | Fixed duration for count-down animation. |
| start (DateTime = null) | Time of countdown start. Do not override this field unless you specifically do not want the animation to start right now. Times must be specified in UTC format. |
| format (string = "{0:0.0}") |
AnimatedSphere
#Create an animated icon which indicates a busy state.
Parameters:
| colour (Kel = null) | Colour of icon shapes. |
AnimatedSquare
#Create an animated icon which indicates a busy state.
Arrow
#Create an icon which looks like an arrow.
Parameters:
| colour (Kel = null) | Arrow fill colour. |
| direction (StandardIcons.ArrowDirection = ArrowDirection.E) | Arrow direction. |
Capsule
#Create an icon which acts as a box for another icon.
ColourCrystal
#public static VectorIcon ColourCrystal(Kel edge, Color[] enabledColours, Color[] disabledColours = null)
Create a hexagonal crystal-like icon
Parameters:
| edge (Kel) | Colour of edge. |
| enabledColours (Color[]) | Array of six fill colours to be used in the on-state. |
| disabledColours (Color[] = null) | Array of six fill colours to be used in the off-state. If none specified, the greyscale versions of the 'enabled' colours will be used. |
Returns: Crystal icon.
ColourGrid
#Create a standard randomized square grid of sampled colours.
ColourPalette
#Gets the icon associated with the custom palette control.
Parameters:
| colour (Kel = null) |
ColourPipette
#Gets the icon associated with the screen colour sampler.
Parameters:
| colour (Kel = null) |
ColourSplatter
#Creates a paint splatter icon with drips slaved to unit state.
Parameters:
| colour (Kel = null) |
CreateSpecialIcon
#Create a typical special object icon.
DocumentationState
#Gets the icon associated with the given documentation state.
Parameters:
| state (ProcessState) |
Key
#Gets the standard icon associated with the given Key. Note that not all Keys have icons. Modifier keys and letter keys are currently supported, symbol, number and function keys are not (yet) available.
Parameters:
| key (char) |
Returns: Standard key icon or null.
Key
#Gets the standard icon associated with the given Key. Note that not all Keys have icons. Modifier keys and letter keys are currently supported, symbol, number and function keys are not (yet) available.
Parameters:
| key (Keys) |
Returns: Standard key icon or null.
LightBulb
#Create the standard lightbulb icon.
Parameters:
| edges (Kel = null) | Colour of edges. |
| fill (Color = null) | Colour of the bulb fill. |
Returns: Lightbulb icon.
Magnet
#Create the standard magnet icon.
Parameters:
| edge (Kel = null) | Edge colour. |
| poles (Color = null) | Colour of bar. |
Returns: Icon.
Magnifier
#Create the standard magnifier glass icon.
Message
#Gets a triangular message symbol icon.
Parameters:
| level (MessageLevel) | Message level. |
| skin (MessagingSkin) | Messaging skin. |
ModifierLengthDomain
#Gets the standard icon used for the Length domain modifier on curve and surface parameters.
ModifierNaturalDomain
#Gets the standard icon used for the Natural domain modifier on curve and surface parameters.
ModifierNormalDomain
#Gets the standard icon used for the Normalise modifier on curve and surface parameters.
ModifierNullToFalse
#Gets the standard icon used for the Null -> False modifier on boolean parameters.
ModifierReduceAngles
#Gets the standard icon used for the angle reduction modifier on angle parameters.
PaddedIcon
#Add padding around an icon.
SunMoon
#Create the icon which toggles between Sun (state=1) and Moon (state=0) states.
Text
#Create an icon which consists of some textual characters.