Cut lib/render into its own package, change all imports

This commit is contained in:
Noah 2019-12-22 18:21:58 -08:00
parent 5450f40b3c
commit e391e703bf
15 changed files with 17 additions and 17 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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().

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
package theme
import "git.kirsle.net/apps/doodle/lib/render"
import "git.kirsle.net/go/render"
// Color schemes.
var (

View File

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

View File

@ -3,7 +3,7 @@ package ui
import (
"fmt"
"git.kirsle.net/apps/doodle/lib/render"
"git.kirsle.net/go/render"
)
// Window is a frame with a title bar.