Browse Source

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

menus
Noah Petherbridge 2 years ago
parent
commit
e391e703bf
  1. 2
      button.go
  2. 2
      check_button.go
  3. 2
      checkbox.go
  4. 2
      eg/main.go
  5. 2
      frame.go
  6. 2
      frame_pack.go
  7. 2
      functions.go
  8. 2
      image.go
  9. 2
      label.go
  10. 4
      main_window.go
  11. 2
      menu.go
  12. 4
      supervisor.go
  13. 2
      theme/theme.go
  14. 2
      widget.go
  15. 2
      window.go

2
button.go

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

2
check_button.go

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

2
checkbox.go

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

2
eg/main.go

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

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

2
frame_pack.go

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

2
functions.go

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

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

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

4
main_window.go

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

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

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

2
theme/theme.go

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

2
widget.go

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

2
window.go

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

Loading…
Cancel
Save