MCPcopy
hub / github.com/lxn/walk / writePath

Method writePath

window.go:837–848  ·  view source on GitHub ↗
(buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

835}
836
837func (wb *WindowBase) writePath(buf *bytes.Buffer) {
838 hWndParent := win.GetAncestor(wb.hWnd, win.GA_PARENT)
839 if pwi := windowFromHandle(hWndParent); pwi != nil {
840 if sv, ok := pwi.(*ScrollView); ok {
841 pwi = sv.Parent()
842 }
843 pwi.AsWindowBase().writePath(buf)
844 buf.WriteByte('/')
845 }
846
847 buf.WriteString(wb.name)
848}
849
850func (wb *WindowBase) path() string {
851 buf := bytes.NewBuffer(nil)

Callers 1

pathMethod · 0.95

Calls 3

windowFromHandleFunction · 0.85
ParentMethod · 0.65
AsWindowBaseMethod · 0.65

Tested by

no test coverage detected