decredmaterial

package
Version: v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: ISC Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WrapContent = -1
	MatchParent = -2
)
View Source
const (
	DropdownBasePos uint = 0
)

Variables

View Source
var MaxWidth = unit.Dp(800)

Functions

func Disabled

func Disabled(c color.NRGBA) (d color.NRGBA)

Disabled blends color towards the luminance and multiplies alpha. Blending towards luminance will desaturate the color. Multiplying alpha blends the color together more with the background.

func DisplayOneDropdown added in v1.7.0

func DisplayOneDropdown(dropdowns ...*DropDown)

Display one dropdown at a time

func Fill

func Fill(gtx layout.Context, col color.NRGBA) layout.Dimensions

func GenerateRandomNumber added in v1.7.0

func GenerateRandomNumber() int

func HandleEditorEvents added in v1.7.0

func HandleEditorEvents(editors ...*widget.Editor) (bool, bool)

func Hovered

func Hovered(c color.NRGBA) (d color.NRGBA)

Hovered blends color towards a brighter color.

func MustIcon

func MustIcon(ic *widget.Icon, err error) *widget.Icon

func SwitchEditors added in v1.7.0

func SwitchEditors(keyEvent chan *key.Event, editors ...*widget.Editor)

Types

type Badge

type Badge struct {
	Background color.NRGBA
}

func (*Badge) Layout

func (b *Badge) Layout(gtx C, label Label) D

type Border

type Border struct {
	Color  color.NRGBA
	Radius CornerRadius
	Width  unit.Value
}

Border lays out a widget and draws a border inside it.

func (Border) Layout

func (b Border) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions

type Button

type Button struct {
	material.ButtonStyle

	HighlightColor color.NRGBA

	Margin layout.Inset
	// contains filtered or unexported fields
}

func (Button) Click added in v1.7.0

func (b Button) Click()

func (Button) Clicked

func (b Button) Clicked() bool

func (*Button) Enabled

func (b *Button) Enabled() bool

func (Button) Hovered added in v1.7.0

func (b Button) Hovered() bool

func (*Button) Layout

func (b *Button) Layout(gtx layout.Context) layout.Dimensions

func (*Button) SetClickable added in v1.7.0

func (b *Button) SetClickable(clickable *widget.Clickable)

func (*Button) SetEnabled

func (b *Button) SetEnabled(enabled bool)

type ButtonLayout

type ButtonLayout struct {
	material.ButtonLayoutStyle
}

func (ButtonLayout) Layout

type C

type C = layout.Context

type Card

type Card struct {
	layout.Inset
	Color      color.NRGBA
	HoverColor color.NRGBA
	Radius     CornerRadius
}

func (Card) HoverableLayout added in v1.7.0

func (c Card) HoverableLayout(gtx layout.Context, btn *Clickable, w layout.Widget) layout.Dimensions

func (Card) Layout

func (c Card) Layout(gtx layout.Context, w layout.Widget) layout.Dimensions

type CheckBoxStyle

type CheckBoxStyle struct {
	material.CheckBoxStyle
}

func (CheckBoxStyle) Layout

Layout updates the checkBox and displays it.

type Clickable

type Clickable struct {
	Hoverable bool
	Radius    CornerRadius
	// contains filtered or unexported fields
}

func (*Clickable) ChangeStyle added in v1.7.0

func (cl *Clickable) ChangeStyle(style *values.ClickableStyle)

func (*Clickable) Clicked added in v1.7.0

func (cl *Clickable) Clicked() bool

func (*Clickable) Enabled added in v1.7.0

func (cl *Clickable) Enabled() bool

Return clickable enabled/disabled state.

func (*Clickable) IsHovered added in v1.7.0

func (cl *Clickable) IsHovered() bool

func (*Clickable) Layout added in v1.7.0

func (cl *Clickable) Layout(gtx C, w layout.Widget) D

func (*Clickable) SetEnabled added in v1.7.0

func (cl *Clickable) SetEnabled(enable bool, gtx *layout.Context) layout.Context

SetEnabled enables/disables the clickable.

func (*Clickable) Style added in v1.7.0

func (cl *Clickable) Style() values.ClickableStyle

type ClickableList

type ClickableList struct {
	layout.List

	Radius CornerRadius // this radius is used by the clickable

	DividerHeight   unit.Value
	IsShadowEnabled bool
	IsHoverable     bool
	// contains filtered or unexported fields
}

func (*ClickableList) ItemClicked

func (cl *ClickableList) ItemClicked() (bool, int)

func (*ClickableList) Layout

func (cl *ClickableList) Layout(gtx layout.Context, count int, w layout.ListElement) layout.Dimensions

type Collapsible

type Collapsible struct {
	BackgroundColor color.NRGBA
	// contains filtered or unexported fields
}

func (*Collapsible) IsExpanded added in v1.7.0

func (c *Collapsible) IsExpanded() bool

func (*Collapsible) Layout

func (c *Collapsible) Layout(gtx layout.Context, header, body func(C) D) layout.Dimensions

type CollapsibleWithOption

type CollapsibleWithOption struct {
	BackgroundColor color.NRGBA
	// contains filtered or unexported fields
}

func (*CollapsibleWithOption) Layout

func (c *CollapsibleWithOption) Layout(gtx layout.Context, header, body func(C) D, more func(C), rowID int) layout.Dimensions

func (*CollapsibleWithOption) MoreTriggered

func (c *CollapsibleWithOption) MoreTriggered() bool

type CornerRadius

type CornerRadius struct {
	TopLeft     float32
	TopRight    float32
	BottomRight float32
	BottomLeft  float32
}

func BottomRadius

func BottomRadius(radius float32) CornerRadius

func Radius

func Radius(radius float32) CornerRadius

func TopRadius

func TopRadius(radius float32) CornerRadius

type D

type D = layout.Dimensions
type DropDown struct {
	Position uint

	Width int
	// contains filtered or unexported fields
}

func ResliceDropdown added in v1.7.0

func ResliceDropdown(dropdowns []*DropDown, indexToRemove int) []*DropDown

Reslice the dropdowns

func (d *DropDown) Changed() bool
func (d *DropDown) Layout(gtx C, dropPos int, reversePos bool) D
func (d *DropDown) Len() int
func (d *DropDown) Selected() string
func (d *DropDown) SelectedIndex() int
type DropDownItem struct {
	Text string
	Icon *Image
	// contains filtered or unexported fields
}

type Editor

type Editor struct {
	material.EditorStyle

	TitleLabel Label

	LineColor color.NRGBA

	// IsRequired if true, displays a required field text at the buttom of the editor.
	IsRequired bool
	// IsTitleLabel if true makes the title label visible.
	IsTitleLabel bool

	HasCustomButton bool
	CustomButton    Button

	// Bordered if true makes the adds a border around the editor.
	Bordered bool

	EditorIconButtonEvent func()
	// contains filtered or unexported fields
}

func (*Editor) ClearError

func (e *Editor) ClearError()

func (*Editor) IsDirty

func (e *Editor) IsDirty() bool

func (Editor) Layout

func (e Editor) Layout(gtx layout.Context) layout.Dimensions

func (*Editor) SetError

func (e *Editor) SetError(text string)

func (*Editor) SetRequiredErrorText

func (e *Editor) SetRequiredErrorText(txt string)

type Grid

type Grid struct {
	Num       int
	Axis      layout.Axis
	Alignment layout.Alignment
	// contains filtered or unexported fields
}

Grid lays out at most Num elements along the main axis. The number of cross axis elements depend on the total number of elements.

func (*Grid) Layout

func (g *Grid) Layout(gtx layout.Context, num int, el GridElement) layout.Dimensions

type GridElement

type GridElement func(gtx layout.Context, i int) layout.Dimensions

GridElement lays out the ith element of a Grid.

type GridLayout

type GridLayout struct {
	List              *layout.List
	HorizontalSpacing layout.Spacing
	Alignment         layout.Alignment
	Direction         layout.Direction
	RowCount          int
}

func (GridLayout) Layout

func (g GridLayout) Layout(gtx layout.Context, num int, el GridElement) layout.Dimensions

type GridWrap

type GridWrap struct {
	Axis      layout.Axis
	Alignment layout.Alignment
}

GridWrap lays out as many elements as possible along the main axis before wrapping to the cross axis.

func (GridWrap) Layout

func (g GridWrap) Layout(gtx layout.Context, num int, el GridElement) layout.Dimensions

type Hoverable

type Hoverable struct {
	// contains filtered or unexported fields
}

