Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { ScrollToLine(int) ScrollToRune(int) SetScrollOffset(int) StartOffset() int LineIndex(int) int }
Controller matches the type we need to control scrolling.
type Opt ¶
Opt is an option function to be passed to Scroller.For
func ToLine ¶
ToLine is an Opt that sets s to scroll vertically, focusing on line. The horizontal position will not change.
func ToOldOffset ¶
func ToOldOffset() Opt
ToOldOffset is an Opt that sets scroll in the stored position
type ScrolledHook ¶
ScrolledHook is a hook that will trigger whenever the view has scrolled.
type Scroller ¶
type Scroller struct {
// contains filtered or unexported fields
}
Scroller is a bind.Op that is used to scroll the editor frame.
Click to show internal directories.
Click to hide internal directories.