selectable

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 2 Imported by: 13

Documentation

Overview

Package selectable provides a widget that forces its inner widget to be selectable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Widget

type Widget struct {
	gowid.IWidget
	*gowid.Callbacks
	gowid.SubWidgetCallbacks
	// contains filtered or unexported fields
}

If you would like a non-selectable widget like TextWidget to be selectable in some context, wrap it in Widget

func New

func New(w gowid.IWidget) *Widget

func NewSelectable

func NewSelectable(w gowid.IWidget) *Widget

func NewUnselectable

func NewUnselectable(w gowid.IWidget) *Widget

func NewWith

func NewWith(w gowid.IWidget, isSelectable bool) *Widget

func (*Widget) Selectable

func (w *Widget) Selectable() bool

func (*Widget) SetSubWidget

func (w *Widget) SetSubWidget(wi gowid.IWidget, app gowid.IApp)

func (*Widget) String

func (w *Widget) String() string

func (*Widget) SubWidget

func (w *Widget) SubWidget() gowid.IWidget

func (*Widget) SubWidgetSize

func (w *Widget) SubWidgetSize(size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) gowid.IRenderSize

Jump to

Keyboard shortcuts

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