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

Method drawTableBackground

hi_scripting/scripting/api/ScriptingGraphics.cpp:4358–4380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4356}
4357
4358void ScriptingObjects::ScriptedLookAndFeel::Laf::drawTableBackground(Graphics& g_, TableEditor& te, Rectangle<float> area, double rulerPosition)
4359{
4360 if (functionDefined("drawTableBackground"))
4361 {
4362 auto obj = new DynamicObject();
4363
4364 writeId(obj, &te);
4365 obj->setProperty("area", ApiHelpers::getVarRectangle(area));
4366 obj->setProperty("id", te.getName());
4367 obj->setProperty("position", rulerPosition);
4368 obj->setProperty("enabled", te.isEnabled());
4369
4370 setColourOrBlack(obj, "bgColour", te, TableEditor::ColourIds::bgColour);
4371 setColourOrBlack(obj, "itemColour", te, TableEditor::ColourIds::fillColour);
4372 setColourOrBlack(obj, "itemColour2", te, TableEditor::ColourIds::lineColour);
4373 setColourOrBlack(obj, "textColour", te, TableEditor::ColourIds::rulerColour);
4374
4375 addParentFloatingTile(te, obj);
4376
4377 if (get()->callWithGraphics(g_, "drawTableBackground", var(obj), &te))
4378 return;
4379 }
4380}
4381
4382void ScriptingObjects::ScriptedLookAndFeel::Laf::drawTablePath(Graphics& g_, TableEditor& te, Path& p, Rectangle<float> area, float lineThickness)
4383{

Callers

nothing calls this directly

Calls 7

setColourOrBlackFunction · 0.85
varFunction · 0.85
callWithGraphicsMethod · 0.80
getNameMethod · 0.65
getFunction · 0.50
setPropertyMethod · 0.45
isEnabledMethod · 0.45

Tested by

no test coverage detected