StandardIcons

public static class 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

AccessItem

#
public static IIcon AccessItem()
Gets the standard icon used to indicate a parameter access level of Access.Item

AccessTree

#
public static IIcon AccessTree()
Gets the standard icon used to indicate a parameter access level of Access.Item

AccessTwig

#
public static IIcon AccessTwig()
Gets the standard icon used to indicate a parameter access level of Access.Item

ActivityIcon

#
public static IIcon ActivityIcon()
Gets the default activity (enabled/disabled) icon.

Add

#
public static IIcon Add(Kel colour = null)
Create the standard addition icon.
colour (Kel = null)

AnimatedCountDown

#
public static IIcon AnimatedCountDown(Kel colour, TimeSpan duration, DateTime start = default(DateTime), string format = "{0:0.0}")
Create an animated countdown icon.
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

#
public static IIcon AnimatedSphere(Kel colour = null)
Create an animated icon which indicates a busy state.
colour (Kel = null)Colour of icon shapes.

AnimatedSquare

#
public static IIcon AnimatedSquare(Kel face = null, Kel axis = null)
Create an animated icon which indicates a busy state.
face (Kel = null)
axis (Kel = null)

Arrow

#
public static IIcon Arrow(Kel colour = null, ArrowDirection direction = ArrowDirection.E)
Create an icon which looks like an arrow.
colour (Kel = null)Arrow fill colour.
direction (StandardIcons.ArrowDirection = ArrowDirection.E)Arrow direction.

Capsule

#
public static IIcon Capsule(Kel colour, IIcon content, float sizeHint)
Create an icon which acts as a box for another icon.
colour (Kel)Capsule fill colour.
content (IIcon)Icon inside box.
sizeHint (float)Size at which the icon is supposed to be drawn at a scale of one-unit-per-pixel.

ColourCrystal

#
public static VectorIcon ColourCrystal(Kel edge, Color[] enabledColours, Color[] disabledColours = null)
Create a hexagonal crystal-like icon
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.
Crystal icon.

ColourGrid

#
public static IIcon ColourGrid(Func<double, Color> function)
Create a standard randomized square grid of sampled colours.
function (Func<double, Color>)Function for colour sampling, it will be invoked with normalised parameters.

ColourModelCmy

#
public static IIcon ColourModelCmy()
Gets the icon associated with the CMY colour model.
Icon.

ColourModelHsl

#
public static IIcon ColourModelHsl()
Gets the icon associated with the HSL colour model.
Icon.

ColourModelHsp

#
public static IIcon ColourModelHsp()
Gets the icon associated with the HSP colour model.
Icon.

ColourModelHsv

#
public static IIcon ColourModelHsv()
Gets the icon associated with the HSV colour model.
Icon.

ColourModelIcon

#
public static IIcon ColourModelIcon()
Gets the icon associated with the Icon colour model.
Icon.

ColourModelLab

#
public static IIcon ColourModelLab()
Gets the icon associated with the L*a*b* colour model.
Icon.

ColourModelRgb

#
public static IIcon ColourModelRgb()
Gets the icon associated with the RGB colour model.
Icon.

ColourModelRgbLinear

#
public static IIcon ColourModelRgbLinear()
Gets the icon associated with the linear RGB colour model.
Icon.

ColourModelXyz

#
public static IIcon ColourModelXyz()
Gets the icon associated with the XYZ colour model.
Icon.

ColourModelYxy

#
public static IIcon ColourModelYxy()
Gets the icon associated with the Yxy colour model.
Icon.

ColourPalette

#
public static VectorIcon ColourPalette(Kel colour = null)
Gets the icon associated with the custom palette control.
colour (Kel = null)

ColourPipette

#
public static VectorIcon ColourPipette(Kel colour = null)
Gets the icon associated with the screen colour sampler.
colour (Kel = null)

ColourSplatter

#
public static VectorIcon ColourSplatter(Kel colour = null)
Creates a paint splatter icon with drips slaved to unit state.
colour (Kel = null)

ColourSwatch

#
public static IIcon ColourSwatch(Color colour)
Gets an icon that represents a single colour.
colour (Color)

