github.com/jmigpin/editor@v1.6.0/util/uiutil/widget/scrollable.go (about) 1 package widget 2 3 import ( 4 "image" 5 ) 6 7 type Scrollable interface { 8 SetScrollable(x, y bool) 9 10 ScrollOffset() image.Point 11 SetScrollOffset(image.Point) 12 ScrollSize() image.Point 13 ScrollViewSize() image.Point 14 ScrollPageSizeY(up bool) int 15 ScrollWheelSizeY(up bool) int 16 } 17 18 // Used by ScrollArea. 19 type ScrollableNode interface { 20 Node 21 Scrollable 22 }