MCPcopy Create free account
hub / github.com/DISTRHO/DPF / onDisplay

Method onDisplay

dgl/src/NanoVG.cpp:1131–1148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1129
1130template <>
1131inline void NanoBaseWidget<SubWidget>::onDisplay()
1132{
1133 if (fUsingParentContext)
1134 {
1135 NanoVG::save();
1136 translate(SubWidget::getAbsoluteX(), SubWidget::getAbsoluteY());
1137 onNanoDisplay();
1138 NanoVG::restore();
1139 displayChildren();
1140 }
1141 else
1142 {
1143 NanoVG::beginFrame(SubWidget::getWidth(), SubWidget::getHeight());
1144 onNanoDisplay();
1145 displayChildren();
1146 NanoVG::endFrame();
1147 }
1148}
1149
1150template class NanoBaseWidget<SubWidget>;
1151

Callers 1

displayChildrenMethod · 0.45

Calls 5

beginFrameFunction · 0.85
endFrameFunction · 0.85
onNanoDisplayFunction · 0.50
getWidthFunction · 0.50
getHeightFunction · 0.50

Tested by

no test coverage detected