类型 Alignment

API 文档由 Go 源码生成,内容为英文。

type Alignment uint8

Alignment selects horizontal label placement within its bounds.

常量

const (
	// AlignLeft puts the line at the left edge, whatever its direction.
	AlignLeft Alignment = iota
	// AlignCenter centers the line.
	AlignCenter
	// AlignRight puts the line at the right edge, whatever its direction.
	AlignRight
	// AlignStart puts the line where its text begins: the left edge for left-to-right
	// text, the right edge for right-to-left text (TextStyle.Direction, else the first
	// strong character). It is what Label does.
	AlignStart
	// AlignEnd is the other end: the right edge for left-to-right text, the left edge
	// for right-to-left text.
	AlignEnd
)