etui/widgets/help
Types
A single key binding. Multiple keys for the same action go in keys.
pub type Binding {
Binding(keys: List(String), description: String)
}
Constructors
-
Binding(keys: List(String), description: String)
pub type Help {
Help(
bindings: List(Binding),
mode: HelpMode,
separator: String,
key_fg: style.Color,
description_fg: style.Color,
bg: style.Color,
)
}
Constructors
-
Help( bindings: List(Binding), mode: HelpMode, separator: String, key_fg: style.Color, description_fg: style.Color, bg: style.Color, )
Values
pub fn render(
buf: buffer.Buffer,
area: geometry.Rect,
h: Help,
) -> buffer.Buffer
pub fn with_bg(h: Help, bg: style.Color) -> Help
pub fn with_description_color(h: Help, fg: style.Color) -> Help
pub fn with_key_color(h: Help, fg: style.Color) -> Help