Changed import paths
This commit is contained in:
parent
794ab1b5e8
commit
33c787d70b
@ -2,9 +2,9 @@
|
|||||||
package ability
|
package ability
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
// Layoutable represents an element that needs to perform layout calculations
|
// Layoutable represents an element that needs to perform layout calculations
|
||||||
// before it can draw itself.
|
// before it can draw itself.
|
||||||
|
@ -4,8 +4,8 @@ package artutil
|
|||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "image/color"
|
import "image/color"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/shatter"
|
import "tomo/shatter"
|
||||||
|
|
||||||
// Fill fills the destination canvas with the given pattern.
|
// Fill fills the destination canvas with the given pattern.
|
||||||
func Fill (destination artist.Canvas, source artist.Pattern) (updated image.Rectangle) {
|
func Fill (destination artist.Canvas, source artist.Pattern) (updated image.Rectangle) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package patterns
|
package patterns
|
||||||
|
|
||||||
import "image"
|
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
|
// Border is a pattern that behaves similarly to border-image in CSS. It divides
|
||||||
// a source canvas into nine sections...
|
// a source canvas into nine sections...
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package patterns
|
package patterns
|
||||||
|
|
||||||
import "image"
|
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
|
// Texture is a pattern that tiles the content of a canvas both horizontally and
|
||||||
// vertically.
|
// vertically.
|
||||||
|
@ -2,9 +2,9 @@ package patterns
|
|||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "image/color"
|
import "image/color"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
|
import "tomo/artist/shapes"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
|
import "tomo/artist/artutil"
|
||||||
|
|
||||||
// Uniform is a pattern that draws a solid color.
|
// Uniform is a pattern that draws a solid color.
|
||||||
type Uniform color.RGBA
|
type Uniform color.RGBA
|
||||||
|
@ -3,7 +3,7 @@ package shapes
|
|||||||
import "math"
|
import "math"
|
||||||
import "image"
|
import "image"
|
||||||
import "image/color"
|
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
|
// 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
|
// destination and source, using the bounds of destination as the bounds of the
|
||||||
|
@ -2,7 +2,7 @@ package shapes
|
|||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "image/color"
|
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
|
// ColorLine draws a line from one point to another with the specified weight
|
||||||
// and color.
|
// and color.
|
||||||
|
@ -2,8 +2,8 @@ package shapes
|
|||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "image/color"
|
import "image/color"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/shatter"
|
import "tomo/shatter"
|
||||||
|
|
||||||
// TODO: return updatedRegion for all routines in this package
|
// TODO: return updatedRegion for all routines in this package
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package config
|
package config
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
|
|
||||||
// Default specifies default configuration values.
|
// Default specifies default configuration values.
|
||||||
type Default struct { }
|
type Default struct { }
|
||||||
|
@ -7,11 +7,11 @@ import _ "image/png"
|
|||||||
import "image/color"
|
import "image/color"
|
||||||
import "golang.org/x/image/font"
|
import "golang.org/x/image/font"
|
||||||
import "golang.org/x/image/font/basicfont"
|
import "golang.org/x/image/font/basicfont"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
|
import "tomo/artist/artutil"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/patterns"
|
import "tomo/artist/patterns"
|
||||||
|
|
||||||
//go:embed assets/default.png
|
//go:embed assets/default.png
|
||||||
var defaultAtlasBytes []byte
|
var defaultAtlasBytes []byte
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package tomo
|
package tomo
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
// Element represents a basic on-screen object. Extended element interfaces are
|
// Element represents a basic on-screen object. Extended element interfaces are
|
||||||
// defined in the ability module.
|
// defined in the ability module.
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/shatter"
|
import "tomo/shatter"
|
||||||
|
|
||||||
var boxCase = tomo.C("tomo", "box")
|
var boxCase = tomo.C("tomo", "box")
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
|
import "tomo/textdraw"
|
||||||
|
|
||||||
var buttonCase = tomo.C("tomo", "button")
|
var buttonCase = tomo.C("tomo", "button")
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
|
import "tomo/artist/artutil"
|
||||||
|
|
||||||
var cellCase = tomo.C("tomo", "cell")
|
var cellCase = tomo.C("tomo", "cell")
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
|
import "tomo/textdraw"
|
||||||
|
|
||||||
var checkboxCase = tomo.C("tomo", "checkbox")
|
var checkboxCase = tomo.C("tomo", "checkbox")
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
|
import "tomo/textdraw"
|
||||||
|
|
||||||
var comboBoxCase = tomo.C("tomo", "comboBox")
|
var comboBoxCase = tomo.C("tomo", "comboBox")
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
|
|
||||||
type scratchEntry struct {
|
type scratchEntry struct {
|
||||||
expand bool
|
expand bool
|
||||||
|
@ -2,11 +2,11 @@ package elements
|
|||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "path/filepath"
|
import "path/filepath"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/shatter"
|
import "tomo/shatter"
|
||||||
|
|
||||||
// TODO: base on flow implementation of list. also be able to switch to a table
|
// TODO: base on flow implementation of list. also be able to switch to a table
|
||||||
// variant for a more information dense view.
|
// variant for a more information dense view.
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/shatter"
|
import "tomo/shatter"
|
||||||
|
|
||||||
var documentCase = tomo.C("tomo", "document")
|
var documentCase = tomo.C("tomo", "document")
|
||||||
|
|
||||||
|
@ -3,9 +3,9 @@ package elements
|
|||||||
import "time"
|
import "time"
|
||||||
import "io/fs"
|
import "io/fs"
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
var fileCase = tomo.C("files", "file")
|
var fileCase = tomo.C("files", "file")
|
||||||
|
|
||||||
|
@ -4,9 +4,9 @@ import "time"
|
|||||||
import "math"
|
import "math"
|
||||||
import "image"
|
import "image"
|
||||||
import "image/color"
|
import "image/color"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
|
import "tomo/artist/shapes"
|
||||||
|
|
||||||
var clockCase = tomo.C("tomo", "clock")
|
var clockCase = tomo.C("tomo", "clock")
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package fun
|
package fun
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
|
import "tomo/artist/artutil"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements/fun/music"
|
import "tomo/elements/fun/music"
|
||||||
|
|
||||||
var pianoCase = tomo.C("tomo", "piano")
|
var pianoCase = tomo.C("tomo", "piano")
|
||||||
var flatCase = tomo.C("tomo", "piano", "flatKey")
|
var flatCase = tomo.C("tomo", "piano", "flatKey")
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
var iconCase = tomo.C("tomo", "icon")
|
var iconCase = tomo.C("tomo", "icon")
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/patterns"
|
import "tomo/artist/patterns"
|
||||||
|
|
||||||
// TODO: this element is lame need to make it better
|
// TODO: this element is lame need to make it better
|
||||||
|
|
||||||
|
@ -2,11 +2,11 @@ package elements
|
|||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "golang.org/x/image/math/fixed"
|
import "golang.org/x/image/math/fixed"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
|
import "tomo/textdraw"
|
||||||
|
|
||||||
var labelCase = tomo.C("tomo", "label")
|
var labelCase = tomo.C("tomo", "label")
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
|
|
||||||
// Numeric is a type constraint representing a number.
|
// Numeric is a type constraint representing a number.
|
||||||
type Numeric interface {
|
type Numeric interface {
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
|
import "tomo/artist/artutil"
|
||||||
|
|
||||||
type list struct {
|
type list struct {
|
||||||
container
|
container
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
var progressBarCase = tomo.C("tomo", "progressBar")
|
var progressBarCase = tomo.C("tomo", "progressBar")
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
|
|
||||||
var scrollCase = tomo.C("tomo", "scroll")
|
var scrollCase = tomo.C("tomo", "scroll")
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
// ScrollBar is an element similar to Slider, but it has special behavior that
|
// 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
|
// makes it well suited for controlling the viewport position on one axis of a
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
// Slider is a slider control with a floating point value between zero and one.
|
// Slider is a slider control with a floating point value between zero and one.
|
||||||
type Slider struct {
|
type Slider struct {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
var spacerCase = tomo.C("tomo", "spacer")
|
var spacerCase = tomo.C("tomo", "spacer")
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
|
import "tomo/textdraw"
|
||||||
|
|
||||||
var switchCase = tomo.C("tomo", "switch")
|
var switchCase = tomo.C("tomo", "switch")
|
||||||
|
|
||||||
|
@ -4,13 +4,13 @@ import "fmt"
|
|||||||
import "time"
|
import "time"
|
||||||
import "image"
|
import "image"
|
||||||
import "image/color"
|
import "image/color"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/shatter"
|
import "tomo/shatter"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
|
import "tomo/textdraw"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
|
import "tomo/artist/shapes"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
|
import "tomo/artist/artutil"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/patterns"
|
import "tomo/artist/patterns"
|
||||||
|
|
||||||
// Artist is an element that displays shapes and patterns drawn by the artist
|
// Artist is an element that displays shapes and patterns drawn by the artist
|
||||||
// package in order to test it.
|
// package in order to test it.
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package testing
|
package testing
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
|
import "tomo/artist/shapes"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
|
import "tomo/artist/artutil"
|
||||||
|
|
||||||
var mouseCase = tomo.C("tomo", "mouse")
|
var mouseCase = tomo.C("tomo", "mouse")
|
||||||
|
|
||||||
|
@ -3,14 +3,14 @@ package elements
|
|||||||
import "io"
|
import "io"
|
||||||
import "time"
|
import "time"
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
|
import "tomo/textdraw"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textmanip"
|
import "tomo/textmanip"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/fixedutil"
|
import "tomo/fixedutil"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/shapes"
|
import "tomo/artist/shapes"
|
||||||
|
|
||||||
var textBoxCase = tomo.C("tomo", "textBox")
|
var textBoxCase = tomo.C("tomo", "textBox")
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package elements
|
package elements
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/textdraw"
|
import "tomo/textdraw"
|
||||||
|
|
||||||
var toggleButtonCase = tomo.C("tomo", "toggleButton")
|
var toggleButtonCase = tomo.C("tomo", "toggleButton")
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package tomo
|
package tomo
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
// Entity is a handle given to elements by the backend. Extended entity
|
// Entity is a handle given to elements by the backend. Extended entity
|
||||||
// interfaces are defined in the ability module.
|
// interfaces are defined in the ability module.
|
||||||
|
@ -5,11 +5,11 @@ import "image"
|
|||||||
import _ "image/png"
|
import _ "image/png"
|
||||||
import _ "image/gif"
|
import _ "image/gif"
|
||||||
import _ "image/jpeg"
|
import _ "image/jpeg"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/popups"
|
import "tomo/popups"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
var validImageTypes = []data.Mime {
|
var validImageTypes = []data.Mime {
|
||||||
data.M("image", "png"),
|
data.M("image", "png"),
|
||||||
|
@ -3,9 +3,9 @@ package main
|
|||||||
import "os"
|
import "os"
|
||||||
import "image"
|
import "image"
|
||||||
import _ "image/png"
|
import _ "image/png"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements/testing"
|
import "tomo/elements/testing"
|
||||||
import "git.tebibyte.media/sashakoshka/ezprof/ez"
|
import "git.tebibyte.media/sashakoshka/ezprof/ez"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
|
@ -2,9 +2,9 @@ package main
|
|||||||
|
|
||||||
import "os"
|
import "os"
|
||||||
import "path/filepath"
|
import "path/filepath"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements/fun"
|
import "tomo/elements/fun"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -5,10 +5,10 @@ import "image"
|
|||||||
import "bytes"
|
import "bytes"
|
||||||
import _ "image/png"
|
import _ "image/png"
|
||||||
import "github.com/jezek/xgbutil/gopher"
|
import "github.com/jezek/xgbutil/gopher"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/popups"
|
import "tomo/popups"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/popups"
|
import "tomo/popups"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/popups"
|
import "tomo/popups"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements/testing"
|
import "tomo/elements/testing"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -2,9 +2,9 @@ package main
|
|||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/popups"
|
import "tomo/popups"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/popups"
|
import "tomo/popups"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/nasin"
|
import "tomo/nasin"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
nasin.Run(Application { })
|
nasin.Run(Application { })
|
||||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
|||||||
module git.tebibyte.media/sashakoshka/tomo
|
module tomo
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ package nasin
|
|||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "errors"
|
import "errors"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
|
|
||||||
// Application represents a Tomo/Nasin application.
|
// Application represents a Tomo/Nasin application.
|
||||||
type Application interface {
|
type Application interface {
|
||||||
|
@ -6,7 +6,7 @@ import "os"
|
|||||||
// the generic extract function we have here for extra type safety goodness.
|
// the generic extract function we have here for extra type safety goodness.
|
||||||
import "plugin"
|
import "plugin"
|
||||||
import "path/filepath"
|
import "path/filepath"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
|
|
||||||
type backendFactory func () (tomo.Backend, error)
|
type backendFactory func () (tomo.Backend, error)
|
||||||
var factories []backendFactory
|
var factories []backendFactory
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
// Plugin wintergreen provides a calm, bluish green theme.
|
// Plugin wintergreen provides a calm, bluish green theme.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/plugins/wintergreen/wintergreen"
|
import "tomo/plugins/wintergreen/wintergreen"
|
||||||
|
|
||||||
func Expects () tomo.Version {
|
func Expects () tomo.Version {
|
||||||
return tomo.Version { 0, 0, 0 }
|
return tomo.Version { 0, 0, 0 }
|
||||||
|
@ -7,11 +7,11 @@ import _ "image/png"
|
|||||||
import "image/color"
|
import "image/color"
|
||||||
import "golang.org/x/image/font"
|
import "golang.org/x/image/font"
|
||||||
import "golang.org/x/image/font/basicfont"
|
import "golang.org/x/image/font/basicfont"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/artutil"
|
import "tomo/artist/artutil"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist/patterns"
|
import "tomo/artist/patterns"
|
||||||
|
|
||||||
//go:embed assets/wintergreen.png
|
//go:embed assets/wintergreen.png
|
||||||
var defaultAtlasBytes []byte
|
var defaultAtlasBytes []byte
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
// Plugin x provides the X11 backend as a plugin.
|
// Plugin x provides the X11 backend as a plugin.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/plugins/x/x"
|
import "tomo/plugins/x/x"
|
||||||
|
|
||||||
func Expects () tomo.Version {
|
func Expects () tomo.Version {
|
||||||
return tomo.Version { 0, 0, 0 }
|
return tomo.Version { 0, 0, 0 }
|
||||||
|
@ -3,7 +3,7 @@ package x
|
|||||||
import "unicode"
|
import "unicode"
|
||||||
import "github.com/jezek/xgb/xproto"
|
import "github.com/jezek/xgb/xproto"
|
||||||
import "github.com/jezek/xgbutil/keybind"
|
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
|
// when making changes to this file, look at keysymdef.h and
|
||||||
// https://tronche.com/gui/x/xlib/input/keyboard-encoding.html
|
// https://tronche.com/gui/x/xlib/input/keyboard-encoding.html
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package x
|
package x
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
|
|
||||||
type entity struct {
|
type entity struct {
|
||||||
backend *backend
|
backend *backend
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
package x
|
package x
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/input"
|
import "tomo/input"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
|
|
||||||
import "github.com/jezek/xgbutil"
|
import "github.com/jezek/xgbutil"
|
||||||
import "github.com/jezek/xgb/xproto"
|
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/xgb/xproto"
|
||||||
import "github.com/jezek/xgbutil/xprop"
|
import "github.com/jezek/xgbutil/xprop"
|
||||||
import "github.com/jezek/xgbutil/xevent"
|
import "github.com/jezek/xgbutil/xevent"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
|
|
||||||
const clipboardName = "CLIPBOARD"
|
const clipboardName = "CLIPBOARD"
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ import "github.com/jezek/xgbutil"
|
|||||||
import "github.com/jezek/xgb/xproto"
|
import "github.com/jezek/xgb/xproto"
|
||||||
import "github.com/jezek/xgbutil/xprop"
|
import "github.com/jezek/xgbutil/xprop"
|
||||||
import "github.com/jezek/xgbutil/xevent"
|
import "github.com/jezek/xgbutil/xevent"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
|
|
||||||
type selectionClaim struct {
|
type selectionClaim struct {
|
||||||
window *window
|
window *window
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package x
|
package x
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/ability"
|
import "tomo/ability"
|
||||||
|
|
||||||
type entitySet map[*entity] struct { }
|
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/keybind"
|
||||||
import "github.com/jezek/xgbutil/mousebind"
|
import "github.com/jezek/xgbutil/mousebind"
|
||||||
import "github.com/jezek/xgbutil/xgraphics"
|
import "github.com/jezek/xgbutil/xgraphics"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
type mainWindow struct { *window }
|
type mainWindow struct { *window }
|
||||||
type menuWindow struct { *window }
|
type menuWindow struct { *window }
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package x
|
package x
|
||||||
|
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import defaultTheme "git.tebibyte.media/sashakoshka/tomo/default/theme"
|
import defaultTheme "tomo/default/theme"
|
||||||
import defaultConfig "git.tebibyte.media/sashakoshka/tomo/default/config"
|
import defaultConfig "tomo/default/config"
|
||||||
|
|
||||||
import "github.com/jezek/xgbutil"
|
import "github.com/jezek/xgbutil"
|
||||||
import "github.com/jezek/xgb/xproto"
|
import "github.com/jezek/xgb/xproto"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
package popups
|
package popups
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo"
|
import "tomo"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/elements"
|
import "tomo/elements"
|
||||||
|
|
||||||
// DialogKind defines the semantic role of a dialog window.
|
// DialogKind defines the semantic role of a dialog window.
|
||||||
type DialogKind int
|
type DialogKind int
|
||||||
|
@ -5,7 +5,7 @@ import "unicode"
|
|||||||
import "image/draw"
|
import "image/draw"
|
||||||
import "image/color"
|
import "image/color"
|
||||||
import "golang.org/x/image/math/fixed"
|
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
|
// 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.
|
// 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"
|
||||||
import "image/color"
|
import "image/color"
|
||||||
import "golang.org/x/image/font"
|
import "golang.org/x/image/font"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/artist"
|
import "tomo/artist"
|
||||||
|
|
||||||
// Color lits a number of cannonical colors, each with its own ID.
|
// Color lits a number of cannonical colors, each with its own ID.
|
||||||
type Color int; const (
|
type Color int; const (
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package tomo
|
package tomo
|
||||||
|
|
||||||
import "image"
|
import "image"
|
||||||
import "git.tebibyte.media/sashakoshka/tomo/data"
|
import "tomo/data"
|
||||||
|
|
||||||
// TODO: add support for the icon window because imagine if we allowed
|
// TODO: add support for the icon window because imagine if we allowed
|
||||||
// applications to display live updating information readouts on their icons.
|
// applications to display live updating information readouts on their icons.
|
||||||
|
Reference in New Issue
Block a user