More go fmt. That completes the main package go fmt. Won't bother with test or tools.
This commit is contained in:
parent
a210775287
commit
5fa1bd22e2
6
area.go
6
area.go
|
@ -4,10 +4,10 @@ package ui
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"sync"
|
||||
"image"
|
||||
"unsafe"
|
||||
"reflect"
|
||||
"sync"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// Area represents a blank canvas upon which programs may draw anything and receive arbitrary events from the user.
|
||||
|
@ -186,6 +186,7 @@ type KeyEvent struct {
|
|||
|
||||
// ExtKey represents keys that are not in the typewriter section of the keyboard.
|
||||
type ExtKey uintptr
|
||||
|
||||
const (
|
||||
Escape ExtKey = iota + 1
|
||||
Insert // equivalent to "Help" on Apple keyboards
|
||||
|
@ -262,6 +263,7 @@ func (e KeyEvent) EffectiveKey() byte {
|
|||
// There is no way to differentiate between left and right modifier keys.
|
||||
// As such, what KeyEvents get sent if the user does something unusual with both of a certain modifier key at once is undefined.
|
||||
type Modifiers uintptr
|
||||
|
||||
const (
|
||||
Ctrl Modifiers = 1 << iota // the keys labelled Ctrl or Control on all platforms
|
||||
Alt // the keys labelled Alt or Option or Meta on all platforms
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
package ui
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
"image"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// #include <stdlib.h>
|
||||
|
|
Loading…
Reference in New Issue