Versions in this module Expand all Collapse all v0 v0.5.0 Jun 12, 2019 Changes in this version + var KiT_Relations = kit.Enums.AddEnum(RelationsN, false, nil) + var KiT_XAligns = kit.Enums.AddEnum(XAlignsN, false, nil) + var KiT_YAligns = kit.Enums.AddEnum(YAlignsN, false, nil) + type Rel struct + Offset float32 + Other string + Rel Relations + Scale float32 + Space float32 + XAlign XAligns + YAlign YAligns + func (rp *Rel) AlignXPos(xop, xosz, xsz float32) float32 + func (rp *Rel) AlignYPos(yop, yosz, ysz float32) float32 + func (rp *Rel) Defaults() + func (rp *Rel) Pos(op mat32.Vec3, osz mat32.Vec2, sz mat32.Vec2) mat32.Vec3 + type Relations int + const Above + const Behind + const Below + const FrontOf + const LeftOf + const NoRel + const RelationsN + const RightOf + func (ev *Relations) UnmarshalJSON(b []byte) error + func (ev Relations) MarshalJSON() ([]byte, error) + func (i *Relations) FromString(s string) error + func (i Relations) String() string + type XAligns int + const Left + const Middle + const Right + const XAlignsN + func (ev *XAligns) UnmarshalJSON(b []byte) error + func (ev XAligns) MarshalJSON() ([]byte, error) + func (i *XAligns) FromString(s string) error + func (i XAligns) String() string + type YAligns int + const Back + const Center + const Front + const YAlignsN + func (ev *YAligns) UnmarshalJSON(b []byte) error + func (ev YAligns) MarshalJSON() ([]byte, error) + func (i *YAligns) FromString(s string) error + func (i YAligns) String() string