MCPcopy Index your code
hub / github.com/lxn/walk / CreateLayoutItem

Method CreateLayoutItem

textlabel.go:75–82  ·  view source on GitHub ↗
(ctx *LayoutContext)

Source from the content-addressed store, hash-verified

73}
74
75func (tl *TextLabel) CreateLayoutItem(ctx *LayoutContext) LayoutItem {
76 return &textLabelLayoutItem{
77 width2Height: make(map[int]int),
78 text: tl.Text(),
79 font: tl.Font(),
80 minWidth: tl.MinSizePixels().Width,
81 }
82}
83
84type textLabelLayoutItem struct {
85 LayoutItemBase

Callers

nothing calls this directly

Calls 3

TextMethod · 0.95
FontMethod · 0.65
MinSizePixelsMethod · 0.65

Tested by

no test coverage detected