BackgroundPanelWidget
Namespace: Hex1b.Widgets
Assembly: Hex1b.dll
A passthrough widget that fills its bounds with a background color before rendering its child. All layout, focus, and input is delegated to the child unchanged.
csharp
public sealed record BackgroundPanelWidget : Hex1bWidget, IEquatable<Hex1bWidget>, IEquatable<BackgroundPanelWidget>Inheritance
Object → Hex1bWidget → BackgroundPanelWidget
Implements
Constructors
BackgroundPanelWidget(Hex1bColor, Hex1bWidget)
A passthrough widget that fills its bounds with a background color before rendering its child. All layout, focus, and input is delegated to the child unchanged.
Parameters:
Color(Hex1bColor): The background color to fill.Child(Hex1bWidget): The child widget to render on top of the background.
csharp
public BackgroundPanelWidget(Hex1bColor Color, Hex1bWidget Child)Properties
Child
The child widget to render on top of the background.
Returns: Hex1bWidget
csharp
public Hex1bWidget Child { get; init; }Color
The background color to fill.
Returns: Hex1bColor
csharp
public Hex1bColor Color { get; init; }