MCPcopy Index your code
hub / github.com/WireGuard/wireguard-windows / Text

Method Text

ui/syntax/syntaxedit.go:57–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func (se *SyntaxEdit) Text() string {
58 textLength := se.SendMessage(win.WM_GETTEXTLENGTH, 0, 0)
59 buf := make([]uint16, textLength+1)
60 se.SendMessage(win.WM_GETTEXT, uintptr(textLength+1), uintptr(unsafe.Pointer(&buf[0])))
61 return strings.Replace(syscall.UTF16ToString(buf), "\r\n", "\n", -1)
62}
63
64func (se *SyntaxEdit) SetText(text string) (err error) {
65 if text == se.Text() {

Callers 7

SetTextMethod · 0.95
NewSyntaxEditFunction · 0.95
CreateToolbarMethod · 0.80
onSaveButtonClickedMethod · 0.80
setTunnelMethod · 0.80
runScriptCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected