breakmanagerui

package
v0.0.0-...-08a2c7c Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

* Copyright (c) 2024 Samuel Dasilva * * This file is part of Boba Break. * * Boba Break is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Boba Break 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Boba Break. If not, see <https://www.gnu.org/licenses/>.

* Copyright (c) 2024 Samuel Dasilva * * This file is part of Boba Break. * * Boba Break is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Boba Break 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Boba Break. If not, see <https://www.gnu.org/licenses/>.

Index

Constants

View Source
const (
	Focusing sessionState = iota
	Relaxing
	Paused
)

Variables

This section is empty.

Functions

func New

func New() *scribble

Types

type BackMsg

type BackMsg struct{}

type BreakModel

type BreakModel struct {
	Timer timer.Model
	// contains filtered or unexported fields
}

func InitialModel

func InitialModel(workDuration time.Duration, breakDuration time.Duration) BreakModel

func (BreakModel) Init

func (m BreakModel) Init() tea.Cmd

func (BreakModel) Start

func (m BreakModel) Start()

func (BreakModel) TimerView

func (m BreakModel) TimerView() string

func (BreakModel) Update

func (m BreakModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (BreakModel) View

func (m BreakModel) View() string

type ScribblingMsg

type ScribblingMsg struct{}

type Styles

type Styles struct {
	Base,
	HeaderText,
	Status,
	StatusHeader,
	Highlight,
	ErrorHeaderText,
	Help lipgloss.Style
}

func NewStyles

func NewStyles(lg *lipgloss.Renderer) *Styles

type SwitchBreakMsg

type SwitchBreakMsg struct{}

type SwitchWorkMsg

type SwitchWorkMsg struct{}

Jump to

Keyboard shortcuts

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