Capsule
ReferencesRepresents the basic Grasshopper UI capsule object. A capsule is a slab with optional plugs and messaging bar.
Constructors
Properties
Methods
AddInputPlug
#Add an input plug at a given y-coordinate.
AddOutputPlug
#Add an output plug at a given y-coordinate.
CreateFromInner
#Create a capsule from the inner (apex) bounds.
Parameters:
| shape (Shape) | Capsule shape. |
| innerBounds (RectangleF) | Bounds of the apex face. |
CreateFromOuter
#Create a capsule from the outer bounds.
Parameters:
| shape (Shape) | Capsule shape. |
| outerBounds (RectangleF) | Outer bounds. |
Draw
#Draw this capsule into a graphics context.
Draw
#Draw this capsule into a graphics context.
DrawEdges
#Draw the silhouette edges. This is typically the fifth and last part of the capsule drawing process, after DrawOverlay(Graphics, Skin, Shade).
DrawFaces
#Draw the apex and side faces. This is typically the second part of the capsule drawing process, after DrawGrips(Graphics, Skin).
DrawGrips
#Draw all grips. This is typically the first part of the capsule drawing process.
Parameters:
| graphics (Graphics) | |
| skin (Skin) |
DrawMessaging
#Draw the messaging hints, if any. This is typically the third part of the capsule drawing process, after DrawFaces(Graphics, Skin, Shade).
Parameters:
| graphics (Graphics) | |
| skin (Skin) |
DrawOverlay
#Draw the overlay. This is typically the fourth part of the capsule drawing process, after DrawMessaging(Graphics, Skin).