gofmt files

This commit is contained in:
polypmer 2016-09-07 07:52:52 -04:00
parent 2dde2a79e7
commit 1ec8f6b01c
22 changed files with 226 additions and 215 deletions

View File

@ -267,6 +267,7 @@ func doAreaHandlerKeyEvent(uah *C.uiAreaHandler, ua *C.uiArea, uke *C.uiAreaKeyE
// //
// Note: these must be numerically identical to their libui equivalents. // Note: these must be numerically identical to their libui equivalents.
type Modifiers uint type Modifiers uint
const ( const (
Ctrl Modifiers = 1 << iota Ctrl Modifiers = 1 << iota
Alt Alt
@ -278,6 +279,7 @@ const (
// //
// Note: these must be numerically identical to their libui equivalents. // Note: these must be numerically identical to their libui equivalents.
type ExtKey int type ExtKey int
const ( const (
Escape ExtKey = iota + 1 Escape ExtKey = iota + 1
Insert // equivalent to "Help" on Apple keyboards Insert // equivalent to "Help" on Apple keyboards

View File

@ -41,6 +41,7 @@ func NewCombobox() *Combobox {
return c return c
} }
/*TODO /*TODO
// NewEditableCombobox creates a new editable Combobox. // NewEditableCombobox creates a new editable Combobox.
func NewEditableCombobox() *Combobox { func NewEditableCombobox() *Combobox {

View File

@ -166,6 +166,7 @@ type Path struct {
// //
// TODO disclaimer // TODO disclaimer
type FillMode uint type FillMode uint
const ( const (
Winding FillMode = iota Winding FillMode = iota
Alternate Alternate
@ -277,6 +278,7 @@ type DrawContext struct {
// //
// TODO disclaimer // TODO disclaimer
type BrushType int type BrushType int
const ( const (
Solid BrushType = iota Solid BrushType = iota
LinearGradient LinearGradient
@ -289,6 +291,7 @@ const (
// TODO disclaimer // TODO disclaimer
// TODO rename these to put LineCap at the beginning? or just Cap? // TODO rename these to put LineCap at the beginning? or just Cap?
type LineCap int type LineCap int
const ( const (
FlatCap LineCap = iota FlatCap LineCap = iota
RoundCap RoundCap
@ -299,6 +302,7 @@ const (
// //
// TODO disclaimer // TODO disclaimer
type LineJoin int type LineJoin int
const ( const (
MiterJoin LineJoin = iota MiterJoin LineJoin = iota
RoundJoin RoundJoin
@ -609,6 +613,7 @@ func (f *FontFamilies) Family(n int) string {
// //
// TODO disclaimer // TODO disclaimer
type TextWeight int type TextWeight int
const ( const (
TextWeightThin TextWeight = iota TextWeightThin TextWeight = iota
TextWeightUltraLight TextWeightUltraLight
@ -627,6 +632,7 @@ const (
// //
// TODO disclaimer // TODO disclaimer
type TextItalic int type TextItalic int
const ( const (
TextItalicNormal TextItalic = iota TextItalicNormal TextItalic = iota
TextItalicOblique // merely slanted text TextItalicOblique // merely slanted text
@ -644,6 +650,7 @@ const (
// //
// TODO disclaimer // TODO disclaimer
type TextStretch int type TextStretch int
const ( const (
TextStretchUltraCondensed TextStretch = iota TextStretchUltraCondensed TextStretch = iota
TextStretchExtraCondensed TextStretchExtraCondensed

View File

@ -3,8 +3,8 @@
package ui package ui
import ( import (
"runtime"
"errors" "errors"
"runtime"
"sync" "sync"
"unsafe" "unsafe"
) )

View File

@ -22,6 +22,7 @@ func moveLabel(*Button) {
} }
var moveBack bool var moveBack bool
const ( const (
moveOutText = "Move Page 1 Out" moveOutText = "Move Page 1 Out"
moveBackText = "Move Page 1 Back" moveBackText = "Move Page 1 Back"
@ -154,8 +155,8 @@ func makePage2() *Box {
page2.Append(hbox, false) page2.Append(hbox, false)
disabledTab := newTab() disabledTab := newTab()
disabledTab.Append("Disabled", NewButton("Button")); disabledTab.Append("Disabled", NewButton("Button"))
disabledTab.Append("Tab", NewLabel("Label")); disabledTab.Append("Tab", NewLabel("Label"))
disabledTab.Disable() disabledTab.Disable()
page2.Append(disabledTab, true) page2.Append(disabledTab, true)