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.
type Modifiers uint
const (
Ctrl Modifiers = 1 << iota
Alt
@ -278,6 +279,7 @@ const (
//
// Note: these must be numerically identical to their libui equivalents.
type ExtKey int
const (
Escape ExtKey = iota + 1
Insert // equivalent to "Help" on Apple keyboards

View File

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

View File

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

View File

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

View File

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