title

package
v0.0.0-...-ad46cc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2024 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package title contains title widgets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subtitle

type Subtitle struct {
	*gtk.Box
	Title    *gtk.Label
	Subtitle *gtk.Label
}

Subtitle is a title widget with a subtitle on the next line.

func NewSubtitle

func NewSubtitle() *Subtitle

NewSubtitle creates a new subtitle widget.

func (*Subtitle) SetSubtitle

func (s *Subtitle) SetSubtitle(subtitle string)

SetSubtitle sets the subtitle. If subtitle is empty, then it's hidden.

func (*Subtitle) SetTitle

func (s *Subtitle) SetTitle(title string)

SetTitle sets the title.

func (*Subtitle) SetXAlign

func (s *Subtitle) SetXAlign(xalign float32)

SetXAlign sets the X align of the subtitles.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL