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

Method RenderBoxGeom

core/render.go:407–409  ·  view source on GitHub ↗

Standard Box Model rendering RenderBoxGeom renders a box with the given geometry.

(pos math32.Vector2, sz math32.Vector2, bs styles.Border)

Source from the content-addressed store, hash-verified

405
406// RenderBoxGeom renders a box with the given geometry.
407func (wb *WidgetBase) RenderBoxGeom(pos math32.Vector2, sz math32.Vector2, bs styles.Border) {
408 wb.Scene.PaintContext.DrawBorder(pos.X, pos.Y, sz.X, sz.Y, bs)
409}
410
411// RenderStandardBox renders the standard box model.
412func (wb *WidgetBase) RenderStandardBox() {

Callers 2

RenderMethod · 0.80
RenderMethod · 0.80

Calls 1

DrawBorderMethod · 0.80

Tested by

no test coverage detected