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

Function newBoxLayout

boxlayout.go:31–43  ·  view source on GitHub ↗
(orientation Orientation)

Source from the content-addressed store, hash-verified

29}
30
31func newBoxLayout(orientation Orientation) *BoxLayout {
32 l := &BoxLayout{
33 LayoutBase: LayoutBase{
34 margins96dpi: Margins{9, 9, 9, 9},
35 spacing96dpi: 6,
36 },
37 orientation: orientation,
38 hwnd2StretchFactor: make(map[win.HWND]int),
39 }
40 l.layout = l
41
42 return l
43}
44
45func NewHBoxLayout() *BoxLayout {
46 return newBoxLayout(Horizontal)

Callers 2

NewHBoxLayoutFunction · 0.85
NewVBoxLayoutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…