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

Method PushBounds

paint/state.go:118–120  ·  view source on GitHub ↗

PushBounds pushes the current bounds onto the stack and sets new bounds. This is the essential first step in rendering. See [State.PushBoundsGeom] for a version that takes more arguments.

(b image.Rectangle)

Source from the content-addressed store, hash-verified

116// This is the essential first step in rendering. See [State.PushBoundsGeom]
117// for a version that takes more arguments.
118func (rs *State) PushBounds(b image.Rectangle) {
119 rs.PushBoundsGeom(b, styles.SideFloats{})
120}
121
122// PushBoundsGeom pushes the current bounds onto the stack and sets new bounds.
123// This is the essential first step in rendering. It also takes the border radius

Callers 7

RunTestFunction · 0.45
DrawMethod · 0.45
drawMethod · 0.45
RenderTextMethod · 0.45
RenderWidgetMethod · 0.45
renderAllLinesMethod · 0.45
RenderMethod · 0.45

Calls 1

PushBoundsGeomMethod · 0.95

Tested by 1

RunTestFunction · 0.36