drawutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: BSD-3-Clause, MIT Imports: 3 Imported by: 1

Documentation

Overview

Package drawutil contains draw related utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MouseScrollSize

func MouseScrollSize(maxlines int) int

MouseScrollSize computes the number of lines of text that should be scrolled in response to a mouse scroll wheel click. Maxlines is the number of lines visible in the text window.

The default scroll increment is one line. This default can be overridden by setting the $mousescrollsize environment variable to an integer, which specifies a constant number of lines, or to a real number followed by a percent character, indicating that the scroll increment should be a percentage of the total number of lines in the window. For example, setting $mousescrollsize to 50% causes a half-window scroll increment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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