Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::CppExportOptions Struct Reference

#include <design_codegen.hpp>

Public Attributes

std::string function_name = "build_imported_ui"
std::string namespace_name
std::string header_filename = "imported_ui.hpp"
std::string binding_function_name = "bind_imported_ui"
bool include_comments = true
bool emit_named_tokens = true
bool emit_asset_constants = true
bool extract_named_components = true
bool emit_binding_context_helpers = true
int indent_spaces = 4
std::vector< FidelityIssue > * fidelity_report = nullptr
 Optional fidelity-report sink, matching CodeGenOptions and SwiftExportOptions.

Member Data Documentation

◆ binding_function_name

std::string pulp::view::CppExportOptions::binding_function_name = "bind_imported_ui"

◆ emit_asset_constants

bool pulp::view::CppExportOptions::emit_asset_constants = true

◆ emit_binding_context_helpers

bool pulp::view::CppExportOptions::emit_binding_context_helpers = true

◆ emit_named_tokens

bool pulp::view::CppExportOptions::emit_named_tokens = true

◆ extract_named_components

bool pulp::view::CppExportOptions::extract_named_components = true

◆ fidelity_report

std::vector<FidelityIssue>* pulp::view::CppExportOptions::fidelity_report = nullptr

Optional fidelity-report sink, matching CodeGenOptions and SwiftExportOptions.

When non-null, the baked-C++ lane appends a FidelityIssue for every style property it cannot lower.

This lane lowers a subset of IRStyle. Without a sink it had no way to say so, and a dropped property is invisible: the exported plugin lays out correctly and simply renders flatter than the design. Reporting is what makes the remaining gaps findable instead of silent. Non-owning; the caller owns the vector.

◆ function_name

std::string pulp::view::CppExportOptions::function_name = "build_imported_ui"

◆ header_filename

std::string pulp::view::CppExportOptions::header_filename = "imported_ui.hpp"

◆ include_comments

bool pulp::view::CppExportOptions::include_comments = true

◆ indent_spaces

int pulp::view::CppExportOptions::indent_spaces = 4

◆ namespace_name

std::string pulp::view::CppExportOptions::namespace_name

The documentation for this struct was generated from the following file: