widgets

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

* Meilindex - mail indexing and search tool. * Copyright (C) 2020 Tero Vierimaa * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. * *

* Meilindex - mail indexing and search tool. * Copyright (C) 2020 Tero Vierimaa * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. * *

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Help

type Help struct {
	*cview.TextView
	// contains filtered or unexported fields
}

func NewHelp

func NewHelp() *Help

func (*Help) GetFocusable

func (h *Help) GetFocusable() cview.Focusable

func (*Help) InputHandler

func (h *Help) InputHandler() func(event *tcell.EventKey, setFocus func(p cview.Primitive))

func (*Help) SetDoneFunc

func (h *Help) SetDoneFunc(doneFunc func())

func (*Help) SetVisible

func (h *Help) SetVisible(visible bool)

type MessageList

type MessageList struct {
	*twidgets.ScrollList
	// contains filtered or unexported fields
}

func NewMessageList

func NewMessageList(selectFunc func(m *indexer.Mail)) *MessageList

func (*MessageList) AddMessage

func (m *MessageList) AddMessage(index int, mail *indexer.Mail)

func (*MessageList) Clear

func (m *MessageList) Clear()

type MessageShort

type MessageShort struct {
	*cview.TextView
	// contains filtered or unexported fields
}

func NewMessageShort

func NewMessageShort(index int, mail *indexer.Mail) *MessageShort

func (*MessageShort) SetSelected

func (m *MessageShort) SetSelected(selected twidgets.Selection)

type QueryInput

type QueryInput struct {
	*cview.Form
	// contains filtered or unexported fields
}

func NewQueryInput

func NewQueryInput(query func(query, filter string)) *QueryInput

type Settings

type Settings struct {
	*cview.TextView
	// contains filtered or unexported fields
}

func NewSettings

func NewSettings() *Settings

func (*Settings) GetFocusable

func (s *Settings) GetFocusable() cview.Focusable

func (*Settings) InputHandler

func (s *Settings) InputHandler() func(event *tcell.EventKey, setFocus func(p cview.Primitive))

func (*Settings) SetDoneFunc

func (s *Settings) SetDoneFunc(doneFunc func())

func (*Settings) SetVisible

func (s *Settings) SetVisible(visible bool)

type Window

type Window struct {
	*twidgets.ModalLayout
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow() *Window

func (*Window) Run

func (w *Window) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL