MCPcopy Create free account

hub / github.com/charmbracelet/lipgloss / functions

Functions746 in github.com/charmbracelet/lipgloss

MethodRefresh
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
MethodResize
Resize resizes the canvas to the given width and height.
canvas.go:32
FunctionRoman
Roman is the enumeration for roman numerals listing. Example: I. Foo II. Bar III. Baz IV. Qux.
list/enumerator.go:88
FunctionRoundedEnumerator
RoundedEnumerator enumerates a tree with rounded edges. ├── Foo ├── Bar ├── Baz ╰── Qux.
tree/enumerator.go:36
MethodRows
Rows appends rows to the table data.
table/table.go:136
MethodRows
Rows returns the number of rows in the table.
table/rows.go:61
MethodRows
Rows returns the number of rows in the table.
table/rows.go:104
MethodSetCell
SetCell implements [uv.Screen].
canvas.go:62
MethodSetHidden
(val bool)
examples/tree/selection/main.go:83
MethodSetHidden
SetHidden hides a Tree node.
tree/tree.go:121
MethodSetValue
(val any)
examples/tree/selection/main.go:79
MethodSetValue
SetValue sets the value of a Tree node.
tree/tree.go:155
FunctionSize
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
FunctionSprint
Sprint returns a string for stdout, automatically downsampling colors when necessary. Example: str := NewStyle(). Faint(true). Foreground(li
writer.go:110
FunctionSprintf
Sprintf returns a formatted string for stdout, automatically downsampling colors when necessary. Example: str := NewStyle(). Bold(true). Foregr
writer.go:152
FunctionSprintln
Sprintln returns a string for stdout, automatically downsampling colors when necessary, and ending with a trailing newline. Example: str := NewStyl
writer.go:131
MethodString
()
examples/tree/toggle/main.go:58
MethodString
String returns the string representation of the Tree node.
tree/tree.go:160
MethodStyle
Style returns the current pen style.
wrap.go:58
FunctionTestAddItemWithAndWithoutRoot
(t *testing.T)
tree/tree_test.go:411
FunctionTestAlignTextVertical
(t *testing.T)
align_test.go:5
FunctionTestAlpha
(t *testing.T)
color_test.go:204
FunctionTestAt
(t *testing.T)
tree/tree_test.go:339
FunctionTestBlend1D
(t *testing.T)
blending_test.go:8
FunctionTestBlend2D
(t *testing.T)
blending_test.go:153
FunctionTestBlend2DEdgeCases
(t *testing.T)
blending_test.go:296
FunctionTestBoolPropsBeyond32Bits
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
FunctionTestBorderColumnsWithExtraRows
(t *testing.T)
table/table_test.go:261
FunctionTestBorderStyles
(t *testing.T)
table/table_test.go:1344
FunctionTestBorderedCells
(t *testing.T)
table/table_test.go:1445
FunctionTestBullet
(t *testing.T)
list/list_test.go:292
FunctionTestCanvasRender
(t *testing.T)
canvas_test.go:8
FunctionTestCanvasRenderWithTrailingSpaces
(t *testing.T)
canvas_test.go:38
FunctionTestCarriageReturn
(t *testing.T)
table/table_test.go:1197
FunctionTestCarriageReturnInRender
(t *testing.T)
style_test.go:570
FunctionTestClearRows
(t *testing.T)
table/table_test.go:811
FunctionTestComplementary
(t *testing.T)
color_test.go:263
FunctionTestComplexSublist
(t *testing.T)
list/list_test.go:60
FunctionTestContentWrapping
(t *testing.T)
table/table_test.go:829
FunctionTestContentWrapping_ColumnWidth
(t *testing.T)
table/table_test.go:1084
FunctionTestContentWrapping_WithHeight
(t *testing.T)
table/table_test.go:1046
FunctionTestContentWrapping_WithMargins
(t *testing.T)
table/table_test.go:991
FunctionTestContentWrapping_WithPadding
(t *testing.T)
table/table_test.go:929
FunctionTestCustomPaddingChar
(t *testing.T)
style_test.go:458
FunctionTestDarken
(t *testing.T)
color_test.go:294
FunctionTestEmbedListWithinTree
(t *testing.T)
tree/tree_test.go:437
FunctionTestEnumerators
(t *testing.T)
list/list_test.go:160
FunctionTestEnumeratorsAlign
(t *testing.T)
list/list_test.go:332
FunctionTestEnumeratorsTransform
(t *testing.T)
list/list_test.go:228
FunctionTestExtraPaddingHeading
(t *testing.T)
table/table_test.go:1410
FunctionTestExtraPaddingHeadingLong
(t *testing.T)
table/table_test.go:1427
FunctionTestFilter
(t *testing.T)
table/table_test.go:572
FunctionTestFilter
(t *testing.T)
tree/tree_test.go:355
FunctionTestFilterInverse
(t *testing.T)
table/table_test.go:593
FunctionTestFitContent
(t *testing.T)
table/table_test.go:1600
FunctionTestGetFirstRuneAsString
(t *testing.T)
borders_test.go:112
FunctionTestGetUnderlineColor
(t *testing.T)
style_test.go:67
FunctionTestHeight
(t *testing.T)
style_test.go:608
FunctionTestHexToColor
(t *testing.T)
color_test.go:53
FunctionTestHyperlink
(t *testing.T)
style_test.go:633
FunctionTestInlinePreservesWordBoundaries
(t *testing.T)
style_test.go:545
FunctionTestInnerBordersOnly
(t *testing.T)
table/table_test.go:241
FunctionTestIsDarkColor
(t *testing.T)
color_test.go:342
FunctionTestJoinHorizontal
(t *testing.T)
join_test.go:26
FunctionTestJoinVertical
(t *testing.T)
join_test.go:5
FunctionTestLighten
(t *testing.T)
color_test.go:318
FunctionTestList
XXX: can't write multi-line examples if the underlying string uses lipgloss.JoinVertical.
list/list_test.go:18
FunctionTestListIntegers
(t *testing.T)
list/list_test.go:151
FunctionTestListItems
(t *testing.T)
list/list_test.go:27
FunctionTestMarginBackground
(t *testing.T)
style_test.go:54
FunctionTestMoreCellsThanHeaders
(t *testing.T)
table/table_test.go:164
FunctionTestMoreCellsThanHeadersExtra
(t *testing.T)
table/table_test.go:181
FunctionTestMultiline
(t *testing.T)
list/list_test.go:142
FunctionTestMultilinePrefix
(t *testing.T)
tree/tree_test.go:447
FunctionTestMultilinePrefixInception
(t *testing.T)
tree/tree_test.go:496
FunctionTestMultilinePrefixSubtree
(t *testing.T)
tree/tree_test.go:467
FunctionTestNew
(t *testing.T)
table/table_test.go:280
FunctionTestNilValues
(t *testing.T)
tree/tree_test.go:164
FunctionTestNoFinalEmptyRowWhenOverflow
(t *testing.T)
table/table_test.go:1382
FunctionTestNodeDataRemoveOutOfBounds
(t *testing.T)
tree/tree_test.go:379
FunctionTestParseHex
(t *testing.T)
color_test.go:147
FunctionTestRGBA
(t *testing.T)
color_test.go:87
FunctionTestRGBColorNormalizedWhite
(t *testing.T)
color_test.go:135
FunctionTestRGBColorRGBA
(t *testing.T)
color_test.go:121
FunctionTestRootStyle
(t *testing.T)
tree/tree_test.go:326
FunctionTestSpaceStylerPreservesEmbeddedANSI
TestSpaceStylerPreservesEmbeddedANSI verifies that when a space styler is active (underline or strikethrough), Render does not mangle ANSI escape sequ
embedded_ansi_test.go:14
FunctionTestStrikethrough
(t *testing.T)
style_test.go:77
FunctionTestStringTransform
(t *testing.T)
style_test.go:474
FunctionTestStyleCopy
(t *testing.T)
style_test.go:219
FunctionTestStyleFunc
(t *testing.T)
table/table_test.go:757
FunctionTestStyleInherit
(t *testing.T)
style_test.go:169
FunctionTestStyleRanges
(t *testing.T)
ranges_test.go:7
FunctionTestStyleRender
(t *testing.T)
style_test.go:113
FunctionTestStyleRunes
(t *testing.T)
runes_test.go:7
FunctionTestStyleUnset
(t *testing.T)
style_test.go:259
FunctionTestStyleValue
(t *testing.T)
style_test.go:389
FunctionTestSubListItems2
(t *testing.T)
list/list_test.go:342
FunctionTestSublist
(t *testing.T)
list/list_test.go:34
FunctionTestSublistItems
(t *testing.T)
list/list_test.go:44
FunctionTestTabConversion
(t *testing.T)
style_test.go:463
← previousnext →501–600 of 746, ranked by callers