enableselected

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package enableselected provides a widget that turns on focus.Selected. It can be used to wrap container widgets (pile, columns) which may change their look according to the selected state. One use for this is highlighting selected rows or columns when the widget itself is not in focus.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Widget

type Widget struct {
	gowid.IWidget
}

Widget turns on the selected field in the Widget when operations are done on this widget. Then children widgets that respond to the selected state will be activated.

func New

func New(w gowid.IWidget) *Widget

func (*Widget) Render

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

func (*Widget) RenderSize

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

func (*Widget) SubWidget

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

func (*Widget) UserInput

func (w *Widget) UserInput(ev interface{}, size gowid.IRenderSize, focus gowid.Selector, app gowid.IApp) bool

Jump to

Keyboard shortcuts

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