Skip to content

package transform_tools

import "kaiju/editor/viewport/tools/transform_tools"

Types

AxisState

uint8

type AxisState uint8

const ( AxisStateNone AxisState = iota AxisStateX AxisStateY AxisStateZ )

AxisState.Toggle

func (a *AxisState) Toggle(axis AxisState)

ToolState

uint8

type ToolState = uint8

const ( ToolStateNone ToolState = iota ToolStateMove ToolStateRotate ToolStateScale )

TransformTool

struct

type TransformTool struct {
    // Has unexported fields.
}

New

func New(host *engine.Host, editor interfaces.Editor,

canvas string, history *memento.History) TransformTool

TransformTool.Disable

func (t *TransformTool) Disable()

TransformTool.Enable

func (t *TransformTool) Enable(state ToolState)

TransformTool.Update

func (t *TransformTool) Update(host *engine.Host) (busy bool)