CreateSpecialIcon

#
public static IIcon CreateSpecialIcon(Kel top, Kel bottom, IIcon content)
Create a typical special object icon.
top (Kel)Colour along top of icon frame.
bottom (Kel)Colour along bottom of icon frame. Leave null to use top colour again.
content (IIcon)Icon to display inside the frame.

Delete

#
public static IIcon Delete(Kel colour = null)
Create the standard delete icon.
colour (Kel = null)

DocumentationState

#
public static IIcon DocumentationState(ProcessState state)
Gets the icon associated with the given documentation state.
state (ProcessState)

GridSnap

#
public static IIcon GridSnap(Kel edge = null)
Create the standard grid snapping icon.
edge (Kel = null)Colour of grid lines.

Key

#
public static VectorIcon Key(char 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.
key (char)
Standard key icon or null.

Key

#
public static VectorIcon Key(Keys 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.
key (Keys)
Standard key icon or null.

LetterDisc

#
public static IIcon LetterDisc(string name)
A disc with the two starting characters of a name.
name (string)

LightBulb

#
public static IIcon LightBulb(Kel edges = null, Color fill = default(Color))
Create the standard lightbulb icon.
edges (Kel = null)Colour of edges.
fill (Color = null)Colour of the bulb fill.
Lightbulb icon.

LoopAccumulation

#
public static IIcon LoopAccumulation(Accumulation accumulation)
Gets the standard looping accumulation icon.
accumulation (Accumulation)

Magnet

#
public static IIcon Magnet(Kel edge = null, Color poles = default(Color))
Create the standard magnet icon.
edge (Kel = null)Edge colour.
poles (Color = null)Colour of bar.
Icon.

Magnifier

#
public static IIcon Magnifier(Kel edges = null, Kel fill = null)
Create the standard magnifier glass icon.
edges (Kel = null)Colour of edges.
fill (Kel = null)Colour of fill.
Icon.

Message

#
public static IIcon Message(Color colour)
Gets a triangular message symbol icon.
colour (Color)Fill colour for icon.

Message

#
public static IIcon Message(MessageLevel level, MessagingSkin skin)
Gets a triangular message symbol icon.
level (MessageLevel)Message level.
skin (MessagingSkin)Messaging skin.

ModifierAngleDegrees

#
public static IIcon ModifierAngleDegrees()
Gets the standard icon used for the degree modifier on angle parameters.

ModifierAngleRadians

#
public static IIcon ModifierAngleRadians()
Gets the standard icon used for the radian modifier on angle parameters.

ModifierAngleTurns

#
public static IIcon ModifierAngleTurns()
Gets the standard icon used for the turn modifier on angle parameters.

ModifierAssignMetas

#
public static IIcon ModifierAssignMetas()
Gets the standard icon used for the per-parameter AssignMetaData process.

ModifierAutoUpdate

#
public static IIcon ModifierAutoUpdate()
Gets the standard icon used for the auto-update toggle on text parameters.

ModifierExpression

#
public static IIcon ModifierExpression()
Gets the standard icon used for the expression modifier.

ModifierFlatten

#
public static IIcon ModifierFlatten()
Gets the standard icon used for the Modifiers.Flatten modifier.

ModifierFlipCurve

#
public static IIcon ModifierFlipCurve()
Gets the standard icon used for the Flip modifier on curve parameters.

ModifierFlipVector

#
public static IIcon ModifierFlipVector()
Gets the standard icon used for the Flip modifier on vector parameters.

ModifierGraft

#
public static IIcon ModifierGraft()
Gets the standard icon used for the Modifiers.Graft modifier.

ModifierIncrement

#
public static IIcon ModifierIncrement()
Gets the standard icon used for the Modifiers.Increment modifier.

ModifierLengthDomain

#
public static IIcon ModifierLengthDomain()
Gets the standard icon used for the Length domain modifier on curve and surface parameters.

ModifierLowercase

#
public static IIcon ModifierLowercase()
Gets the standard icon used for the Lowercase modifier on text parameters.

ModifierNaturalDomain

#
public static IIcon ModifierNaturalDomain()
Gets the standard icon used for the Natural domain modifier on curve and surface parameters.

ModifierNegate

#
public static IIcon ModifierNegate()
Gets the standard icon used for the Negation modifier on boolean parameters.

ModifierNormalDomain

#
public static IIcon ModifierNormalDomain()
Gets the standard icon used for the Normalise modifier on curve and surface parameters.

ModifierNullToFalse

#
public static IIcon ModifierNullToFalse()
Gets the standard icon used for the Null -> False modifier on boolean parameters.

ModifierNullToTrue

#
public static IIcon ModifierNullToTrue()
Gets the standard icon used for the Null -> True modifier on boolean parameters.

ModifierRandomise

#
public static IIcon ModifierRandomise()
Gets the standard icon used for the Randomise modifier.

ModifierReduceAngles

#
public static IIcon ModifierReduceAngles()
Gets the standard icon used for the angle reduction modifier on angle parameters.

ModifierRemoveEmpty

#
public static IIcon ModifierRemoveEmpty()
Gets the standard icon used for the Modifiers.RemoveEmptyTwigs modifier.

ModifierRemoveInvalid

#
public static IIcon ModifierRemoveInvalid()
Gets the standard icon used for the Modifiers.RemoveInvalidItems modifier.

ModifierRemoveMetas

#
public static IIcon ModifierRemoveMetas()
Gets the standard icon used for the Modifiers.RemoveMetaData modifier.

ModifierRemoveNulls

#
public static IIcon ModifierRemoveNulls()
Gets the standard icon used for the Modifiers.RemoveNullItems modifier.

ModifierRenumber

#
public static IIcon ModifierRenumber()
Gets the standard icon used for the Modifiers.Renumber modifier.

ModifierReverse

#
public static IIcon ModifierReverse()
Gets the standard icon used for the Modifiers.Reverse modifier.

ModifierSimplify

#
public static IIcon ModifierSimplify()
Gets the standard icon used for the Modifiers.Simplify modifier.

ModifierSort

#
public static IIcon ModifierSort()
Gets the standard icon used for the Modifiers.Sort modifier.

ModifierTrim

#
public static IIcon ModifierTrim()
Gets the standard icon used for the Modifiers.Trim modifier.

ModifierUnitise

#
public static IIcon ModifierUnitise()

ModifierUppercase

#
public static IIcon ModifierUppercase()
Gets the standard icon used for the Uppercase modifier on text parameters.

ModifierWhitespace

#
public static IIcon ModifierWhitespace()
Gets the standard icon used for the Wordcase modifier on text parameters.

ModifierWordcase

#
public static IIcon ModifierWordcase()
Gets the standard icon used for the Wordcase modifier on text parameters.

PaddedIcon

#
public static IIcon PaddedIcon(IIcon icon, int padding)
Add padding around an icon.
icon (IIcon)
padding (int)

ParameterAccess

#
public static IIcon ParameterAccess(Access access)
Gets the icon for the given access.
access (Access)

ParameterRepeat

#
public static IIcon ParameterRepeat(Access access)
Gets the icon for the given looping repeat method.
access (Access)

PenCapIcon

#
public static IIcon PenCapIcon(PenLineCap cap)
Gets the icon for the given pen style.
cap (PenLineCap)

PreviewIcon

#
public static IIcon PreviewIcon()
Gets the default preview state icon.

Snippet

#
public static IIcon Snippet()
Gets the icon associated with snippets.

SunMoon

#
public static IIcon SunMoon(Kel sun = null, Kel moon = null)
Create the icon which toggles between Sun (state=1) and Moon (state=0) states.
sun (Kel = null)
moon (Kel = null)

Text

#
public static IIcon Text(string text, Kel colour, float scale, bool bold, bool italic)
Create an icon which consists of some textual characters.
text (string)Text.
colour (Kel)Colour of text.
scale (float)Text scaling.
bold (bool)Bold style.
italic (bool)Italic style.
Text icon.

Text

#
public static IIcon Text(string text, Kel colour, float scale)
Create an icon which consists of some textual characters.
text (string)Text.
colour (Kel)Colour of text.
scale (float)Text scaling.
Text icon.