Skip to content

GrowDirection

Eduard Gushchin edited this page Jun 21, 2026 · 3 revisions

Home | API by Category | Complete API Index | API Compatibility

Field Value
Full name Electron2D.GrowDirection
Namespace Electron2D
Kind enum
Category UI and Text

Overview

Describes which side of a Electron2D.Control moves when the control must grow to satisfy its minimum size.

Syntax

public enum Electron2D.GrowDirection : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Remarks

Electron2D.Control.SetSize(Electron2D.Vector2) and Electron2D.Control.ResetSize use this value when the requested size is smaller than Electron2D.Control.GetCombinedMinimumSize.

The value is interpreted independently for horizontal and vertical axes through Electron2D.Control.GrowHorizontal and Electron2D.Control.GrowVertical.

Thread Safety

This enum is immutable and is safe to use from any thread.

Since

This enum is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.Control.GrowHorizontal
  • Electron2D.Control.GrowVertical

Members

Member Kind Summary
Begin Enum value Moves the beginning side while preserving the ending side.
Both Enum value Splits the required growth between the beginning and ending sides.
End Enum value Preserves the beginning side while moving the ending side.

Member Details

Begin

Kind: Enum value

public const Electron2D.GrowDirection Begin

Summary

Moves the beginning side while preserving the ending side.

Remarks

On the horizontal axis this moves the left side. On the vertical axis this moves the top side.

Thread Safety

This enum value is immutable and is safe to use from any thread.

Since

This enum value is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.GrowDirection.Both
  • Electron2D.GrowDirection.End

Both

Kind: Enum value

public const Electron2D.GrowDirection Both

Summary

Splits the required growth between the beginning and ending sides.

Remarks

This keeps the control centered around the requested rectangle as closely as floating-point coordinates allow.

Thread Safety

This enum value is immutable and is safe to use from any thread.

Since

This enum value is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.GrowDirection.Begin
  • Electron2D.GrowDirection.End

End

Kind: Enum value

public const Electron2D.GrowDirection End

Summary

Preserves the beginning side while moving the ending side.

Remarks

On the horizontal axis this moves the right side. On the vertical axis this moves the bottom side.

Thread Safety

This enum value is immutable and is safe to use from any thread.

Since

This enum value is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.GrowDirection.Begin
  • Electron2D.GrowDirection.Both

Clone this wiki locally