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

Method drawTablePath

hi_scripting/scripting/api/ScriptingGraphics.cpp:3115–3134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3113}
3114
3115void ScriptingObjects::ScriptedLookAndFeel::CSSLaf::drawTablePath(Graphics& g, TableEditor& te, Path& p,
3116 Rectangle<float> area, float lineThickness)
3117{
3118 using namespace simple_css;
3119
3120 if(auto ss = root.css.getForComponent(&te))
3121 {
3122 Renderer r(&te, root.stateWatcher);
3123
3124 auto currentState = Renderer::getPseudoClassFromComponent(&te);
3125 root.stateWatcher.checkChanges(&te, ss, currentState);
3126
3127 setPathAsVariable(ss, p, "tablePath");
3128 r.drawBackground(g, te.getLocalBounds().toFloat(), ss);
3129
3130 return;
3131 }
3132
3133 TableEditor::LookAndFeelMethods::drawTablePath(g, te, p, area, lineThickness);
3134}
3135
3136void ScriptingObjects::ScriptedLookAndFeel::CSSLaf::drawTablePoint(Graphics& g, TableEditor& te,
3137 Rectangle<float> tablePoint, bool isEdge, bool isHover, bool isDragged)

Callers

nothing calls this directly

Calls 13

varFunction · 0.85
setColourOrBlackFunction · 0.85
getForComponentMethod · 0.80
getLocalBoundsMethod · 0.80
callWithGraphicsMethod · 0.80
getFunction · 0.50
checkChangesMethod · 0.45
drawBackgroundMethod · 0.45
toFloatMethod · 0.45
getScriptProcessorMethod · 0.45
getPathMethod · 0.45
setPropertyMethod · 0.45

Tested by

no test coverage detected