ui

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 30 Imported by: 0

Documentation

Overview

Package ui contains the code for rendering the UI.

Index

Constants

View Source
const (
	CreateMessageNew = iota
	CreateMessageReply
	CreateMessageReplyAll
	CreateMessageForward
)

Variables

This section is empty.

Functions

func NewNonEmptyStringValidator

func NewNonEmptyStringValidator() fyne.StringValidator

func NewPositiveNumberValidator

func NewPositiveNumberValidator() fyne.StringValidator

func NewUI

func NewUI(s *service.Service) *ui

NewUI build the UI and returns it.

Types

type MailRecipients

type MailRecipients struct {
	// contains filtered or unexported fields
}

A container holding all recipients in a mail

func NewMailRecipients

func NewMailRecipients() *MailRecipients

func NewMailRecipientsFromEntities

func NewMailRecipientsFromEntities(ee []*model.EveEntity) *MailRecipients

func NewMailRecipientsFromText

func NewMailRecipientsFromText(t string) *MailRecipients

func (*MailRecipients) AddFromEveEntity

func (rr *MailRecipients) AddFromEveEntity(e *model.EveEntity)

func (*MailRecipients) AddFromText

func (rr *MailRecipients) AddFromText(s string)

func (*MailRecipients) Size

func (rr *MailRecipients) Size() int

func (*MailRecipients) String

func (rr *MailRecipients) String() string

func (*MailRecipients) ToEveEntitiesUnclean

func (rr *MailRecipients) ToEveEntitiesUnclean() []*model.EveEntity

Returns the mail recipients as unclean EveEntity slice. ID will not be set. And some might not have a category.

func (*MailRecipients) ToOptions

func (rr *MailRecipients) ToOptions() []string

Jump to

Keyboard shortcuts

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