-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor scroll direction consts to be public, improving docs and rem…
…oving confusion!
- Loading branch information
1 parent
1df903e
commit a72cca4
Showing
6 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package fyne | ||
|
||
// ScrollDirection represents the directions in which a scrollable container or widget can scroll its child content. | ||
type ScrollDirection int | ||
|
||
// Constants for valid values of ScrollDirection used in containers and widgets. | ||
const ( | ||
// ScrollBoth supports horizontal and vertical scrolling. | ||
ScrollBoth ScrollDirection = iota | ||
// ScrollHorizontalOnly specifies the scrolling should only happen left to right. | ||
ScrollHorizontalOnly | ||
// ScrollVerticalOnly specifies the scrolling should only happen top to bottom. | ||
ScrollVerticalOnly | ||
// ScrollNone turns off scrolling for this container. | ||
// | ||
// Since: 2.6 | ||
ScrollNone | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters