Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/charmbracelet/lipgloss
/ functions
Functions
746 in github.com/charmbracelet/lipgloss
⨍
Functions
746
◇
Types & classes
65
Method
Refresh
Refresh re-flattens the layer hierarchy. Call this after modifying the layer tree structure or positions to update the compositor's internal state.
layer.go:316
Method
Resize
Resize resizes the canvas to the given width and height.
canvas.go:32
Function
Roman
Roman is the enumeration for roman numerals listing. Example: I. Foo II. Bar III. Baz IV. Qux.
list/enumerator.go:88
Function
RoundedEnumerator
RoundedEnumerator enumerates a tree with rounded edges. ├── Foo ├── Bar ├── Baz ╰── Qux.
tree/enumerator.go:36
Method
Rows
Rows appends rows to the table data.
table/table.go:136
Method
Rows
Rows returns the number of rows in the table.
table/rows.go:61
Method
Rows
Rows returns the number of rows in the table.
table/rows.go:104
Method
SetCell
SetCell implements [uv.Screen].
canvas.go:62
Method
SetHidden
(val bool)
examples/tree/selection/main.go:83
Method
SetHidden
SetHidden hides a Tree node.
tree/tree.go:121
Method
SetValue
(val any)
examples/tree/selection/main.go:79
Method
SetValue
SetValue sets the value of a Tree node.
tree/tree.go:155
Function
Size
Size returns the width and height of the string in cells. ANSI sequences are ignored and characters wider than one cell (such as Chinese characters an
size.go:36
Function
Sprint
Sprint returns a string for stdout, automatically downsampling colors when necessary. Example: str := NewStyle(). Faint(true). Foreground(li
writer.go:110
Function
Sprintf
Sprintf returns a formatted string for stdout, automatically downsampling colors when necessary. Example: str := NewStyle(). Bold(true). Foregr
writer.go:152
Function
Sprintln
Sprintln returns a string for stdout, automatically downsampling colors when necessary, and ending with a trailing newline. Example: str := NewStyl
writer.go:131
Method
String
()
examples/tree/toggle/main.go:58
Method
String
String returns the string representation of the Tree node.
tree/tree.go:160
Method
Style
Style returns the current pen style.
wrap.go:58
Function
TestAddItemWithAndWithoutRoot
(t *testing.T)
tree/tree_test.go:411
Function
TestAlignTextVertical
(t *testing.T)
align_test.go:5
Function
TestAlpha
(t *testing.T)
color_test.go:204
Function
TestAt
(t *testing.T)
tree/tree_test.go:339
Function
TestBlend1D
(t *testing.T)
blending_test.go:8
Function
TestBlend2D
(t *testing.T)
blending_test.go:153
Function
TestBlend2DEdgeCases
(t *testing.T)
blending_test.go:296
Function
TestBoolPropsBeyond32Bits
Bool props are stored as bits of Style.attrs indexed by propKey. Keys beyond bit 31 (borderLeftKey, inlineKey) only survive if attrs is 64-bit: on 32-
attrs_test.go:9
Function
TestBorderColumnsWithExtraRows
(t *testing.T)
table/table_test.go:261
Function
TestBorderStyles
(t *testing.T)
table/table_test.go:1344
Function
TestBorderedCells
(t *testing.T)
table/table_test.go:1445
Function
TestBullet
(t *testing.T)
list/list_test.go:292
Function
TestCanvasRender
(t *testing.T)
canvas_test.go:8
Function
TestCanvasRenderWithTrailingSpaces
(t *testing.T)
canvas_test.go:38
Function
TestCarriageReturn
(t *testing.T)
table/table_test.go:1197
Function
TestCarriageReturnInRender
(t *testing.T)
style_test.go:570
Function
TestClearRows
(t *testing.T)
table/table_test.go:811
Function
TestComplementary
(t *testing.T)
color_test.go:263
Function
TestComplexSublist
(t *testing.T)
list/list_test.go:60
Function
TestContentWrapping
(t *testing.T)
table/table_test.go:829
Function
TestContentWrapping_ColumnWidth
(t *testing.T)
table/table_test.go:1084
Function
TestContentWrapping_WithHeight
(t *testing.T)
table/table_test.go:1046
Function
TestContentWrapping_WithMargins
(t *testing.T)
table/table_test.go:991
Function
TestContentWrapping_WithPadding
(t *testing.T)
table/table_test.go:929
Function
TestCustomPaddingChar
(t *testing.T)
style_test.go:458
Function
TestDarken
(t *testing.T)
color_test.go:294
Function
TestEmbedListWithinTree
(t *testing.T)
tree/tree_test.go:437
Function
TestEnumerators
(t *testing.T)
list/list_test.go:160
Function
TestEnumeratorsAlign
(t *testing.T)
list/list_test.go:332
Function
TestEnumeratorsTransform
(t *testing.T)
list/list_test.go:228
Function
TestExtraPaddingHeading
(t *testing.T)
table/table_test.go:1410
Function
TestExtraPaddingHeadingLong
(t *testing.T)
table/table_test.go:1427
Function
TestFilter
(t *testing.T)
table/table_test.go:572
Function
TestFilter
(t *testing.T)
tree/tree_test.go:355
Function
TestFilterInverse
(t *testing.T)
table/table_test.go:593
Function
TestFitContent
(t *testing.T)
table/table_test.go:1600
Function
TestGetFirstRuneAsString
(t *testing.T)
borders_test.go:112
Function
TestGetUnderlineColor
(t *testing.T)
style_test.go:67
Function
TestHeight
(t *testing.T)
style_test.go:608
Function
TestHexToColor
(t *testing.T)
color_test.go:53
Function
TestHyperlink
(t *testing.T)
style_test.go:633
Function
TestInlinePreservesWordBoundaries
(t *testing.T)
style_test.go:545
Function
TestInnerBordersOnly
(t *testing.T)
table/table_test.go:241
Function
TestIsDarkColor
(t *testing.T)
color_test.go:342
Function
TestJoinHorizontal
(t *testing.T)
join_test.go:26
Function
TestJoinVertical
(t *testing.T)
join_test.go:5
Function
TestLighten
(t *testing.T)
color_test.go:318
Function
TestList
XXX: can't write multi-line examples if the underlying string uses lipgloss.JoinVertical.
list/list_test.go:18
Function
TestListIntegers
(t *testing.T)
list/list_test.go:151
Function
TestListItems
(t *testing.T)
list/list_test.go:27
Function
TestMarginBackground
(t *testing.T)
style_test.go:54
Function
TestMoreCellsThanHeaders
(t *testing.T)
table/table_test.go:164
Function
TestMoreCellsThanHeadersExtra
(t *testing.T)
table/table_test.go:181
Function
TestMultiline
(t *testing.T)
list/list_test.go:142
Function
TestMultilinePrefix
(t *testing.T)
tree/tree_test.go:447
Function
TestMultilinePrefixInception
(t *testing.T)
tree/tree_test.go:496
Function
TestMultilinePrefixSubtree
(t *testing.T)
tree/tree_test.go:467
Function
TestNew
(t *testing.T)
table/table_test.go:280
Function
TestNilValues
(t *testing.T)
tree/tree_test.go:164
Function
TestNoFinalEmptyRowWhenOverflow
(t *testing.T)
table/table_test.go:1382
Function
TestNodeDataRemoveOutOfBounds
(t *testing.T)
tree/tree_test.go:379
Function
TestParseHex
(t *testing.T)
color_test.go:147
Function
TestRGBA
(t *testing.T)
color_test.go:87
Function
TestRGBColorNormalizedWhite
(t *testing.T)
color_test.go:135
Function
TestRGBColorRGBA
(t *testing.T)
color_test.go:121
Function
TestRootStyle
(t *testing.T)
tree/tree_test.go:326
Function
TestSpaceStylerPreservesEmbeddedANSI
TestSpaceStylerPreservesEmbeddedANSI verifies that when a space styler is active (underline or strikethrough), Render does not mangle ANSI escape sequ
embedded_ansi_test.go:14
Function
TestStrikethrough
(t *testing.T)
style_test.go:77
Function
TestStringTransform
(t *testing.T)
style_test.go:474
Function
TestStyleCopy
(t *testing.T)
style_test.go:219
Function
TestStyleFunc
(t *testing.T)
table/table_test.go:757
Function
TestStyleInherit
(t *testing.T)
style_test.go:169
Function
TestStyleRanges
(t *testing.T)
ranges_test.go:7
Function
TestStyleRender
(t *testing.T)
style_test.go:113
Function
TestStyleRunes
(t *testing.T)
runes_test.go:7
Function
TestStyleUnset
(t *testing.T)
style_test.go:259
Function
TestStyleValue
(t *testing.T)
style_test.go:389
Function
TestSubListItems2
(t *testing.T)
list/list_test.go:342
Function
TestSublist
(t *testing.T)
list/list_test.go:34
Function
TestSublistItems
(t *testing.T)
list/list_test.go:44
Function
TestTabConversion
(t *testing.T)
style_test.go:463
← previous
next →
501–600 of 746, ranked by callers