Table of Contents

Class FocusedWindowComponent

Namespace
Whim.Bar
Assembly
Whim.Bar.dll
The bar component for the focused window widget.
public record FocusedWindowComponent : BarComponent, IEquatable<BarComponent>, IEquatable<FocusedWindowComponent>
Inheritance
FocusedWindowComponent
Implements
Inherited Members

Constructors

FocusedWindowComponent(Func<IWindow, string>?)

The bar component for the focused window widget.
public FocusedWindowComponent(Func<IWindow, string>? GetTitle)

Parameters

GetTitle Func<IWindow, string>
The function to get the title of the window. Defaults to GetTitle(IWindow).

Properties

GetTitle

The function to get the title of the window. Defaults to GetTitle(IWindow).
public Func<IWindow, string>? GetTitle { get; init; }

Property Value

Func<IWindow, string>

Methods

CreateWidget(IContext, IMonitor, Window)

Delegate for creating a component. A component will subscribe to Closed if it has resources to dispose.
public override UserControl CreateWidget(IContext context, IMonitor monitor, Window window)

Parameters

context IContext
monitor IMonitor
window Window

Returns

UserControl