-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathtypegen.go
More file actions
15 lines (9 loc) · 1.93 KB
/
typegen.go
File metadata and controls
15 lines (9 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Code generated by "core generate -add-types"; DO NOT EDIT.
package relpos
import (
"cogentcore.org/core/types"
)
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/relpos.Pos", IDName: "pos", Doc: "Pos specifies the relative spatial relationship to another\nlayer, which determines positioning. Every layer except one\n\"anchor\" layer should be positioned relative to another,\ne.g., RightOf, Above, etc. This provides robust positioning\nin the face of layer size changes etc.\nLayers are arranged in X-Y planes, stacked vertically along the Z axis.", Directives: []types.Directive{{Tool: "git", Directive: "add"}}, Fields: []types.Field{{Name: "Rel", Doc: "spatial relationship between this layer and the other layer"}, {Name: "XAlign", Doc: "] horizontal (x-axis) alignment relative to other"}, {Name: "YAlign", Doc: "] vertical (y-axis) alignment relative to other"}, {Name: "Other", Doc: "name of the other layer we are in relationship to"}, {Name: "Scale", Doc: "scaling factor applied to layer size for displaying"}, {Name: "Space", Doc: "number of unit-spaces between us"}, {Name: "XOffset", Doc: "for vertical (y-axis) alignment, amount we are offset relative to perfect alignment"}, {Name: "YOffset", Doc: "for horizontial (x-axis) alignment, amount we are offset relative to perfect alignment"}, {Name: "Pos", Doc: "Pos is the computed position of lower-left-hand corner of layer\nin 3D space, computed from the relation to other layer."}}})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/relpos.Relations", IDName: "relations", Doc: "Relations are different spatial relationships (of layers)"})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/relpos.XAligns", IDName: "x-aligns", Doc: "XAligns are different horizontal alignments"})
var _ = types.AddType(&types.Type{Name: "github.com/emer/emergent/v2/relpos.YAligns", IDName: "y-aligns", Doc: "YAligns are different vertical alignments"})