(orientation Orientation)
| 29 | } |
| 30 | |
| 31 | func 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 | |
| 45 | func NewHBoxLayout() *BoxLayout { |
| 46 | return newBoxLayout(Horizontal) |
no outgoing calls
no test coverage detected
searching dependent graphs…