Range
Table of contents
Defines range limits. The First and Last value are included in the range
type Range struct {
First, Last int
}
| Member | Type | Description |
|---|---|---|
| First | int |
Start range value(inclusive) |
| Last | int |
End range value(inclusive) |
Related global functions
func GetColumn(view View, subviewID ...string) Range
Returns the range of column numbers of a GridLayout in which the subview is placed. If the second argument (subviewID) is not specified or is an empty string then a values from the first argument (view) is returned
func GetRow(view View, subviewID ...string) Range
Returns the range of row numbers of a GridLayout in which the subview is placed. If the second argument (subviewID) is not specified or is an empty string then a values from the first argument (view) is returned