MCPcopy Create free account
hub / github.com/cogentcore/core / RenderStandardBox

Method RenderStandardBox

core/render.go:412–416  ·  view source on GitHub ↗

RenderStandardBox renders the standard box model.

()

Source from the content-addressed store, hash-verified

410
411// RenderStandardBox renders the standard box model.
412func (wb *WidgetBase) RenderStandardBox() {
413 pos := wb.Geom.Pos.Total
414 sz := wb.Geom.Size.Actual.Total
415 wb.Scene.PaintContext.DrawStandardBox(&wb.Styles, pos, sz, wb.parentActualBackground())
416}
417
418//////////////////////////////////////////////////////////////////
419// Widget position functions

Callers 5

RenderMethod · 0.95
RenderMethod · 0.80
RenderMethod · 0.80
RenderMethod · 0.80
renderAllLinesMethod · 0.80

Calls 2

DrawStandardBoxMethod · 0.80

Tested by

no test coverage detected