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 Transform ¶
type Transform interface { ScaleTransfrom | TranslateTransfrom | FlipTransfrom | RotateTransfrom }
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"` }
Click to show internal directories.
Click to hide internal directories.