using Azimuth;
using Glass;
namespace Clave.Glass
{
///
/// Describes how a bindings screen renders.
///
public struct KeyBindingsMaterial
{
///
/// Behind the whole screen, or null for nothing.
///
public Material Background;
public TextMaterialStyle ActionTextStyle;
///
/// The text of the keys in a binding, and of the prompt while one is being captured.
///
public TextMaterialStyle KeyTextStyle;
///
/// The note under an action whose binding clashes with another.
///
public TextMaterialStyle ClashTextStyle;
///
/// The text of the undo and reset buttons.
///
public TextMaterialStyle ButtonTextStyle;
///
/// The text of a binding's remove button, which fills the button, as a window's close button's label does.
///
public TextMaterialStyle RemoveTextStyle;
///
/// Behind a binding, which captures new keys when activated.
///
public ButtonMaterial Binding;
///
/// Behind a binding while it captures keys.
///
public ButtonMaterial CapturingBinding;
///
/// Behind a binding that clashes with another, which its note under it names.
///
public ButtonMaterial ClashingBinding;
///
/// Behind a Shift, Ctrl or Alt in a binding, which steps through which side counts when activated.
///
public ButtonMaterial SidedKey;
///
/// Behind the empty cell after an action's bindings, which captures a binding to add when activated.
///
public ButtonMaterial EmptyBinding;
///
/// Behind the square button at the end of each binding's cell that takes it out, such as a window's close
/// button.
///
public ButtonMaterial RemoveButton;
public ButtonMaterial CommandButton;
///
/// The gap between the parts of the screen.
///
public Scalar Spacing;
///
/// The words to show, or null for English.
///
public KeyBindingsText Text;
///
/// The binding every cell is wide enough to show, or null for . A binding
/// wider than a cell takes a whole line.
///
public KeyCombo SizingCombo;
///
/// Shift+I+O+U+P, as long as most bindings get.
///
public static readonly KeyCombo DefaultSizingCombo = new KeyCombo(KeySpace.Physical, KeyStateKind.Pressed,
new ComboKey(KeyCode.P), new ComboKey(KeyCode.ShiftLeft, eitherSide: true), new ComboKey(KeyCode.I),
new ComboKey(KeyCode.O), new ComboKey(KeyCode.U));
public KeyBindingsText TextOrEnglish => Text ?? KeyBindingsText.English;
public KeyCombo SizingComboOrDefault => SizingCombo ?? DefaultSizingCombo;
}
}