MCPcopy Create free account
hub / github.com/lxn/walk / CreateLayoutItem

Method CreateLayoutItem

toolbutton.go:46–50  ·  view source on GitHub ↗
(ctx *LayoutContext)

Source from the content-addressed store, hash-verified

44}
45
46func (tb *ToolButton) CreateLayoutItem(ctx *LayoutContext) LayoutItem {
47 return &toolButtonLayoutItem{
48 idealSize: tb.dialogBaseUnitsToPixels(Size{16, 12}),
49 }
50}
51
52type toolButtonLayoutItem struct {
53 LayoutItemBase

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected