text

package
v0.0.0-...-acaaffd Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseRenderer

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

BaseRenderer is a renderer base providing the most common implementations of a part of the widget.Renderer interface.

func NewBaseRenderer

func NewBaseRenderer(objects []fyne.CanvasObject) BaseRenderer

NewBaseRenderer creates a new BaseRenderer.

func (*BaseRenderer) BackgroundColor

func (r *BaseRenderer) BackgroundColor() color.Color

BackgroundColor returns the theme background color. Implements: fyne.WidgetRenderer

func (*BaseRenderer) Destroy

func (r *BaseRenderer) Destroy()

Destroy does nothing in the base implementation. Implements: fyne.WidgetRenderer

func (*BaseRenderer) Objects

func (r *BaseRenderer) Objects() []fyne.CanvasObject

Objects returns the objects that should be rendered. Implements: fyne.WidgetRenderer

func (*BaseRenderer) SetObjects

func (r *BaseRenderer) SetObjects(objects []fyne.CanvasObject)

SetObjects updates the objects of the renderer.

type SelectClickText

type SelectClickText struct {
	*widget.Label
	data.Config
	// contains filtered or unexported fields
}

可以点击和右选中的文本

func NewSelectClickText

func NewSelectClickText(content string, conf data.Config, index int) *SelectClickText

func (*SelectClickText) Tapped

func (c *SelectClickText) Tapped(e *fyne.PointEvent)

func (*SelectClickText) TappedSecondary

func (c *SelectClickText) TappedSecondary(e *fyne.PointEvent)

Jump to

Keyboard shortcuts

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