type charm.land/lipgloss/v2.Position
30 uses
charm.land/lipgloss/v2 (current package)
align.go#L12: func alignTextHorizontal(str string, pos Position, width int, style *ansi.Style) string {
align.go#L61: func alignTextVertical(str string, pos Position, height int, _ *ansi.Style) string {
get.go#L89: func (s Style) GetAlign() Position {
get.go#L91: if v == Position(0) {
get.go#L99: func (s Style) GetAlignHorizontal() Position {
get.go#L101: if v == Position(0) {
get.go#L109: func (s Style) GetAlignVertical() Position {
get.go#L111: if v == Position(0) {
get.go#L601: func (s Style) getAsPosition(k propKey) Position {
get.go#L603: return Position(0)
get.go#L611: return Position(0)
join.go#L28: func JoinHorizontal(pos Position, strs ...string) string {
join.go#L116: func JoinVertical(pos Position, strs ...string) string {
position.go#L19: type Position float64
position.go#L21: func (p Position) value() float64 {
position.go#L27: Top Position = 0.0
position.go#L28: Bottom Position = 1.0
position.go#L29: Center Position = 0.5
position.go#L30: Left Position = 0.0
position.go#L31: Right Position = 1.0
position.go#L36: func Place(width, height int, hPos, vPos Position, str string, opts ...WhitespaceOption) string {
position.go#L43: func PlaceHorizontal(width int, pos Position, str string, opts ...WhitespaceOption) string {
position.go#L90: func PlaceVertical(height int, pos Position, str string, opts ...WhitespaceOption) string {
set.go#L28: s.alignHorizontal = value.(Position)
set.go#L30: s.alignVertical = value.(Position)
set.go#L305: func (s Style) Align(p ...Position) Style {
set.go#L316: func (s Style) AlignHorizontal(p Position) Style {
set.go#L322: func (s Style) AlignVertical(p Position) Style {
style.go#L162: alignHorizontal Position
style.go#L163: alignVertical Position