| /compose/foundation/foundation/integration-tests/foundation-demos/src/main/java/androidx/compose/foundation/demos/text/ |
| D | ComposeTextOverflownSelection.kt | 60 var overflow by remember { mutableStateOf(TextOverflow.Clip) } in TextOverflowedSelectionDemo() variable 77 selected = overflow == TextOverflow.Clip, in TextOverflowedSelectionDemo() 78 onClick = { overflow = TextOverflow.Clip } in TextOverflowedSelectionDemo() 83 selected = overflow == TextOverflow.Ellipsis, in TextOverflowedSelectionDemo() 84 onClick = { overflow = TextOverflow.Ellipsis } in TextOverflowedSelectionDemo() 93 overflow = overflow in TextOverflowedSelectionDemo() 101 overflow = overflow, in TextOverflowedSelectionDemo() 109 overflow = overflow, in TextOverflowedSelectionDemo() 120 overflow = overflow in TextOverflowedSelectionDemo() 127 overflow = overflow in TextOverflowedSelectionDemo() [all …]
|
| D | ComposeFontPadding.kt | 111 for (overflow in arrayOf(TextOverflow.Clip, TextOverflow.Ellipsis, TextOverflow.Visible)) { in FontPaddingRow() method 113 SecondTagLine(tag = "TextOverflow.$overflow") in FontPaddingRow() 115 FontPaddingColumn(text, overflow) in FontPaddingRow() 122 private fun FontPaddingColumn(text: String, overflow: TextOverflow) { in FontPaddingColumn() 139 overflow = overflow in FontPaddingColumn() 147 overflow = overflow in FontPaddingColumn() 159 overflow = overflow in FontPaddingColumn() 166 overflow = overflow in FontPaddingColumn() 178 overflow = overflow in FontPaddingColumn() 185 overflow = overflow in FontPaddingColumn()
|
| D | TextDemoMetrics.kt | 55 overflow: TextOverflow, in TextWithMetrics() 65 overflow = overflow, in TextWithMetrics() 146 private val overflow = 3 * thickness in <lambda>() constant 183 start = Offset(startX - overflow, y), in <lambda>() 184 end = Offset(endX + overflow, y), in <lambda>() 203 start = Offset(x, startY - overflow), in <lambda>() 204 end = Offset(x, endY + overflow), in <lambda>()
|
| /compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/ |
| D | FlowLayout.kt | 97 overflow: FlowRowOverflow = FlowRowOverflow.Clip, in <lambda>() 100 val overflowState = remember(overflow) { overflow.createOverflowState() } in <lambda>() 111 remember(overflow, content, maxLines) { in <lambda>() 114 overflow.addOverflowComposables(overflowState, mutableList) in <lambda>() 211 overflow: FlowColumnOverflow = FlowColumnOverflow.Clip, in FlowRow() 214 val overflowState = remember(overflow) { overflow.createOverflowState() } in FlowRow() 225 remember(overflow, content, maxLines) { in FlowRow() 228 overflow.addOverflowComposables(overflowState, mutableList) in FlowRow() 466 overflow = FlowRowOverflow.Visible.createOverflowState() in rowMeasurementHelper() 503 overflow = overflowState in rowMeasurementMultiContentHelper() [all …]
|
| D | ContextualFlowLayout.kt | 78 overflow: ContextualFlowRowOverflow = ContextualFlowRowOverflow.Clip, in <lambda>() 81 val overflowState = remember(overflow) { overflow.createOverflowState() } in <lambda>() 83 remember(overflow) { in <lambda>() 85 overflow.addOverflowComposables(overflowState, mutableList) in <lambda>() 153 overflow: ContextualFlowColumnOverflow = ContextualFlowColumnOverflow.Clip, in ContextualFlowColumn() 156 val overflowState = remember(overflow) { overflow.createOverflowState() } in ContextualFlowColumn() 158 remember(overflow) { in ContextualFlowColumn() 160 overflow.addOverflowComposables(overflowState, mutableList) in ContextualFlowColumn() 415 overflow = overflowState, in <lambda>() 455 overflow = overflowState, in <lambda>() [all …]
|
| /compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/ |
| D | BasicText.kt | 97 overflow: TextOverflow = TextOverflow.Clip, in <lambda>() 130 overflow = overflow, in <lambda>() 148 overflow = overflow, in <lambda>() 194 overflow: TextOverflow = TextOverflow.Clip, in BasicText() 237 overflow = overflow, in BasicText() 263 overflow = overflow, in BasicText() 313 overflow: TextOverflow = TextOverflow.Clip, in BasicText() 319 BasicText(text, modifier, style, onTextLayout, overflow, softWrap, maxLines, minLines, color) in BasicText() 354 overflow: TextOverflow = TextOverflow.Clip, in BasicText() 366 overflow, in BasicText() [all …]
|
| D | TextDelegate.kt | 82 val overflow: TextOverflow = TextOverflow.Clip, constant in androidx.compose.foundation.text.TextDelegate 157 val widthMatters = softWrap || overflow == TextOverflow.Ellipsis in layoutText() 179 val overwriteMaxLines = !softWrap && overflow == TextOverflow.Ellipsis in layoutText() 209 overflow = overflow in layoutText() 226 overflow, in layout() 244 layoutInput.overflow, in layout() 279 overflow, in layout() 323 overflow: TextOverflow = TextOverflow.Clip, in ceilToIntPx() 334 current.overflow != overflow || in ceilToIntPx() 345 overflow = overflow, in ceilToIntPx()
|
| /compose/ui/ui-text/src/androidInstrumentedTest/kotlin/androidx/compose/ui/text/ |
| D | TextMeasurerTest.kt | 92 overflow = TextOverflow.Ellipsis, in width_shouldMatter_ifSoftwrapIsDisabled_butOverflowIsEllipsis() 108 overflow = TextOverflow.StartEllipsis, in width_shouldMatter_ifSoftwrapIsDisabled_butOverflowIsStartEllipsis() 124 overflow = TextOverflow.MiddleEllipsis, in width_shouldMatter_ifSoftwrapIsDisabled_butOverflowIsMiddleEllipsis() 139 overflow = TextOverflow.Clip, in width_shouldBeMaxIntrinsicWidth_ifSoftwrapIsDisabled_andOverflowIsClip() 156 overflow = TextOverflow.Clip, in width_shouldBeMaxIntrinsicWidth_ifSoftwrapIsDisabled_andOverflowIsVisible() 173 overflow = TextOverflow.Ellipsis in overwriteMaxLines_ifSoftwrapIsDisabled_andTextOverflowIsEllipsis() 187 overflow = TextOverflow.StartEllipsis in overwriteMaxLines_ifSoftwrapIsDisabled_andTextOverflowIsStartEllipsis() 201 overflow = TextOverflow.MiddleEllipsis in overwriteMaxLines_ifSoftwrapIsDisabled_andTextOverflowIsMiddleEllipsis() 215 overflow = TextOverflow.Ellipsis in dontOverwriteMaxLines_endEllipsis_ifSoftwrapIsEnabled() 229 overflow = TextOverflow.MiddleEllipsis in dontOverwriteMaxLines_middleEllipsis_ifSoftwrapIsEnabled() [all …]
|
| /compose/ui/ui-text/src/commonMain/kotlin/androidx/compose/ui/text/ |
| D | TextMeasurer.kt | 144 overflow: TextOverflow = TextOverflow.Clip, in measure() 161 overflow, in measure() 237 overflow: TextOverflow = TextOverflow.Clip, in measure() 249 overflow = overflow, in measure() 280 val widthMatters = softWrap || overflow.isEllipsis in layout() 303 val overwriteMaxLines = !softWrap && overflow.isEllipsis in layout() 335 overflow = overflow in layout() 420 result = 31 * result + overflow.hashCode() in hashCode() 438 if (overflow != other.textLayoutInput.overflow) return false in equals()
|
| D | TextLayoutResult.kt | 63 val overflow: TextOverflow, constant in androidx.compose.ui.text.TextLayoutInput 115 overflow: TextOverflow, 126 overflow, 140 overflow: TextOverflow, 151 overflow, 179 overflow: TextOverflow = this.overflow, in copy() 191 overflow = overflow, in copy() 209 if (overflow != other.overflow) return false in equals() 224 result = 31 * result + overflow.hashCode() in hashCode() 239 "overflow=$overflow, " + in toString()
|
| /compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/modifiers/ |
| D | ParagraphLayoutCache.kt | 51 private var overflow: TextOverflow = TextOverflow.Clip, variable in androidx.compose.foundation.text.modifiers.ParagraphLayoutCache 140 overflow != TextOverflow.Visible && in layoutWithConstraints() 157 overflow != TextOverflow.Visible && in layoutWithConstraints() 208 overflow: TextOverflow, in update() 216 this.overflow = overflow in update() 267 overflow, in layoutText() 270 maxLines = finalMaxLines(softWrap, overflow, maxLines), in layoutText() 271 overflow = overflow in layoutText() 345 overflow, in slowCreateTextLayoutResultOrNull() 361 overflow in slowCreateTextLayoutResultOrNull()
|
| D | TextStringSimpleElement.kt | 36 private val overflow: TextOverflow = TextOverflow.Clip, constant in androidx.compose.foundation.text.modifiers.TextStringSimpleElement 48 overflow, in create() 66 overflow = overflow in create() 83 if (overflow != other.overflow) return false in equals() 95 result = 31 * result + overflow.hashCode() in hashCode()
|
| D | LayoutUtils.kt | 27 overflow: TextOverflow, in finalConstraints() 32 maxWidth = finalMaxWidth(constraints, softWrap, overflow, maxIntrinsicWidth), in finalConstraints() 41 overflow: TextOverflow, in finalConstraints() 44 val widthMatters = softWrap || overflow.isEllipsis in finalConstraints() 69 internal fun finalMaxLines(softWrap: Boolean, overflow: TextOverflow, maxLinesIn: Int): Int { in finalMaxLines() 84 val overwriteMaxLines = !softWrap && overflow.isEllipsis in finalMaxLines()
|
| D | MultiParagraphLayoutCache.kt | 54 private var overflow: TextOverflow = TextOverflow.Clip, variable 182 autoSizeLayoutCache.layoutInput.overflow == overflow in layoutWithConstraints() 227 overflow, in textLayoutResult() 268 overflow: TextOverflow, in update() 278 this.overflow = overflow in update() 334 overflow, in layoutText() 337 maxLines = finalMaxLines(softWrap, overflow, maxLines), in layoutText() 338 overflow = overflow in layoutText()
|
| D | SelectableTextAnnotatedStringElement.kt | 38 private val overflow: TextOverflow = TextOverflow.Clip, constant in androidx.compose.foundation.text.modifiers.SelectableTextAnnotatedStringElement 55 overflow, in create() 75 overflow = overflow, in create() 99 if (overflow != other.overflow) return false in equals() 116 result = 31 * result + overflow.hashCode() in hashCode()
|
| D | TextAnnotatedStringElement.kt | 42 private val overflow: TextOverflow = TextOverflow.Clip, constant in androidx.compose.foundation.text.modifiers.TextAnnotatedStringElement 60 overflow, in create() 84 overflow = overflow, in create() 112 if (overflow != other.overflow) return false in equals() 129 result = 31 * result + overflow.hashCode() in hashCode()
|
| D | TextAnnotatedStringNode.kt | 75 private var overflow: TextOverflow = TextOverflow.Clip, in <lambda>() variable in androidx.compose.foundation.text.modifiers.TextAnnotatedStringNode 101 overflow, in <lambda>() 163 overflow: TextOverflow, in <lambda>() 196 if (this.overflow != overflow) { in <lambda>() 197 this.overflow = overflow in <lambda>() 253 overflow = overflow, in <lambda>() 305 overflow, in <lambda>() 319 overflow, in <lambda>() 362 overflow = inputLayout.layoutInput.overflow, in <lambda>() 533 val willClip = textLayoutResult.hasVisualOverflow && overflow != TextOverflow.Visible in <lambda>()
|
| D | TextStringSimpleNode.kt | 75 private var overflow: TextOverflow = TextOverflow.Clip, in <lambda>() variable in androidx.compose.foundation.text.modifiers.TextStringSimpleNode 99 overflow, in <lambda>() 166 overflow: TextOverflow in <lambda>() 193 if (this.overflow != overflow) { in <lambda>() 194 this.overflow = overflow in <lambda>() 209 overflow = overflow, in <lambda>() 263 overflow, in <lambda>() 275 overflow, in <lambda>()
|
| /compose/foundation/foundation/src/androidUnitTest/kotlin/androidx/compose/foundation/text/ |
| D | TextLayoutHelperTest.kt | 73 overflow = TextOverflow.Ellipsis, in testCanReuse_same() 93 overflow = TextOverflow.Ellipsis, in testCanReuse_different_text() 113 overflow = TextOverflow.Ellipsis, in testCanReuse_different_style() 133 overflow = TextOverflow.Ellipsis, in testCanReuse_different_maxLines() 153 overflow = TextOverflow.Ellipsis, in testCanReuse_different_softWrap() 173 overflow = TextOverflow.Clip, in testCanReuse_different_overflow() 193 overflow = TextOverflow.Ellipsis, in testCanReuse_different_density() 213 overflow = TextOverflow.Ellipsis, in testCanReuse_different_layoutDirection() 233 overflow = TextOverflow.Ellipsis, in testCanReuse_different_resourceLoader() 252 overflow = TextOverflow.Ellipsis, in testCanReuse_different_constraintsWidth() [all …]
|
| D | TextDelegateTest.kt | 48 assertThat(textDelegate.overflow).isEqualTo(TextOverflow.Clip) in constructor with default values() 98 fun `constructor with customized overflow`() { in constructor with customized overflow() 99 val overflow = TextOverflow.Ellipsis in constructor with customized overflow() constant 105 overflow = overflow, in constructor with customized overflow() 110 assertThat(textDelegate.overflow).isEqualTo(overflow) in constructor with customized overflow()
|
| /compose/material/material/src/commonMain/kotlin/androidx/compose/material/ |
| D | Text.kt | 105 overflow: TextOverflow = TextOverflow.Clip, in Text() 155 overflow = overflow, in Text() 180 overflow: TextOverflow = TextOverflow.Clip, in Text() 198 overflow, 277 overflow: TextOverflow = TextOverflow.Clip, in Text() 328 overflow = overflow, 354 overflow: TextOverflow = TextOverflow.Clip, in Text() 373 overflow,
|
| /compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/modifiers/ |
| D | TextAnnotatedStringNodeInvalidationTest.kt | 31 overflow = params.overflow, in updateAll() 59 overflow = params.overflow, in createSubject() 72 overflow = params.overflow, in createSubject()
|
| D | MultiParagraphLayoutCacheTest.kt | 224 overflow = TextOverflow.Ellipsis, in TextLayoutResult_layout_withEllipsis_withoutSoftWrap() 249 overflow = TextOverflow.Ellipsis, in TextLayoutResult_layoutWithLimitedHeight_withEllipsis() 341 overflow = TextOverflow.Ellipsis, in TextLayoutResult_sameWidth_inRtlAndLtr_withLetterSpacing() 357 overflow: TextOverflow = TextOverflow.Clip, in testAutoSize_fontSizeFittingConstraints_doesntOverflow() 365 overflow = overflow, in testAutoSize_fontSizeFittingConstraints_doesntOverflow() 392 overflow = TextOverflow.Clip, in testAutoSize_fontSizeNotFittingConstraints_overflows() 486 overflow = TextOverflow.Clip, in TextLayoutResult_autoSize_textLongerThan30Characters_doesOverflow() 531 overflow = textOverflow, in autoSizeEllipsizeFittingTextDoesNotEllipsize() 568 overflow = TextOverflow.StartEllipsis, in TextLayoutResult_autoSize_startEllipsis_overflowingText_firstLineIsEllipsized() 604 overflow = TextOverflow.StartEllipsis, in TextLayoutResult_autoSize_startEllipsis_overflowingText_multiLine_isClipped() [all …]
|
| /compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/ |
| D | Text.kt | 104 overflow: TextOverflow = TextOverflow.Clip, in Text() 129 overflow, in Text() 153 overflow: TextOverflow = TextOverflow.Clip, in Text() 171 overflow, 248 overflow: TextOverflow = TextOverflow.Clip, in Text() 274 overflow = overflow, 299 overflow: TextOverflow = TextOverflow.Clip, in Text() 318 overflow,
|
| /compose/material3/material3/samples/src/main/java/androidx/compose/material3/samples/ |
| D | AppBarSamples.kt | 86 Text("Simple TopAppBar", maxLines = 1, overflow = TextOverflow.Ellipsis) in <lambda>() 140 Text("Simple TopAppBar", maxLines = 1, overflow = TextOverflow.Ellipsis) in SimpleTopAppBarWithSubtitle() 142 subtitle = { Text("Subtitle", maxLines = 1, overflow = TextOverflow.Ellipsis) }, in SimpleTopAppBarWithSubtitle() 194 Text("Centered TopAppBar", maxLines = 1, overflow = TextOverflow.Ellipsis) in SimpleCenterAlignedTopAppBar() 248 Text("Simple TopAppBar", maxLines = 1, overflow = TextOverflow.Ellipsis) in SimpleCenterAlignedTopAppBarWithSubtitle() 250 subtitle = { Text("Subtitle", maxLines = 1, overflow = TextOverflow.Ellipsis) }, in SimpleCenterAlignedTopAppBarWithSubtitle() 305 title = { Text("TopAppBar", maxLines = 1, overflow = TextOverflow.Ellipsis) }, in PinnedTopAppBar() 364 title = { Text("TopAppBar", maxLines = 1, overflow = TextOverflow.Ellipsis) }, in EnterAlwaysTopAppBar() 365 subtitle = { Text("Subtitle", maxLines = 1, overflow = TextOverflow.Ellipsis) }, in EnterAlwaysTopAppBar() 418 Text("Medium TopAppBar", maxLines = 1, overflow = TextOverflow.Ellipsis) in ExitUntilCollapsedMediumTopAppBar() [all …]
|