More go fmt. That completes the main package go fmt. Won't bother with test or tools.

This commit is contained in:
Pietro Gagliardi 2014-06-10 16:03:10 -04:00
parent a210775287
commit 5fa1bd22e2
2 changed files with 68 additions and 66 deletions

View File

@ -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

View File

@ -3,8 +3,8 @@
package ui
import (
"unsafe"
"image"
"unsafe"
)
// #include <stdlib.h>