Skip to main content

ActionId.ixx File

Strongly-typed identifier for UI actions. More...

Included Headers

#include <cstdint> #include <string_view> #include <helios.core.data> #include <helios.core.types> #include <helios.core.algorithms>

Namespaces Index

namespacehelios
namespaceengine

Main engine module aggregating core infrastructure and game systems. More...

namespacemodules

Domain-specific components and systems. More...

namespaceui

User interface components and systems for game entities. More...

namespacewidgets

UI widget components and systems. More...

namespacetypes

Classes Index

structActionIdTag

Tag type for ActionId. More...

structhash<helios::engine::modules::ui::widgets::types::ActionId>

Hash specialization for ActionId. More...

Description

Strongly-typed identifier for UI actions.

File Listing

The file content with the documentation metadata removed is:

1/**
2 * @file ActionId.ixx
3 * @brief Strongly-typed identifier for UI actions.
4 */
5module;
6
7#include <cstdint>
8#include <string_view>
9
10export module helios.engine.modules.ui.widgets.types.ActionId;
11
12import helios.core.algorithms;
13import helios.core.types;
14import helios.core.data;
15
17
18 /**
19 * @brief Tag type for ActionId.
20 */
21 struct ActionIdTag{};
22
23 /**
24 * @brief Strongly-typed identifier for UI actions.
25 *
26 * @details Uses FNV-1a hashing to convert string literals to unique IDs
27 * at compile time. Supports comparison and hashing for use in containers.
28 *
29 * @see helios::core::data::StrongId
30 */
32
33}
34
35/**
36 * @brief Hash specialization for ActionId.
37 */
38template<>
39struct std::hash<helios::engine::modules::ui::widgets::types::ActionId> {
41 return id.value();
42 }
43
44};

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.