Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CopyIcon *widget.Icon = func() *widget.Icon { icon, _ := widget.NewIcon(icons.ContentContentCopy) return icon }()
View Source
var PasteIcon *widget.Icon = func() *widget.Icon { icon, _ := widget.NewIcon(icons.ContentContentPaste) return icon }()
Functions ¶
Types ¶
type Copyable ¶
RichEditor is an extension to widget.Editor with copy and paste buttons. This allows users of a mobile device to easily make use of copy and paste in the selected text.
type CopyableStyle ¶
type CopyableStyle struct { *material.Theme // Inset around each button layout.Inset // contains filtered or unexported fields }
CopyableStyle defines how a Copyable is presented.
func (CopyableStyle) Layout ¶
func (r CopyableStyle) Layout(gtx C) D
Layout renders the editor into the provided gtx.
type D ¶
type D = layout.Dimensions
type RichEditor ¶
RichEditor is an extension to widget.Editor with copy and paste buttons. This allows users of a mobile device to easily make use of copy and paste in the selected text.
func (*RichEditor) Layout ¶
func (r *RichEditor) Layout(gtx C) D
Layout updates the internal state of the RichEditor.
type RichEditorStyle ¶
type RichEditorStyle struct { *material.Theme // Inset around each button layout.Inset // contains filtered or unexported fields }
RichEditorStyle defines how a RichEditor is presented.
func PasteEditor ¶
func PasteEditor(th *material.Theme, state *RichEditor, hint string) RichEditorStyle
func (RichEditorStyle) Layout ¶
func (r RichEditorStyle) Layout(gtx C) D
Layout renders the editor into the provided gtx.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.