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

A single tweak to promote into source. More...

#include <lock_to_source.hpp>

Public Attributes

std::string anchor_id
std::string property_path
std::string value
 The tweaked value, already stringified the way it should appear in the generated source's JS string literal (e.g.

Detailed Description

A single tweak to promote into source.

Mirrors the tuple the inspector tweak-store keys on: (anchor_id, property_path) → value.

property_path is the canonical dotted path used by pulp-tweaks.json — e.g. paint.backgroundColor, style.width, layout.padding. The engine maps the path onto the generated codegen's el.style.<camel> line. See lock_property_to_style_name() for the exact mapping.

Member Data Documentation

◆ anchor_id

std::string pulp::view::LockToSourceTweak::anchor_id

◆ property_path

std::string pulp::view::LockToSourceTweak::property_path

◆ value

std::string pulp::view::LockToSourceTweak::value

The tweaked value, already stringified the way it should appear in the generated source's JS string literal (e.g.

"#5a5a5a", "12px", "120px"). Numeric layout dimensions should carry their unit.


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