StandardLayout

public static class StandardLayout
Provides access to layout and drawing methods.

Fields

GroupNameBar

#
Gets the height of the group name bar.
public const int GroupNameBar = 18

GroupPadding

#
Gets the padding between the contents and the boundary of a group.
public const int GroupPadding = 14

IconPadding

#
Gets the amount of padding around object icons.
public const int IconPadding = 2

IconSize

#
Gets the size for document object icons. Component, floating parameters etc.
public const int IconSize = 24

LargeObjectHeight

#
Gets the ideal height large objects get at construction by default.
public const int LargeObjectHeight = 120

LargeObjectWidth

#
Gets the ideal width large objects get at construction by default.
public const int LargeObjectWidth = 240

ModsPadding

#
Gets the amount of padding before and after modifier icon bars.
public const int ModsPadding = 4

ModsSize

#
Gets the size for modifier icons.
public const int ModsSize = 14

ModsSpacing

#
Gets the amount of spacing between modifier icons.
public const int ModsSpacing = 2

NamePadding

#
Gets the amount of padding before and after display names.
public const int NamePadding = 4

ParameterMinHeight

#
Gets the minimum allowed height for input and output parameters.
public const int ParameterMinHeight = 20

ParameterMinWidth

#
Gets the minimum allowed width for floating parameters.
public const int ParameterMinWidth = 60

PinAttachedHeight

#
Gets the height for attached pins.
public const int PinAttachedHeight = 20

PinFloatingHeight

#
Gets the height for free-floating pins.
public const int PinFloatingHeight = 20

SpecialButtonWidth

#
Gets the width of the button which pops up the UI on special input parameters.
public const int SpecialButtonWidth = 14

Methods

DrawModifierIcons

#
Draw modifier icons into a rectangle.
public static RectangleF[] DrawModifierIcons(
context,
Graphics context.
icons,
Icons to draw.
Color
background,
Background colour, usually the Apex colour of the underlying slab.
RectangleF
bounds,
Bounds for icons.
leftToRight
If true, icons will be stacked from left-to-right.
)

LeftToRightStack

#
Perform a left-to-right stacking layout of several boxes.
public static RectangleF[] LeftToRightStack(
axis,
Y coordinate of horizontal layout axis.
boundary,
X coordinate of left boundary.
params (float before, SizeF size, float after)[]
elements
Collection of layout elements (left-padding, width+height, right-padding).
)
Array of rectangles.

MeasureModifierIcons

#
Measure the size needed to host a set of modifier icons.
public static SizeF MeasureModifierIcons()

RightToLeftStack

#
Perform a right-to-left stacking layout of several boxes.
public static RectangleF[] RightToLeftStack(
axis,
Y coordinate of horizontal layout axis.
boundary,
X coordinate of right boundary.
params (float before, SizeF size, float after)[]
elements
Collection of layout elements (left-padding, width+height, right-padding).
)
Array of rectangles.