widget

package
v0.0.10-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Composer added in v0.0.4

type Composer struct {
	SendButton, CancelButton, CopyButton, PasteButton widget.Clickable
	widget.Editor

	Mode ComposerMode

	Communities layout.List
	Community   widget.Enum

	ReplyingTo       *forest.Reply
	ReplyingToAuthor *forest.Identity
}

type ComposerMode added in v0.0.4

type ComposerMode uint
const (
	CreatingConversation ComposerMode = iota
	CreatingReply
)

type Reply

type Reply struct {
	widget.Clickable
	Reply *fields.QualifiedHash
}

type TextForm added in v0.0.9

type TextForm struct {
	widget.Editor
	SubmitButton widget.Clickable
	PasteButton  widget.Clickable
	// contains filtered or unexported fields
}

TextForm holds the theme-independent state of a simple form that allows a user to provide a single text value and supports pasting. It can be submitted with either the submit button or pressing enter on the keyboard.

func (*TextForm) Layout added in v0.0.9

func (c *TextForm) Layout(gtx layout.Context) layout.Dimensions

func (*TextForm) Paste added in v0.0.9

func (c *TextForm) Paste(data string)

func (*TextForm) PasteRequested added in v0.0.9

func (c *TextForm) PasteRequested() bool

func (*TextForm) Submitted added in v0.0.9

func (c *TextForm) Submitted() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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