Upgrade to v2.5
Fyne API v2.5
app
canvas
container
data/binding
data/validation
dialog
driver
package driver
AndroidContext
AndroidWindowContext
MacWindowContext
NativeWindow
UnknownContext
WaylandWindowContext
WindowsWindowContext
X11WindowContext
driver/desktop
package desktop
App
Canvas
Cursor
Cursorable
CustomShortcut
Driver
Hoverable
Keyable
Modifier
Mouseable
MouseButton
MouseEvent
StandardCursor
driver/mobile
driver/software
lang
layout
storage
storage/repository
test
theme
widget
Fyne API "desktop.MouseButton"
desktop.MouseButton
import "fyne.io/fyne/v2/driver/desktop"
Usage
type MouseButton
type MouseButton int
MouseButton represents a single button in a desktop MouseEvent
const (
// MouseButtonPrimary is the most common mouse button - on some systems the only one.
// This will normally be on the left side of a mouse.
//
// Since: 2.0
MouseButtonPrimary MouseButton = 1 << iota
// MouseButtonSecondary is the secondary button on most mouse input devices.
// This will normally be on the right side of a mouse.
//
// Since: 2.0
MouseButtonSecondary
// MouseButtonTertiary is the middle button on the mouse, assuming it has one.
//
// Since: 2.0
MouseButtonTertiary
// LeftMouseButton is the most common mouse button - on some systems the only one.
//
// Deprecated: use MouseButtonPrimary which will adapt to mouse configuration.
LeftMouseButton = MouseButtonPrimary
// RightMouseButton is the secondary button on most mouse input devices.
//
// Deprecated: use MouseButtonSecondary which will adapt to mouse configuration.
RightMouseButton = MouseButtonSecondary
)