autoscroll

package
v0.0.0-...-bedf5c0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Window

type Window struct {
	*gtk.ScrolledWindow
	// contains filtered or unexported fields
}

Window describes an automatically scrolled window.

func NewWindow

func NewWindow() *Window

func (*Window) IsBottomed

func (w *Window) IsBottomed() bool

IsBottomed returns true if the scrolled window is currently bottomed out.

func (*Window) LockScroll

func (w *Window) LockScroll() func()

LockScroll locks the scroll to the current value, even if more content is added. The returned function unlocks the scroll.

func (*Window) OnBottomed

func (w *Window) OnBottomed(f func())

OnBottomed registers the given function to be called when the user bottoms out the scrolled window.

func (*Window) ScrollToBottom

func (w *Window) ScrollToBottom()

ScrollToBottom scrolls the window to bottom.

func (*Window) SetChild

func (w *Window) SetChild(child gtk.Widgetter)

SetChild sets the child of the ScrolledWindow.

func (*Window) Unbottom

func (w *Window) Unbottom()

Unbottom clears the bottomed state.

func (*Window) VAdjustment

func (w *Window) VAdjustment() *gtk.Adjustment

VAdjustment overrides gtk.ScrolledWindow's.

func (*Window) Viewport

func (w *Window) Viewport() *gtk.Viewport

Viewport returns the ScrolledWindow's Viewport.

Jump to

Keyboard shortcuts

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