Changed import paths
This commit is contained in:
parent
794ab1b5e8
commit
33c787d70b
@ -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.
|
||||
|
@ -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) {
|
||||
|
@ -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...
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package config
|
||||
|
||||
import "time"
|
||||
import "git.tebibyte.media/sashakoshka/tomo"
|
||||
import "tomo"
|
||||
|
||||
// Default specifies default configuration values.
|
||||
type Default struct { }
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
package elements
|
||||
|
||||
import "git.tebibyte.media/sashakoshka/tomo"
|
||||
import "tomo"
|
||||
|
||||
type scratchEntry struct {
|
||||
expand bool
|
||||
|
@ -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.
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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"),
|
||||
|
@ -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 { })
|
||||
|
@ -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 () {
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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 { })
|
||||
|
@ -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,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 {
|
||||
|
@ -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
|
||||
|
@ -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 }
|
||||
|
@ -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
|
||||
|
@ -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 }
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
||||
|
@ -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
|
||||
|
@ -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 { }
|
||||
|
||||
|
@ -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 }
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
4
theme.go
4
theme.go
@ -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 (
|
||||
|
Reference in New Issue
Block a user