func (*Hoverable) Hovered

func (h *Hoverable) Hovered() bool

func (*Hoverable) Layout

func (h *Hoverable) Layout(gtx C, rect image.Rectangle) D

func (*Hoverable) Position

func (h *Hoverable) Position() *f32.Point

type Icon

type Icon struct {
	*widget.Icon
	Color color.NRGBA
}

func NewIcon

func NewIcon(icon *widget.Icon) *Icon

NewIcon returns a new Icon from IconVG data.

func (*Icon) Layout added in v1.7.0

func (icon *Icon) Layout(gtx C, iconSize unit.Value) D

type IconButton

type IconButton struct {
	IconButtonStyle
	// contains filtered or unexported fields
}

func (IconButton) ChangeColorStyle added in v1.7.0

func (ib IconButton) ChangeColorStyle(colorStyle *values.ColorStyle)

TODO: Test to ensure this works! TODO: Doesn't work, if ib.colorStyle was nil before this method is called, it is temporarily changed but when ib.Layout is called, it returns to nil.

func (IconButton) Layout

func (ib IconButton) Layout(gtx layout.Context) layout.Dimensions

type IconButtonStyle added in v1.7.0

type IconButtonStyle struct {
	Icon   *widget.Icon
	Size   unit.Value
	Inset  layout.Inset
	Button *widget.Clickable
}

IconButtonStyle is similar to material.IconButtonStyle but excluding the color fields. This ensures that the IconButton colors are only set using the IconButton.colorStyle field.

type Icons added in v1.7.0

