// GetTitle returns the Title field if it's non-nil, zero value otherwise.
965300
func (p *Page) GetTitle() string {
	if p == nil || p.Title == nil {
		return ""
	}
	return *p.Title
}
736938
func (p *PullRequest) GetTitle() string {
	if p == nil || p.Title == nil {
		return ""
	}
	return *p.Title
}
792477
func (s *CreatePullRequestInput) SetTitle(v string) *CreatePullRequestInput {
	s.Title = &v
	return s
}
582188
func (s *ASN1Subject) SetTitle(v string) *ASN1Subject {
	s.Title = &v
	return s
}
665779
func (s *Patch) SetTitle(v string) *Patch {
	s.Title = &v
	return s
}
1108633
func OptionTitle(x string) Option {
	return func(p *Prompt) error {
		p.renderer.title = x
		return nil
	}
}
331910
func (s *Event) SetAppTitle(v string) *Event {
	s.AppTitle = &v
	return s
}
45006
func (g *Gui) drawTitle(v *View, fgColor, bgColor Attribute) error {
	if v.y0 < 0 || v.y0 >= g.maxY {
		return nil
	}

	for i, ch := range v.Title {
		x := v.x0 + i + 2
		if x < 0 {
			continue
		} else if x > v.x1-2 || x >= g.maxX {
			break
		}
		if err := g.SetRune(x, v.y0, ch, fgColor, bgColor); err != nil {
			return err
		}
	}
	return nil
}
388132
func (s *CreateHITInput) SetTitle(v string) *CreateHITInput {
	s.Title = &v
	return s
}
467378
func printTitle(w io.Writer, s string) {
	fmt.Fprintf(w, "%s\n\n", s)
}
214766
func (t *Tab) GetTitle() (string, error) {
	var title string
	var ok bool

	resp, err := t.EvaluateScript("window.top.document.title")
	if err != nil {
		return "", err
	}

	if title, ok = resp.Value.(string); !ok {
		return "", &ScriptEvaluationErr{Message: "title was not a string", ExceptionText: "unable to retrieve document title, was not a string"}
	}
	return title, nil
}
159426
func (s *PatchComplianceData) SetTitle(v string) *PatchComplianceData {
	s.Title = &v
	return s
}
390678
func (w *Window) SetTitle(title string) {
	t := C.CString(title)
	defer C.free(unsafe.Pointer(t))
	C.glfwSetWindowTitle(w.data, t)
}
520300
func (item *MenuItem) SetTitle(title string) {
	item.title = title
	item.update()
}
639363
func (s *Exclusion) SetTitle(v string) *Exclusion {
	s.Title = &v
	return s
}
79525
func internalGetTitle(pid int32, args ...int32) string {
	var hwnd int32
	if len(args) > 0 {
		hwnd = args[0]

		return cgetTitle(pid, hwnd)
	}

	xid, err := GetXId(xu, pid)
	if err != nil {
		log.Println("GetXidFromPid errors is: ", err)
		return ""
	}

	return cgetTitle(int32(xid), hwnd)
}
968579
func (w *VT100Writer) SetTitle(title string) {
	titleBytes := []byte(title)
	patterns := []struct {
		from []byte
		to   []byte
	}{
		{
			from: []byte{0x13},
			to:   []byte{},
		},
		{
			from: []byte{0x07},
			to:   []byte{},
		},
	}
	for i := range patterns {
		titleBytes = bytes.Replace(titleBytes, patterns[i].from, patterns[i].to, -1)
	}

	w.WriteRaw([]byte{0x1b, ']', '2', ';'})
	w.WriteRaw(titleBytes)
	w.WriteRaw([]byte{0x07})
	return
}