duit_transform

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlipTransfrom

type FlipTransfrom struct {
	*TransformBase
	FlipX bool `json:"flipX,omitempty"`
	FlipY bool `json:"flipY,omitempty"`
}

type RotateTransfrom

type RotateTransfrom struct {
	*TransformBase
	Angle float32 `json:"angle,omitempty"`
}

type ScaleTransfrom

type ScaleTransfrom struct {
	*TransformBase
	Scale  float32 `json:"scale,omitempty"`
	ScaleX float32 `json:"scaleX,omitempty"`
	ScaleY float32 `json:"scaleY,omitempty"`
}

type TransformBase

type TransformBase struct {
	Origin            *duit_flex.Offset           `json:"origin,omitempty"`
	Alignment         duit_alignment.Alignment    `json:"alignment,omitempty"`
	TransformHitTests bool                        `json:"transformHitTests,omitempty"`
	FilterQuality     duit_painting.FilterQuality `json:"filterQuality,omitempty"`
}

type TransfromType

type TransfromType string
const (
	Rotate    TransfromType = "rotate"
	Scale     TransfromType = "scale"
	Flip      TransfromType = "flip"
	Translate TransfromType = "translate"
)

type TranslateTransfrom

type TranslateTransfrom struct {
	*TransformBase
	Offset *duit_flex.Offset `json:"offset,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL