Constructors

GH_PanelAttributes

#
public GH_PanelAttributes(
owner
)

Properties

AllowMessageBalloon

Gets a value indicating whether these attributes allow warning and error balloons to be drawn on top of them.
public virtual bool AllowMessageBalloon { get; }
inherited fromGH_Attributes<T>

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.
public virtual RectangleF Bounds { get; set; }
inherited fromGH_Attributes<T>
Bounds

ContentBounds

#
Gets the bounds of the panel content. The content is basically the PanelBounds minus the TitleBounds and margins.
public Rectangle ContentBounds { get; }

DocObject

Gets the owner object of these attributes.
public IGH_DocumentObject DocObject { get; }
inherited fromGH_Attributes<T>
DocObject

GetTopLevel

Gets the top-level attributes of the attribute stack these attributes belong to.
public IGH_Attributes GetTopLevel { get; }
inherited fromGH_Attributes<T>
GetTopLevel

HasInputGrip

Gets a value indicating whether or not these attributes have an input grip.
public virtual bool HasInputGrip { get; }
inherited fromGH_Attributes<T>
HasInputGrip

HasOutputGrip

Gets a value indicating whether or not these attributes have an output grip.
public virtual bool HasOutputGrip { get; }
inherited fromGH_Attributes<T>
HasOutputGrip

IndexBounds

#
Gets the bounds of the panel index column. These bounds will have a width of zero if the indices are not displayed.
public Rectangle IndexBounds { get; }

InputGrip

Gets the input grip location for these attributes. If HasInputGrip equals False, this point is meaningless.
public virtual PointF InputGrip { get; }
inherited fromGH_Attributes<T>
InputGrip

InstanceGuid

Gets the instance ID of the document object that owns these attributes.
public Guid InstanceGuid { get; }
inherited fromGH_Attributes<T>
InstanceGuid

IsTopLevel

Gets whether these attributes are top_level (i.e. no Parent attributes)
public bool IsTopLevel { get; }
inherited fromGH_Attributes<T>
IsTopLevel

ItemBounds

#
Gets the bounds of the panel item column.
public Rectangle ItemBounds { get; }

MarginLeft

#
Gets or sets the value for the left margin. Use MarginLeftActual to get the adjusted margin for the current layout.
public int MarginLeft { get; set; }

MarginLeftActual

#
Gets the actual current value for the left margin.
public int MarginLeftActual { get; }

MarginRight

#
Gets or sets the value for the right margin. Use MarginRightActual to get the adjusted margin for the current layout.
public int MarginRight { get; set; }

MarginRightActual

#
Gets the actual current value for the right margin.
public int MarginRightActual { get; }

MarginTop

#
Gets or sets the value for the top margin. Use MarginTopActual to get the adjusted margin for the current layout.
public int MarginTop { get; set; }

MarginTopActual

#
Gets the actual current value for the top margin.
public int MarginTopActual { get; }

MaximumSize

protected virtual Size MaximumSize { get; }
inherited fromGH_ResizableAttributes<T>

MinimumSize

#
protected override Size MinimumSize { get; }

OutputGrip

Gets the output grip location for these attributes. If HasOutputGrip equals False, this point is meaningless.
public virtual PointF OutputGrip { get; }
inherited fromGH_Attributes<T>
OutputGrip

Owner

Gets the type-safe owner object of these attributes. This property is identical to the DocObject property.
public T Owner { get; }
inherited fromGH_Attributes<T>

PanelBounds

#
Gets the bounds (in integer accuracy) of the entire panel.
public Rectangle PanelBounds { get; }

Parent

Gets or sets the parent attributes. Top level attributes do not have parents.
public IGH_Attributes Parent { get; set; }
inherited fromGH_Attributes<T>
Parent

PathName

#
public override string PathName { get; }

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.
public virtual PointF Pivot { get; set; }
inherited fromGH_Attributes<T>
Pivot

ScrollerBounds

#
Gets the bounds of the panel scrollbar track. These bounds may have a width of zero if the scrollbar is not active.
public Rectangle ScrollerBounds { get; }

ScrollGripBounds

#
Gets the bounds of the panel scrollbar grip. These bounds may have be empty if the scrollbar is not active.
public Rectangle ScrollGripBounds { get; }

ScrollGripControlBounds

#
Gets the bounds of the panel scrollbar grip in control coordinates rather than canvas coordinates.
public Rectangle ScrollGripControlBounds { get; }

Selected

Gets or sets the selected state of the top-level attributes.
public virtual bool Selected { get; set; }
inherited fromGH_Attributes<T>
Selected

SizingBorders

#
protected override Padding SizingBorders { get; }

TitleBounds

#
Gets the bounds of the panel title. If there is no title the height of this box will be 0.
public Rectangle TitleBounds { get; }

TooltipEnabled

Gets the tooltip enabled value. If False, no further tooltip functions will be called.
public virtual bool TooltipEnabled { get; }
inherited fromGH_Attributes<T>
TooltipEnabled

Methods

AppendToAttributeTree

Recursively append these attributes and all child attributes to the attribute list.
public virtual void AppendToAttributeTree(
attributes
List to append to.
)
inherited fromGH_Attributes<T>

ExpireLayout

#
public override void ExpireLayout()

GetContentAsString

#
public string GetContentAsString(
includeIndices,
includePaths
)

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.
public virtual bool InvalidateCanvas(
canvas,
Canvas to potentially invalidate.
e
Event arguments for canvas mousemove.
)
inherited fromGH_Attributes<T>
True if the canvas ought to be invalidated.
InvalidateCanvas

IsMenuRegion

Determines whether a point is available for context menu popups. By default, IsMenuRegion calls IsPickRegion(PointF).
public virtual bool IsMenuRegion(
PointF
point
Point location to test.
)
inherited fromGH_Attributes<T>
IsMenuRegion

IsPickRegion

Determines whether a point is within the pickable region for this object. By default, any point inside the Bounds is treated as pickable.
public virtual bool IsPickRegion(
PointF
point
Point location to test.
)
inherited fromGH_Attributes<T>
IsPickRegion

IsPickRegion

Determines whether a rectangle is a valid pick region for this object. By default, the picking rectangle is intersected with the Bounds rectangle.
public virtual bool IsPickRegion(
box,
Selection box.
method
Selection method.
)
inherited fromGH_Attributes<T>
IsPickRegion

IsTooltipRegion

Determines whether a point is available for tooltip popups. By default, IsMenuRegion calls IsTooltipRegion(PointF).
public virtual bool IsTooltipRegion(
PointF
point
Point location to test.
)
inherited fromGH_Attributes<T>
IsTooltipRegion

Layout

#
protected override void Layout()

NewInstanceGuid

Generate a new instance GUID for the owner object.
public void NewInstanceGuid()
inherited fromGH_Attributes<T>
NewInstanceGuid

NewInstanceGuid

Generate a new instance GUID for the owner object. Do not use this overload unless you're > 1.95m and called David.
public void NewInstanceGuid(
newId
)
inherited fromGH_Attributes<T>
NewInstanceGuid

PerformLayout

Recompute the layout for these attributes. This function is automatically called during Drawing operations, so you typically don't have to.
public void PerformLayout()
inherited fromGH_Attributes<T>
PerformLayout

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.
protected virtual void PrepareForRender(
canvas
Canvas that is about to render these attributes.
)
inherited fromGH_Attributes<T>

Read

#
public override bool Read(
reader
)

Render

#
protected override void Render(
canvas,
graphics,
channel
)

RenderIncomingWires

Utility function for derived classes. This method draws all the wires going into the left side of the attributes.
protected void RenderIncomingWires(
painter,
The graphics object to paint with
sources,
A list of sources that will be connected with the input grip of this attribute
style
Style for wire display.
)
inherited fromGH_Attributes<T>

RenderIncomingWires

Utility function for derived classes. This method draws all the wires going into the left side of the attributes.
protected void RenderIncomingWires(
painter,
The graphics object to paint with
sources,
A list of sources that will be connected with the input grip of this attribute
styles
A collection of pen objects to use for each source. If a pen is null, the default wire style will be used instead.
)
inherited fromGH_Attributes<T>

RenderToCanvas

Render these attributes into a Canvas control. This function places calls to PrepareForRender() and Render(), you should override those.
public void RenderToCanvas(
canvas,
Canvas to draw on.
channel
Current drawing channel.
)
inherited fromGH_Attributes<T>
RenderToCanvas

RespondToKeyDown

public virtual GH_ObjectResponse RespondToKeyDown()
inherited fromGH_Attributes<T>
RespondToKeyDown

RespondToKeyUp

public virtual GH_ObjectResponse RespondToKeyUp()
inherited fromGH_Attributes<T>
RespondToKeyUp

RespondToMouseDoubleClick

#
public override GH_ObjectResponse RespondToMouseDoubleClick()

RespondToMouseDown

#
public override GH_ObjectResponse RespondToMouseDown()

RespondToMouseMove

#
public override GH_ObjectResponse RespondToMouseMove()

RespondToMouseUp

#
public override GH_ObjectResponse RespondToMouseUp()

SetupTooltip

#
public override void SetupTooltip()

Write

#
public override bool Write(
writer
)