Code generation from a DesignIR: native-bridge / web-compat JS emission, baked-C++ view artifact export, and the shortcut string→KeyCode/mask helpers shared by the generator and runtime callers. More...
#include <pulp/view/design_ir.hpp>#include <pulp/view/design_shortcuts.hpp>#include <pulp/view/design_fidelity.hpp>#include <optional>#include <string>#include <vector>Go to the source code of this file.
Classes | |
| struct | pulp::view::CodeGenOptions |
| Options for code generation. More... | |
| struct | pulp::view::CppExportOptions |
| struct | pulp::view::CppExportResult |
| struct | pulp::view::SwiftExportOptions |
| struct | pulp::view::SwiftExportResult |
Namespaces | |
| namespace | pulp |
| namespace | pulp::view |
| Hover-cursor tracking for platform window hosts. | |
Enumerations | |
| enum class | pulp::view::CodeGenMode { pulp::view::web_compat , pulp::view::bridge_native_js , pulp::view::native = bridge_native_js } |
| Code generation output mode. More... | |
Functions | |
| std::string | pulp::view::generate_pulp_js (const DesignIR &ir, const CodeGenOptions &opts={}) |
| Generate Pulp JS code from a DesignIR. | |
| CppExportResult | pulp::view::generate_pulp_cpp (const DesignIR &ir, const IRAssetManifest &manifest, const CppExportOptions &opts={}) |
| Generate an ownable baked-C++ view artifact from a DesignIR. | |
| SwiftExportResult | pulp::view::generate_pulp_swift (const DesignIR &ir, const IRAssetManifest &manifest, const SwiftExportOptions &opts={}) |
| Generate a baked SwiftUI artifact from a DesignIR. | |
| int | pulp::view::key_string_to_keycode (const std::string &key) |
| Map a W3C KeyboardEvent.key (or KeyboardEvent.code) string to a Pulp KeyCode integer. | |
| int | pulp::view::modifier_strings_to_mask (const std::vector< std::string > &mods) |
| Combine modifier strings ("shift", "ctrl", "alt", "meta") into the bitmask registerShortcut consumes. | |
Code generation from a DesignIR: native-bridge / web-compat JS emission, baked-C++ view artifact export, and the shortcut string→KeyCode/mask helpers shared by the generator and runtime callers.