GH_ResizableAttributesT Class |
Namespace: Grasshopper.Kernel.Attributes
public abstract class GH_ResizableAttributes<T> : GH_Attributes<T> where T : IGH_DocumentObject
The GH_ResizableAttributesT type exposes the following members.
Name | Description | |
---|---|---|
GH_ResizableAttributesT | Initializes a new instance of the GH_ResizableAttributesT class |
Name | Description | |
---|---|---|
AllowMessageBalloon |
Gets a value indicating whether these attributes allow warning and
error balloons to be drawn on top of them.
(Inherited from GH_AttributesT.) | |
Bounds |
Gets the rectangle that contains the active content of the attributes.
Typically the Contents determine the active area for menus, tooltips etc.
Attributes are not supposed to draw objects beyond the Bounds.
(Inherited from GH_AttributesT.) | |
DocObject |
Gets the owner object of these attributes.
(Inherited from GH_AttributesT.) | |
GetTopLevel |
Gets the top-level attributes of the attribute stack these attributes belong to.
(Inherited from GH_AttributesT.) | |
HasInputGrip |
Gets a value indicating whether or not these attributes have an input grip.
(Inherited from GH_AttributesT.) | |
HasOutputGrip |
Gets a value indicating whether or not these attributes have an output grip.
(Inherited from GH_AttributesT.) | |
InputGrip |
Gets the input grip location for these attributes.
If HasInputGrip equals False, this point is meaningless.
(Inherited from GH_AttributesT.) | |
InstanceGuid |
Gets the instance ID of the document object that owns these attributes.
(Inherited from GH_AttributesT.) | |
IsTopLevel |
Gets whether these attributes are top_level (i.e. no Parent attributes)
(Inherited from GH_AttributesT.) | |
MaximumSize | ||
MinimumSize | ||
OutputGrip |
Gets the output grip location for these attributes.
If HasOutputGrip equals False, this point is meaningless.
(Inherited from GH_AttributesT.) | |
Owner |
Gets the type-safe owner object of these attributes. This property is identical to
the DocObject property.
(Inherited from GH_AttributesT.) | |
Parent |
Gets or sets the parent attributes.
Top level attributes do not have parents.
(Inherited from GH_AttributesT.) | |
PathName |
Get a description of the location of these attributes
within the local attribute stack.
(Inherited from GH_AttributesT.) | |
Pivot |
Gets or sets the pivot for these attributes. The pivot controls the general placement
of the attributes. If you want to move the attributes, change the pivot location.
(Inherited from GH_AttributesT.) | |
Selected |
Gets or sets the selected state of the top-level attributes.
(Inherited from GH_AttributesT.) | |
SizingBorders | ||
TooltipEnabled |
Gets the tooltip enabled value. If False, no further tooltip functions will be called.
(Inherited from GH_AttributesT.) |
Name | Description | |
---|---|---|
AppendToAttributeTree |
Recursively append these attributes and all child attributes to the attribute list.
(Inherited from GH_AttributesT.) | |
ExpireLayout |
Expires the entire layout of the attributes. When overridden,
implementer must place a call to the base class ExpireLayout().
(Inherited from GH_AttributesT.) | |
InvalidateCanvas |
If the mouse location should cause a canvas invalidation then return true.
You only need to override this function if you draw objects that are dependant
on cursor positions outside the bounds of the attributes.
(Inherited from GH_AttributesT.) | |
IsMenuRegion |
Determines whether a point is available for context menu popups.
By default, IsMenuRegion calls IsPickRegion(PointF).
(Inherited from GH_AttributesT.) | |
IsPickRegion(PointF) |
Determines whether a point is within the pickable region for this object.
By default, any point inside the Bounds is treated as pickable.
(Inherited from GH_AttributesT.) | |
IsPickRegion(RectangleF, GH_PickBox) |
Determines whether a rectangle is a valid pick region for this object.
By default, the picking rectangle is intersected with the Bounds rectangle.
(Inherited from GH_AttributesT.) | |
IsTooltipRegion |
Determines whether a point is available for tooltip popups.
By default, IsMenuRegion calls IsTooltipRegion(PointF).
(Inherited from GH_AttributesT.) | |
Layout |
Perform dedicated layout logic specific to this particular DocumentObject.
This method is called from PerformLayout if the existing layout is stale.
(Inherited from GH_AttributesT.) | |
NewInstanceGuid |
Generate a new instance GUID for the owner object.
(Inherited from GH_AttributesT.) | |
NewInstanceGuid(Guid) |
Generate a new instance GUID for the owner object. Do not use this overload
unless you're > 1.95m and called David.
(Inherited from GH_AttributesT.) | |
PerformLayout |
Recompute the layout for these attributes. This function is automatically called during
Drawing operations, so you typically don't have to.
(Inherited from GH_AttributesT.) | |
PrepareForRender |
This method will always be called exactly once prior to Render().
This would be a good place to make sure all the necessary GUI data is up and running.
(Inherited from GH_AttributesT.) | |
Read | (Inherited from GH_AttributesT.) | |
Render |
Override this function to supply custom Render logic.
(Inherited from GH_AttributesT.) | |
RenderIncomingWires(GH_Painter, IEnumerableIGH_Param, GH_ParamWireDisplay) |
Utility function for derived classes. This method draws all the wires going into the
left side of the attributes.
(Inherited from GH_AttributesT.) | |
RenderIncomingWires(GH_Painter, IEnumerableIGH_Param, IEnumerablePen) |
Utility function for derived classes. This method draws all the wires going into the
left side of the attributes.
(Inherited from GH_AttributesT.) | |
RenderToCanvas |
Render these attributes into a Canvas control. This function places calls to
PrepareForRender() and Render(), you should override those.
(Inherited from GH_AttributesT.) | |
RespondToKeyDown | (Inherited from GH_AttributesT.) | |
RespondToKeyUp | (Inherited from GH_AttributesT.) | |
RespondToMouseDoubleClick | (Inherited from GH_AttributesT.) | |
RespondToMouseDown | (Overrides GH_AttributesTRespondToMouseDown(GH_Canvas, GH_CanvasMouseEvent).) | |
RespondToMouseMove | (Overrides GH_AttributesTRespondToMouseMove(GH_Canvas, GH_CanvasMouseEvent).) | |
RespondToMouseUp | (Overrides GH_AttributesTRespondToMouseUp(GH_Canvas, GH_CanvasMouseEvent).) | |
SetupTooltip |
Populates the Grasshopper tooltip with all relevant data.
If this function returns True, it is assumed that all possible
fields have been filled out and the tooltip is ready for display.
(Inherited from GH_AttributesT.) | |
Write | (Inherited from GH_AttributesT.) |