API Reference
Class
Padding
Adds blank space around a child.
Inheritance
- Object
- Padding
Constructors
public Padding(IWidget child, Int32 left = 1, Int32 top = 0, Int32 right = 1, Int32 bottom = 0) #Creates padding.
Parameters
- child ConsoleMonster.Layout.IWidget
- The child.
- left System.Int32 = 1
- Left cells.
- top System.Int32 = 0
- Top rows.
- right System.Int32 = 1
- Right cells.
- bottom System.Int32 = 0
- Bottom rows.
Methods
public Size Measure(Constraints constraints, RenderContext context) #Returns:
SizeReturns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Returns
The desired size, never larger than the constraints.
public Void Render(Region region, RenderContext context) #Returns:
VoidRenders into a region. The region may be smaller or larger than the measured size.
Parameters
- region ConsoleMonster.Canvas.Region
- The target region.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?