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 (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"sync"
|
|
||||||
"image"
|
"image"
|
||||||
"unsafe"
|
|
||||||
"reflect"
|
"reflect"
|
||||||
|
"sync"
|
||||||
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Area represents a blank canvas upon which programs may draw anything and receive arbitrary events from the user.
|
// 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.
|
// ExtKey represents keys that are not in the typewriter section of the keyboard.
|
||||||
type ExtKey uintptr
|
type ExtKey uintptr
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Escape ExtKey = iota + 1
|
Escape ExtKey = iota + 1
|
||||||
Insert // equivalent to "Help" on Apple keyboards
|
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.
|
// 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.
|
// 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
|
type Modifiers uintptr
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Ctrl Modifiers = 1 << iota // the keys labelled Ctrl or Control on all platforms
|
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
|
Alt // the keys labelled Alt or Option or Meta on all platforms
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
package ui
|
package ui
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"unsafe"
|
|
||||||
"image"
|
"image"
|
||||||
|
"unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
// #include <stdlib.h>
|
// #include <stdlib.h>
|
||||||
|
|
Loading…
Reference in New Issue