forked from joejulian/gio
io/pointer: add forth and fifth buttons
Signed-off-by: Marc <marc.leroy@samantree.com> Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -219,6 +219,12 @@ const (
|
|||||||
ButtonSecondary
|
ButtonSecondary
|
||||||
// ButtonTertiary is the tertiary button, usually the middle button.
|
// ButtonTertiary is the tertiary button, usually the middle button.
|
||||||
ButtonTertiary
|
ButtonTertiary
|
||||||
|
// ButtonQuaternary is the fourth button, usually used for browser
|
||||||
|
// navigation (back)
|
||||||
|
ButtonQuaternary
|
||||||
|
// ButtonQuinary is the fifth button, usually used for browser
|
||||||
|
// navigation (forward)
|
||||||
|
ButtonQuinary
|
||||||
)
|
)
|
||||||
|
|
||||||
func (s ScrollRange) Union(s2 ScrollRange) ScrollRange {
|
func (s ScrollRange) Union(s2 ScrollRange) ScrollRange {
|
||||||
@@ -326,6 +332,12 @@ func (b Buttons) String() string {
|
|||||||
if b.Contain(ButtonTertiary) {
|
if b.Contain(ButtonTertiary) {
|
||||||
strs = append(strs, "ButtonTertiary")
|
strs = append(strs, "ButtonTertiary")
|
||||||
}
|
}
|
||||||
|
if b.Contain(ButtonQuaternary) {
|
||||||
|
strs = append(strs, "ButtonQuaternary")
|
||||||
|
}
|
||||||
|
if b.Contain(ButtonQuinary) {
|
||||||
|
strs = append(strs, "ButtonQuinary")
|
||||||
|
}
|
||||||
return strings.Join(strs, "|")
|
return strings.Join(strs, "|")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user