MCPcopy Create free account
hub / github.com/christophhart/HISE / setPathAsVariable

Method setPathAsVariable

hi_scripting/scripting/api/ScriptingGraphics.cpp:3064–3072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3062}
3063
3064void ScriptingObjects::ScriptedLookAndFeel::CSSLaf::setPathAsVariable(simple_css::StyleSheet::Ptr ss, const Path& p,
3065 const Identifier& id)
3066{
3067 MemoryOutputStream mos;
3068 p.writePathToStream(mos);
3069 mos.flush();
3070
3071 ss->setPropertyVariable(id, mos.getMemoryBlock().toBase64Encoding());
3072}
3073
3074void ScriptingObjects::ScriptedLookAndFeel::CSSLaf::drawSliderPackRightClickLine(Graphics& g, SliderPack& s,
3075 Line<float> lineToDraw)

Callers

nothing calls this directly

Calls 5

writePathToStreamMethod · 0.80
setPropertyVariableMethod · 0.80
toBase64EncodingMethod · 0.80
getMemoryBlockMethod · 0.80
flushMethod · 0.45

Tested by

no test coverage detected