MCPcopy
hub / github.com/g3n/engine / SetWidth

Method SetWidth

gui/panel.go:271–274  ·  view source on GitHub ↗

SetWidth sets this panel external width in pixels. The internal panel areas and positions are recalculated

(width float32)

Source from the content-addressed store, hash-verified

269// SetWidth sets this panel external width in pixels.
270// The internal panel areas and positions are recalculated
271func (p *Panel) SetWidth(width float32) {
272
273 p.SetSize(width, p.height)
274}
275
276// SetHeight sets this panel external height in pixels.
277// The internal panel areas and positions are recalculated

Callers 15

applyStyleMethod · 0.80
recalcMethod · 0.80
vRecalcMethod · 0.80
copySelectedMethod · 0.80
recalcMethod · 0.80
RecalcMethod · 0.80
recalcHMethod · 0.80
recalcMethod · 0.80
onCursorMethod · 0.80
recalcMethod · 0.80
setColWidthMethod · 0.80

Calls 1

SetSizeMethod · 0.95

Tested by

no test coverage detected