Changed import paths

This commit is contained in:
Sasha Koshka 2023-05-03 19:40:30 -04:00
parent 794ab1b5e8
commit 33c787d70b
70 changed files with 207 additions and 207 deletions

View File

@ -2,9 +2,9 @@
package ability
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo"
import "tomo/input"
import "tomo/artist"
// Layoutable represents an element that needs to perform layout calculations
// before it can draw itself.

View File

@ -4,8 +4,8 @@ package artutil
import "image"
import "image/color"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/shatter"
import "tomo/artist"
import "tomo/shatter"
// Fill fills the destination canvas with the given pattern.
func Fill (destination artist.Canvas, source artist.Pattern) (updated image.Rectangle) {

View File

@ -1,7 +1,7 @@
package patterns
import "image"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo/artist"
// Border is a pattern that behaves similarly to border-image in CSS. It divides
// a source canvas into nine sections...

View File

@ -1,7 +1,7 @@
package patterns
import "image"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo/artist"
// Texture is a pattern that tiles the content of a canvas both horizontally and
// vertically.

View File

@ -2,9 +2,9 @@ package patterns
import "image"
import "image/color"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
import "tomo/artist"
import "tomo/artist/shapes"
import "tomo/artist/artutil"
// Uniform is a pattern that draws a solid color.
type Uniform color.RGBA

View File

@ -3,7 +3,7 @@ package shapes
import "math"
import "image"
import "image/color"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo/artist"
// TODO: redo fill ellipse, stroke ellipse, etc. so that it only takes in
// destination and source, using the bounds of destination as the bounds of the

View File

@ -2,7 +2,7 @@ package shapes
import "image"
import "image/color"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo/artist"
// ColorLine draws a line from one point to another with the specified weight
// and color.

View File

@ -2,8 +2,8 @@ package shapes
import "image"
import "image/color"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/shatter"
import "tomo/artist"
import "tomo/shatter"
// TODO: return updatedRegion for all routines in this package

View File

@ -1,7 +1,7 @@
package config
import "time"
import "git.tebibyte.media/sashakoshka/tomo"
import "tomo"
// Default specifies default configuration values.
type Default struct { }

View File

@ -7,11 +7,11 @@ import _ "image/png"
import "image/color"
import "golang.org/x/image/font"
import "golang.org/x/image/font/basicfont"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
import "git.tebibyte.media/sashakoshka/tomo/artist/patterns"
import "tomo"
import "tomo/data"
import "tomo/artist"
import "tomo/artist/artutil"
import "tomo/artist/patterns"
//go:embed assets/default.png
var defaultAtlasBytes []byte

View File

@ -1,6 +1,6 @@
package tomo
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo/artist"
// Element represents a basic on-screen object. Extended element interfaces are
// defined in the ability module.

View File

@ -1,9 +1,9 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/shatter"
import "tomo"
import "tomo/artist"
import "tomo/shatter"
var boxCase = tomo.C("tomo", "box")

View File

@ -1,10 +1,10 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/textdraw"
var buttonCase = tomo.C("tomo", "button")

View File

@ -1,8 +1,8 @@
package elements
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
import "tomo"
import "tomo/artist"
import "tomo/artist/artutil"
var cellCase = tomo.C("tomo", "cell")

View File

@ -1,10 +1,10 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/textdraw"
var checkboxCase = tomo.C("tomo", "checkbox")

View File

@ -1,11 +1,11 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/ability"
import "tomo/textdraw"
var comboBoxCase = tomo.C("tomo", "comboBox")

View File

@ -1,6 +1,6 @@
package elements
import "git.tebibyte.media/sashakoshka/tomo"
import "tomo"
type scratchEntry struct {
expand bool

View File

@ -2,11 +2,11 @@ package elements
import "image"
import "path/filepath"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "git.tebibyte.media/sashakoshka/tomo/shatter"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/ability"
import "tomo/shatter"
// TODO: base on flow implementation of list. also be able to switch to a table
// variant for a more information dense view.

View File

@ -1,10 +1,10 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "git.tebibyte.media/sashakoshka/tomo/shatter"
import "tomo"
import "tomo/artist"
import "tomo/ability"
import "tomo/shatter"
var documentCase = tomo.C("tomo", "document")

View File

@ -3,9 +3,9 @@ package elements
import "time"
import "io/fs"
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo"
import "tomo/input"
import "tomo/artist"
var fileCase = tomo.C("files", "file")

View File

@ -4,9 +4,9 @@ import "time"
import "math"
import "image"
import "image/color"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
import "tomo"
import "tomo/artist"
import "tomo/artist/shapes"
var clockCase = tomo.C("tomo", "clock")

View File

@ -1,11 +1,11 @@
package fun
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
import "git.tebibyte.media/sashakoshka/tomo/elements/fun/music"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/artist/artutil"
import "tomo/elements/fun/music"
var pianoCase = tomo.C("tomo", "piano")
var flatCase = tomo.C("tomo", "piano", "flatKey")

View File

@ -1,8 +1,8 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo"
import "tomo/artist"
var iconCase = tomo.C("tomo", "icon")

View File

@ -1,9 +1,9 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/artist/patterns"
import "tomo"
import "tomo/artist"
import "tomo/artist/patterns"
// TODO: this element is lame need to make it better

View File

@ -2,11 +2,11 @@ package elements
import "image"
import "golang.org/x/image/math/fixed"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "tomo"
import "tomo/data"
import "tomo/input"
import "tomo/artist"
import "tomo/textdraw"
var labelCase = tomo.C("tomo", "label")

View File

@ -1,6 +1,6 @@
package elements
import "git.tebibyte.media/sashakoshka/tomo"
import "tomo"
// Numeric is a type constraint representing a number.
type Numeric interface {

View File

@ -1,11 +1,11 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/ability"
import "tomo/artist/artutil"
type list struct {
container

View File

@ -1,8 +1,8 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo"
import "tomo/artist"
var progressBarCase = tomo.C("tomo", "progressBar")

View File

@ -1,10 +1,10 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/ability"
var scrollCase = tomo.C("tomo", "scroll")

View File

@ -1,9 +1,9 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo"
import "tomo/input"
import "tomo/artist"
// ScrollBar is an element similar to Slider, but it has special behavior that
// makes it well suited for controlling the viewport position on one axis of a

View File

@ -1,9 +1,9 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo"
import "tomo/input"
import "tomo/artist"
// Slider is a slider control with a floating point value between zero and one.
type Slider struct {

View File

@ -1,7 +1,7 @@
package elements
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo"
import "tomo/artist"
var spacerCase = tomo.C("tomo", "spacer")

View File

@ -1,10 +1,10 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/textdraw"
var switchCase = tomo.C("tomo", "switch")

View File

@ -4,13 +4,13 @@ import "fmt"
import "time"
import "image"
import "image/color"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/shatter"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
import "git.tebibyte.media/sashakoshka/tomo/artist/patterns"
import "tomo"
import "tomo/artist"
import "tomo/shatter"
import "tomo/textdraw"
import "tomo/artist/shapes"
import "tomo/artist/artutil"
import "tomo/artist/patterns"
// Artist is an element that displays shapes and patterns drawn by the artist
// package in order to test it.

View File

@ -1,11 +1,11 @@
package testing
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/artist/shapes"
import "tomo/artist/artutil"
var mouseCase = tomo.C("tomo", "mouse")

View File

@ -3,14 +3,14 @@ package elements
import "io"
import "time"
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "git.tebibyte.media/sashakoshka/tomo/textmanip"
import "git.tebibyte.media/sashakoshka/tomo/fixedutil"
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
import "tomo"
import "tomo/data"
import "tomo/input"
import "tomo/artist"
import "tomo/textdraw"
import "tomo/textmanip"
import "tomo/fixedutil"
import "tomo/artist/shapes"
var textBoxCase = tomo.C("tomo", "textBox")

View File

@ -1,10 +1,10 @@
package elements
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
import "tomo"
import "tomo/input"
import "tomo/artist"
import "tomo/textdraw"
var toggleButtonCase = tomo.C("tomo", "toggleButton")

View File

@ -1,7 +1,7 @@
package tomo
import "image"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo/artist"
// Entity is a handle given to elements by the backend. Extended entity
// interfaces are defined in the ability module.

View File

@ -5,11 +5,11 @@ import "image"
import _ "image/png"
import _ "image/gif"
import _ "image/jpeg"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/popups"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/data"
import "tomo/nasin"
import "tomo/popups"
import "tomo/elements"
var validImageTypes = []data.Mime {
data.M("image", "png"),

View File

@ -3,9 +3,9 @@ package main
import "os"
import "image"
import _ "image/png"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -1,8 +1,8 @@
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements/testing"
import "tomo"
import "tomo/nasin"
import "tomo/elements/testing"
import "git.tebibyte.media/sashakoshka/ezprof/ez"
func main () {

View File

@ -2,9 +2,9 @@ package main
import "os"
import "path/filepath"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -1,10 +1,10 @@
package main
import "time"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "git.tebibyte.media/sashakoshka/tomo/elements/fun"
import "tomo"
import "tomo/nasin"
import "tomo/elements"
import "tomo/elements/fun"
func main () {
nasin.Run(Application { })

View File

@ -1,8 +1,8 @@
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -5,10 +5,10 @@ import "image"
import "bytes"
import _ "image/png"
import "github.com/jezek/xgbutil/gopher"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/popups"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/popups"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -1,9 +1,9 @@
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/popups"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/popups"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -1,8 +1,8 @@
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -1,11 +1,11 @@
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/popups"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "git.tebibyte.media/sashakoshka/tomo/elements/testing"
import "tomo"
import "tomo/nasin"
import "tomo/popups"
import "tomo/ability"
import "tomo/elements"
import "tomo/elements/testing"
func main () {
nasin.Run(Application { })

View File

@ -2,9 +2,9 @@ package main
import "fmt"
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -1,9 +1,9 @@
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/popups"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/popups"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -1,10 +1,10 @@
package main
import "time"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/popups"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/popups"
import "tomo/elements"
func main () {
nasin.Run(Application { })

View File

@ -1,8 +1,8 @@
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/nasin"
import "tomo/elements"
func main () {
nasin.Run(Application { })

2
go.mod
View File

@ -1,4 +1,4 @@
module git.tebibyte.media/sashakoshka/tomo
module tomo
go 1.19

View File

@ -2,7 +2,7 @@ package nasin
import "image"
import "errors"
import "git.tebibyte.media/sashakoshka/tomo"
import "tomo"
// Application represents a Tomo/Nasin application.
type Application interface {

View File

@ -6,7 +6,7 @@ import "os"
// the generic extract function we have here for extra type safety goodness.
import "plugin"
import "path/filepath"
import "git.tebibyte.media/sashakoshka/tomo"
import "tomo"
type backendFactory func () (tomo.Backend, error)
var factories []backendFactory

View File

@ -1,8 +1,8 @@
// Plugin wintergreen provides a calm, bluish green theme.
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/plugins/wintergreen/wintergreen"
import "tomo"
import "tomo/plugins/wintergreen/wintergreen"
func Expects () tomo.Version {
return tomo.Version { 0, 0, 0 }

View File

@ -7,11 +7,11 @@ import _ "image/png"
import "image/color"
import "golang.org/x/image/font"
import "golang.org/x/image/font/basicfont"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
import "git.tebibyte.media/sashakoshka/tomo/artist/patterns"
import "tomo"
import "tomo/data"
import "tomo/artist"
import "tomo/artist/artutil"
import "tomo/artist/patterns"
//go:embed assets/wintergreen.png
var defaultAtlasBytes []byte

View File

@ -1,8 +1,8 @@
// Plugin x provides the X11 backend as a plugin.
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/plugins/x/x"
import "tomo"
import "tomo/plugins/x/x"
func Expects () tomo.Version {
return tomo.Version { 0, 0, 0 }

View File

@ -3,7 +3,7 @@ package x
import "unicode"
import "github.com/jezek/xgb/xproto"
import "github.com/jezek/xgbutil/keybind"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "tomo/input"
// when making changes to this file, look at keysymdef.h and
// https://tronche.com/gui/x/xlib/input/keyboard-encoding.html

View File

@ -1,9 +1,9 @@
package x
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "tomo"
import "tomo/artist"
import "tomo/ability"
type entity struct {
backend *backend

View File

@ -1,9 +1,9 @@
package x
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/input"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "tomo"
import "tomo/input"
import "tomo/ability"
import "github.com/jezek/xgbutil"
import "github.com/jezek/xgb/xproto"

View File

@ -7,7 +7,7 @@ import "github.com/jezek/xgbutil"
import "github.com/jezek/xgb/xproto"
import "github.com/jezek/xgbutil/xprop"
import "github.com/jezek/xgbutil/xevent"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "tomo/data"
const clipboardName = "CLIPBOARD"

View File

@ -6,7 +6,7 @@ import "github.com/jezek/xgbutil"
import "github.com/jezek/xgb/xproto"
import "github.com/jezek/xgbutil/xprop"
import "github.com/jezek/xgbutil/xevent"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "tomo/data"
type selectionClaim struct {
window *window

View File

@ -1,8 +1,8 @@
package x
import "image"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "git.tebibyte.media/sashakoshka/tomo/ability"
import "tomo/artist"
import "tomo/ability"
type entitySet map[*entity] struct { }

View File

@ -11,9 +11,9 @@ import "github.com/jezek/xgbutil/xwindow"
import "github.com/jezek/xgbutil/keybind"
import "github.com/jezek/xgbutil/mousebind"
import "github.com/jezek/xgbutil/xgraphics"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo"
import "tomo/data"
import "tomo/artist"
type mainWindow struct { *window }
type menuWindow struct { *window }

View File

@ -1,8 +1,8 @@
package x
import "git.tebibyte.media/sashakoshka/tomo"
import defaultTheme "git.tebibyte.media/sashakoshka/tomo/default/theme"
import defaultConfig "git.tebibyte.media/sashakoshka/tomo/default/config"
import "tomo"
import defaultTheme "tomo/default/theme"
import defaultConfig "tomo/default/config"
import "github.com/jezek/xgbutil"
import "github.com/jezek/xgb/xproto"

View File

@ -1,8 +1,8 @@
package popups
import "image"
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/elements"
import "tomo"
import "tomo/elements"
// DialogKind defines the semantic role of a dialog window.
type DialogKind int

View File

@ -5,7 +5,7 @@ import "unicode"
import "image/draw"
import "image/color"
import "golang.org/x/image/math/fixed"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo/artist"
// Drawer is an extended TypeSetter that is able to draw text. Much like
// TypeSetter, It has no constructor and its zero value can be used safely.

View File

@ -3,8 +3,8 @@ package tomo
import "image"
import "image/color"
import "golang.org/x/image/font"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "git.tebibyte.media/sashakoshka/tomo/artist"
import "tomo/data"
import "tomo/artist"
// Color lits a number of cannonical colors, each with its own ID.
type Color int; const (

View File

@ -1,7 +1,7 @@
package tomo
import "image"
import "git.tebibyte.media/sashakoshka/tomo/data"
import "tomo/data"
// TODO: add support for the icon window because imagine if we allowed
// applications to display live updating information readouts on their icons.