Class
LayoutRegion
ConsoleMonster.Widgets
A named, swappable layout slot. Keep its inputs stable for the lifetime of an app.
Inheritance
- object
- LayoutRegion
Usage
Explore 6 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
- Method TabOptions.Build
- Extension method LayoutRegion.Content
- Method LayoutRegionFluent.Content
- Property LayoutRegions.Regions
Accepted by parameters 2
- Extension method LayoutRegion.Content
- Method LayoutRegionFluent.Content
Constructors
public LayoutRegion(string key, IWidget content) #Creates a named slot.
Parameters
- key string
- content ConsoleMonster.Layout.IWidget
Methods
public Size Measure(Constraints constraints, RenderContext context) #Returns the size the widget wants within the constraints.
Parameters
- constraints ConsoleMonster.Layout.Constraints
- The space offered.
- context ConsoleMonster.Canvas.RenderContext
- Profile, theme and glyphs.
public void Render(Region region, RenderContext context) #Renders 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
Properties
Extension Methods
public static LayoutRegion Content(LayoutRegion layoutRegion, IWidget value) #Sets LayoutRegion.Content: The current subtree. Swap existing subtrees while an app runs; configure new inputs before starting.
Parameters
- layoutRegion ConsoleMonster.Widgets.LayoutRegion
- The instance.
- value ConsoleMonster.Layout.IWidget
- The value.
Examples
// C# initializer or property // C# fluent
layoutRegion.Content = value; layoutRegion.Content(value);