type Icons struct {
	ContentAdd, NavigationCheck, NavigationMore, ActionCheckCircle, ActionInfo, NavigationArrowBack,
	NavigationArrowForward, ActionCheck, ChevronRight, NavigationCancel, NavMoreIcon,
	ImageBrightness1, ContentClear, DropDownIcon, Cached, ContentRemove, ConcealIcon, RevealIcon,
	SearchIcon, PlayIcon *widget.Icon

	OverviewIcon, OverviewIconInactive, WalletIcon, WalletIconInactive,
	ReceiveIcon, Transferred, TransactionsIcon, TransactionsIconInactive, SendIcon, MoreIcon, MoreIconInactive,

func (*Icons) DarkModeIcons added in v1.7.0

func (i *Icons) DarkModeIcons() *Icons

func (*Icons) DefaultIcons added in v1.7.0

func (i *Icons) DefaultIcons() *Icons

func (*Icons) StandardMaterialIcons added in v1.7.0

func (i *Icons) StandardMaterialIcons() *Icons

type Image

type Image struct {
	*widget.Image
}

func NewImage

func NewImage(src image.Image) *Image

func (*Image) Layout

func (img *Image) Layout(gtx C) D

func (*Image) Layout12dp

func (img *Image) Layout12dp(gtx C) D

func (*Image) Layout16dp

func (img *Image) Layout16dp(gtx C) D

func (*Image) Layout24dp

func (img *Image) Layout24dp(gtx C) D

func (*Image) Layout36dp

func (img *Image) Layout36dp(gtx C) D

func (*Image) Layout48dp

func (img *Image) Layout48dp(gtx C) D

func (*Image) LayoutSize

func (img *Image) LayoutSize(gtx C, size unit.Value) D

type Label

type Label struct {
	material.LabelStyle
}

type Line

type Line struct {
	Height int
	Width  int
	Color  color.NRGBA
	// contains filtered or unexported fields
}

Line represents a rectangle widget with an initial thickness of 1

func (Line) Layout

func (l Line) Layout(gtx C) D

Layout renders the line widget

type LinearLayout

type LinearLayout struct {
	Width       int
	Height      int
	Orientation layout.Axis
	Background  color.NRGBA
	Shadow      *Shadow
	Border      Border
	Margin      layout.Inset
	Padding     layout.Inset
	Direction   layout.Direction
	Spacing     layout.Spacing
	Alignment   layout.Alignment
	Clickable   *Clickable
}

func (LinearLayout) Layout

func (ll LinearLayout) Layout(gtx C, children ...layout.FlexChild) D

func (LinearLayout) Layout2

func (ll LinearLayout) Layout2(gtx C, wdg layout.Widget) D

Layout2 displays a linear layout with a single child.

type ListStyle added in v1.7.0

type ListStyle struct {
	material.ListStyle
}

ListStyle configures the presentation of a layout.List with a scrollbar.

func (ListStyle) Layout added in v1.7.0

func (l ListStyle) Layout(gtx layout.Context, length int, w layout.ListElement) layout.Dimensions

Layout the list and its scrollbar.

type Modal struct {
	// contains filtered or unexported fields
}

func (*Modal) BackdropClicked

func (m *Modal) BackdropClicked(minimizable bool) bool

func (*Modal) Layout

func (m *Modal) Layout(gtx layout.Context, widgets []layout.Widget) layout.Dimensions

Layout renders the modal widget to screen. The modal assumes the size of its content plus padding.

func (*Modal) SetDisabled added in v1.7.0

func (m *Modal) SetDisabled(disabled bool)

func (*Modal) SetPadding added in v1.7.0

func (m *Modal) SetPadding(padding unit.Value)

func (*Modal) ShowScrollbar added in v1.7.0

func (m *Modal) ShowScrollbar(showScrollBar bool)

type MultiLayerProgressBar added in v1.7.0

type MultiLayerProgressBar struct {
	Radius CornerRadius
	Height unit.Value
	Width  float32
	// contains filtered or unexported fields
}

MultiLayerProgressBar shows the percentage of the mutiple progress layer against the total/expected progress.

func (*MultiLayerProgressBar) Layout added in v1.7.0

func (mp *MultiLayerProgressBar) Layout(gtx C, labelWdg layout.Widget) D

type Outline

type Outline struct {
	BorderColor color.NRGBA
	Weight      int
}

func (Outline) Layout

func (o Outline) Layout(gtx layout.Context, w layout.Widget) D

type Password

type Password struct {
	// contains filtered or unexported fields
}

func (*Password) Layout

func (p *Password) Layout(gtx layout.Context, confirm func([]byte), cancel func()) layout.Dimensions

Layout renders the widget to screen. The confirm function passed by the calling page is called when the confirm button is clicked, and the form passes validation. The entered password is passed as an argument to the confirm func. The cancel func is called when the cancel button is clicked

func (*Password) WithError

func (p *Password) WithError(e string)

type Position

type Position int

Position determines what side of the page the tab would be laid out

const (
	Top Position = iota
	Right
	Bottom
	Left
)

type ProgressBarItem added in v1.7.0

type ProgressBarItem struct {
	Value   float32
	Color   color.NRGBA
	SubText string
}

type ProgressBarStyle

type ProgressBarStyle struct {
	Radius    CornerRadius
	Height    unit.Value
	Width     unit.Value
	Direction layout.Direction
	material.ProgressBarStyle
}

func (ProgressBarStyle) Layout

func (ProgressBarStyle) Layout2

func (p ProgressBarStyle) Layout2(gtx C) D

This achieves a progress bar using linear layouts.

type RadioButton

type RadioButton struct {
	material.RadioButtonStyle
}

type RestoreEditor

type RestoreEditor struct {
	Edit       Editor
	TitleLabel Label
	LineColor  color.NRGBA
	// contains filtered or unexported fields
}

func (RestoreEditor) Layout

func (re RestoreEditor) Layout(gtx layout.Context) layout.Dimensions

type ScrollbarStyle added in v1.7.0

type ScrollbarStyle struct {
	material.ScrollbarStyle
}

ScrollbarStyle configures the presentation of a scrollbar.

type Shadow

type Shadow struct {
	// contains filtered or unexported fields
}

func (*Shadow) Layout

func (s *Shadow) Layout(gtx C, w layout.Widget) D

func (*Shadow) SetShadowElevation added in v1.7.0

func (s *Shadow) SetShadowElevation(elev float32)

func (*Shadow) SetShadowRadius added in v1.7.0

func (s *Shadow) SetShadowRadius(radius float32)

type Switch

type Switch struct {
	// contains filtered or unexported fields
}

func (*Switch) Changed

func (s *Switch) Changed() bool

func (*Switch) IsChecked

func (s *Switch) IsChecked() bool

func (*Switch) Layout

func (s *Switch) Layout(gtx layout.Context) layout.Dimensions

func (*Switch) SetChecked

func (s *Switch) SetChecked(value bool)

func (*Switch) SetEnabled added in v1.7.0

func (s *Switch) SetEnabled(value bool)

type SwitchButtonText

type SwitchButtonText struct {
	ActiveTextColor, InactiveTextColor color.NRGBA
	Active, Inactive                   color.NRGBA
	// contains filtered or unexported fields
}

func (*SwitchButtonText) Changed added in v1.7.0

func (s *SwitchButtonText) Changed() bool

func (*SwitchButtonText) Layout

func (*SwitchButtonText) SelectedIndex

func (s *SwitchButtonText) SelectedIndex() int

func (*SwitchButtonText) SelectedOption

func (s *SwitchButtonText) SelectedOption() string

type SwitchItem

type SwitchItem struct {
	Text string
	// contains filtered or unexported fields
}

type TabItem

type TabItem struct {
	Title string

	Icon image.Image
	// contains filtered or unexported fields
}

TabItem displays a single child of a tab. Label and Icon in TabItem are optional.

func NewTabItem

func NewTabItem(title string, icon *image.Image) TabItem

func (*TabItem) Layout

func (t *TabItem) Layout(gtx layout.Context, selected int, tabPosition Position) layout.Dimensions

type Tabs

type Tabs struct {
	Size float32

	Selected int

	Position  Position
	Separator bool
	// contains filtered or unexported fields
}

Tabs displays succession of TabItems. Using the Position option, Tabs can be displayed on any four sides of a rendered page.

func NewTabs

func NewTabs(th *Theme) *Tabs

func (*Tabs) ChangeEvent

func (t *Tabs) ChangeEvent() bool

ChangeEvent returns the last change event

func (*Tabs) ChangeTab

func (t *Tabs) ChangeTab(index int)

ChangeTab changes the position of the selected tab

func (*Tabs) Layout

func (t *Tabs) Layout(gtx layout.Context, body layout.Widget) layout.Dimensions

func (*Tabs) SetTitle

func (t *Tabs) SetTitle(title Label)

SetTitle setting the title of the tabs

type TextAndIconButton

type TextAndIconButton struct {
	Button *widget.Clickable

	Color           color.NRGBA
	BackgroundColor color.NRGBA
	// contains filtered or unexported fields
}

func (TextAndIconButton) Layout

type Theme

type Theme struct {
	Shaper text.Shaper
	Base   *material.Theme
	Color  *values.Color
	Styles *values.WidgetStyles

	Icons    *Icons
	TextSize unit.Value
	// contains filtered or unexported fields
}

func NewTheme

func NewTheme(fontCollection []text.FontFace, decredIcons map[string]image.Image, isDarkModeOn bool) *Theme

func (*Theme) Background

func (t *Theme) Background(gtx layout.Context, w layout.Widget)

func (*Theme) Badge

func (t *Theme) Badge() *Badge

func (*Theme) Body1

func (t *Theme) Body1(txt string) Label

func (*Theme) Body2

func (t *Theme) Body2(txt string) Label

func (*Theme) Button

func (t *Theme) Button(txt string) Button

func (*Theme) ButtonLayout

func (t *Theme) ButtonLayout() ButtonLayout

func (*Theme) Caption

func (t *Theme) Caption(txt string) Label

func (*Theme) Card

func (t *Theme) Card() Card

func (*Theme) CheckBox

func (t *Theme) CheckBox(checkBox *widget.Bool, label string) CheckBoxStyle

func (*Theme) Collapsible

func (t *Theme) Collapsible() *Collapsible

func (*Theme) CollapsibleWithOption

func (t *Theme) CollapsibleWithOption() *CollapsibleWithOption

func (*Theme) DangerButton

func (t *Theme) DangerButton(text string) Button

DangerButton a button with the background set to theme.Danger

func (*Theme) DropDown

func (t *Theme) DropDown(items []DropDownItem, group uint, pos uint) *DropDown

DropDown returns a dropdown component. {pos} parameter signifies the position of the dropdown in a dropdown group on the UI, the first dropdown should be assigned pos 0, next 1..etc. incorrectly assigned Dropdown pos will result in inconsistent dropdown backdrop.

func (*Theme) Editor

func (t *Theme) Editor(editor *widget.Editor, hint string) Editor

func (*Theme) EditorPassword

func (t *Theme) EditorPassword(editor *widget.Editor, hint string) Editor

func (*Theme) ErrorLabel

func (t *Theme) ErrorLabel(txt string) Label

func (*Theme) H1

func (t *Theme) H1(txt string) Label

func (*Theme) H2

func (t *Theme) H2(txt string) Label

func (*Theme) H3

func (t *Theme) H3(txt string) Label

func (*Theme) H4

func (t *Theme) H4(txt string) Label

func (*Theme) H5

func (t *Theme) H5(txt string) Label

func (*Theme) H6

func (t *Theme) H6(txt string) Label

func (*Theme) Hoverable

func (t *Theme) Hoverable() *Hoverable

func (*Theme) IconButton

func (t *Theme) IconButton(icon *widget.Icon) IconButton

func (*Theme) IconButtonWithStyle added in v1.7.0

func (t *Theme) IconButtonWithStyle(ibs IconButtonStyle, colorStyle *values.ColorStyle) IconButton

func (*Theme) IconEditor added in v1.7.0

func (t *Theme) IconEditor(editor *widget.Editor, hint string, icon *widget.Icon, clickableIcon bool) Editor

IconEditor creates an editor widget with icon of choice

func (*Theme) ImageIcon

func (t *Theme) ImageIcon(gtx layout.Context, icon image.Image, size int) layout.Dimensions

func (*Theme) Label

func (t *Theme) Label(size unit.Value, txt string) Label

func (*Theme) Line

func (t *Theme) Line(height, width int) Line

Line returns a line widget instance

func (*Theme) List added in v1.7.0

func (t *Theme) List(state *widget.List) ListStyle

func (*Theme) Modal

func (t *Theme) Modal() *Modal

func (*Theme) ModalFloatTitle

func (t *Theme) ModalFloatTitle() *Modal

func (*Theme) MultiLayerProgressBar added in v1.7.0

func (t *Theme) MultiLayerProgressBar(total float32, items []ProgressBarItem) *MultiLayerProgressBar

func (*Theme) NewClickable added in v1.7.0

func (t *Theme) NewClickable(hoverable bool) *Clickable

func (*Theme) NewClickableList

func (t *Theme) NewClickableList(axis layout.Axis) *ClickableList

func (*Theme) Outline

func (t *Theme) Outline() Outline

func (*Theme) OutlineButton added in v1.7.0

func (t *Theme) OutlineButton(txt string) Button

func (*Theme) Password

func (t *Theme) Password() *Password

Password initializes and returns an instance of Password

func (*Theme) ProgressBar

func (t *Theme) ProgressBar(progress int) ProgressBarStyle

func (*Theme) RadioButton

func (t *Theme) RadioButton(group *widget.Enum, key, label string, color, icon color.NRGBA) RadioButton

RadioButton returns a RadioButton with a label. The key specifies the value for the Enum.

func (*Theme) RestoreEditor

func (t *Theme) RestoreEditor(editor *widget.Editor, hint string, title string) RestoreEditor

func (*Theme) Scrollbar

func (t *Theme) Scrollbar(state *widget.Scrollbar) ScrollbarStyle

func (*Theme) Separator

func (t *Theme) Separator() Line

func (*Theme) SeparatorVertical

func (t *Theme) SeparatorVertical(height, width int) Line

SeparatorVertical returns a vertical line widget instance

func (*Theme) Shadow

func (t *Theme) Shadow() *Shadow

func (*Theme) Surface

func (t *Theme) Surface(gtx layout.Context, w layout.Widget) layout.Dimensions

func (*Theme) Switch

func (t *Theme) Switch() *Switch

func (*Theme) SwitchButtonText

func (t *Theme) SwitchButtonText(i []SwitchItem) *SwitchButtonText

func (*Theme) SwitchDarkMode

func (t *Theme) SwitchDarkMode(isDarkModeOn bool, decredIcons map[string]image.Image)

func (*Theme) TextAndIconButton

func (t *Theme) TextAndIconButton(text string, icon *widget.Icon) TextAndIconButton

func (*Theme) Tooltip

func (t *Theme) Tooltip() *Tooltip

type Tooltip

type Tooltip struct {
	// contains filtered or unexported fields
}

func (*Tooltip) Layout

func (t *Tooltip) Layout(gtx C, rect image.Rectangle, pos layout.Inset, wdgt layout.Widget) D

Jump to

Keyboard shortcuts

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