Skip to content

GH_Capsule

Public Class

Class used to draw standard Grasshopper interface boxes.

Inheritance Hierarchy

System.Object
Grasshopper.GUI.Canvas.GH_Capsule

Namespace: Grasshopper.GUI.Canvas

Assembly: Grasshopper (in Grasshopper.dll)

Syntax

public class GH_Capsule : IDisposable

The GH_Capsule type exposes the following members.

Properties

Name

Description


Public Property

Gets the outline box for this Capsule.


Public Property

Gets the content box for this Capsule. Text and icons are drawn inside this box.


Public Property

Gets or sets the Font to use for text rendering.


Public Property

Gets the highlight size for this Capsule. Zero or negative means there is no highlight.


Public Property

Gets the graphics path that describes the highlight bar shape of the capsule.


Public Property

Gets the list of locally defined input grip locations.


Public Property

Gets whether the left edge of this capsule is jagged.


Public Property

Gets whether the right edge of this capsule is jagged.


Public Property

Gets the largest radius defined for this capsule.


Public Property

Gets the graphics path that describes the outer edge of the capsule.


Public Property

Gets the list of locally defined output grip locations.


Public Property

Gets or sets the palette for this Capsule.


Public Property

Gets the radius of the rounded corners of this Capsule.


Public Property
RenderEngine

Gets the RenderEngine associated with this capsule. You typically don’t need to go this far, just use one of the Render() overloads on GH_Capsule directly.


Public Property

Gets or sets the text to render in the content box.


Public Property

Gets or sets the orientation of the text within the content box.


Methods

Name

Description


Public Method

Add an input grip to this UI Box.


Public Method

Add an input grip to this UI Box.


Public Method

Add an input grip to this UI Box. This is the recommended overload.


Public Method

Add an input grip to this UI Box.


Public Method

Add an output grip to this UI Box.


Public Method

Add an output grip to this UI Box.


Public Method

Add an output grip to this UI Box. This is the recommended overload.


Public Method

Add an output grip to this UI Box.


Public Method

Test a point for capsule containment.


Public Method
Static Member

Create a new blank capsule with default radius and highlight dimensions.


Public Method
Static Member

Create a new blank capsule with default radius and highlight dimensions.


Public Method
Static Member

Create a new blank capsule.


Public Method
Static Member

Create a new blank capsule.


Public Method
Static Member

Create a new blank capsule.


Public Method
Static Member

Create a new blank capsule.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method
Static Member

Create a new capsule with content text.


Public Method

Releases all resources used by the GH_Capsule


Protected method

Releases the unmanaged resources used by the GH_Capsule and optionally releases the managed resources


Public Method

Have this capsule draw itself onto a Graphics surface with a custom Style override.


Public Method

Have this capsule draw itself onto a Graphics surface with a custom colour override.


Public Method

Have this capsule draw itself onto a Graphics surface with a custom Style override.


Public Method

Have this capsule draw itself onto a Graphics surface with a custom colour override.


Public Method

Render the capsule onto a graphics context.


Public Method

Render the capsule onto a graphics context.


Public Method

Assign left and right jagged edges.


Fields

Name

Description


Public Field
Static Member
DefaultHighlight

The default size (in pixel units) of the highlight bar.


Public Field
Static Member
DefaultRadius

The default radius (in pixel units) of the rounded corners.