JustAnotherDnDGame 0.1.0
Jeu de rôle tactique au d20, vue de dessus, en C++/Qt
Loading...
Searching...
No Matches
KeyHintText.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Valentin Eloy
2// SPDX-License-Identifier: GPL-3.0-or-later
3
4#pragma once
5
6#include <string>
7#include <vector>
8
10
23
24namespace hmi {
25
27struct KeyHint {
28 std::string key;
29 std::string action;
30};
31
45[[nodiscard]] std::string keyHintText(const std::vector<KeyHint>& hints, const DesignTokens& tokens,
46 int scale);
47
48} // namespace hmi
Jetons de design de l'IHM Qt (LOT-56, EX-IHM-050, EX-IHM-051) : source unique des couleurs,...
Definition AudioEngine.cpp:15
std::string keyHintText(const std::vector< KeyHint > &hints, const DesignTokens &tokens, int scale)
Compose la ligne de rappels en texte enrichi.
Definition KeyHintText.cpp:39
Jeu complet de jetons de design d'une portée (identité invariante ou châssis variable).
Definition DesignTokens.h:139
Une paire touche → action, déjà traduite par l'appelant (EX-REN-033).
Definition KeyHintText.h:27
std::string action
Ce que la touche fait.
Definition KeyHintText.h:29
std::string key
Ce qui s'affiche dans le capuchon (ex. « ÉCHAP », « A », « ↑↓ »).
Definition KeyHintText.h:28