Browse Source

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

menus
Noah Petherbridge 7 months ago
parent
commit
e391e703bf
15 changed files with 17 additions and 17 deletions
  1. +1
    -1
      button.go
  2. +1
    -1
      check_button.go
  3. +1
    -1
      checkbox.go
  4. +1
    -1
      eg/main.go
  5. +1
    -1
      frame.go
  6. +1
    -1
      frame_pack.go
  7. +1
    -1
      functions.go
  8. +1
    -1
      image.go
  9. +1
    -1
      label.go
  10. +2
    -2
      main_window.go
  11. +1
    -1
      menu.go
  12. +2
    -2
      supervisor.go
  13. +1
    -1
      theme/theme.go
  14. +1
    -1
      widget.go
  15. +1
    -1
      window.go

+ 1
- 1
button.go 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"
)



+ 1
- 1
check_button.go 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"
)



+ 1
- 1
checkbox.go 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 {


+ 1
- 1
eg/main.go 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"
)



+ 1
- 1
frame.go 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.


+ 1
- 1
frame_pack.go 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().


+ 1
- 1
functions.go 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.


+ 1
- 1
image.go 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.


+ 1
- 1
label.go 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.


+ 2
- 2
main_window.go 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.


+ 1
- 1
menu.go 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.


+ 2
- 2
supervisor.go 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.


+ 1
- 1
theme/theme.go 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 (


+ 1
- 1
widget.go 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"
)



+ 1
- 1
window.go 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.


Loading…
Cancel
Save