Cut lib/render into its own package, change all imports
This commit is contained in:
parent
5450f40b3c
commit
e391e703bf
|
@ -4,7 +4,7 @@ import (
|
|||
"errors"
|
||||
"fmt"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
"git.kirsle.net/apps/doodle/lib/ui/theme"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
"git.kirsle.net/apps/doodle/lib/ui/theme"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package ui
|
||||
|
||||
import "git.kirsle.net/apps/doodle/lib/render"
|
||||
import "git.kirsle.net/go/render"
|
||||
|
||||
// Checkbox combines a CheckButton with a widget like a Label.
|
||||
type Checkbox struct {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
"git.kirsle.net/apps/doodle/lib/ui"
|
||||
)
|
||||
|
||||
|
|
2
frame.go
2
frame.go
|
@ -3,7 +3,7 @@ package ui
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
)
|
||||
|
||||
// Frame is a widget that contains other widgets.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package ui
|
||||
|
||||
import (
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
)
|
||||
|
||||
// Pack provides configuration fields for Frame.Pack().
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package ui
|
||||
|
||||
import "git.kirsle.net/apps/doodle/lib/render"
|
||||
import "git.kirsle.net/go/render"
|
||||
|
||||
// AbsolutePosition computes a widget's absolute X,Y position on the
|
||||
// window on screen by crawling its parent widget tree.
|
||||
|
|
2
image.go
2
image.go
|
@ -5,7 +5,7 @@ import (
|
|||
"path/filepath"
|
||||
"strings"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
)
|
||||
|
||||
// ImageType for supported image formats.
|
||||
|
|
2
label.go
2
label.go
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
)
|
||||
|
||||
// DefaultFont is the default font settings used for a Label.
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/apps/doodle/lib/render/sdl"
|
||||
"git.kirsle.net/go/render"
|
||||
"git.kirsle.net/go/render/sdl"
|
||||
)
|
||||
|
||||
// Target frames per second for the MainWindow to render at.
|
||||
|
|
2
menu.go
2
menu.go
|
@ -3,7 +3,7 @@ package ui
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
)
|
||||
|
||||
// Menu is a rectangle that holds menu items.
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"errors"
|
||||
"sync"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/apps/doodle/lib/render/event"
|
||||
"git.kirsle.net/go/render"
|
||||
"git.kirsle.net/go/render/event"
|
||||
)
|
||||
|
||||
// Event is a named event that the supervisor will send.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package theme
|
||||
|
||||
import "git.kirsle.net/apps/doodle/lib/render"
|
||||
import "git.kirsle.net/go/render"
|
||||
|
||||
// Color schemes.
|
||||
var (
|
||||
|
|
|
@ -3,7 +3,7 @@ package ui
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"git.kirsle.net/apps/doodle/lib/render"
|
||||
"git.kirsle.net/go/render"
|
||||
"git.kirsle.net/apps/doodle/lib/ui/theme"
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user