Home
last modified time | relevance | path

Searched refs:lineHeight (Results 1 – 25 of 64) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/
Dtext_drag_pattern.cpp102 float lineHeight = hostPattern->GetLineHeight(); in CalculateTextDragData() local
128 rightHandleY = contentRect.Bottom() - lineHeight; in CalculateTextDragData()
133 float height = rightHandleY - leftHandleY + lineHeight; in CalculateTextDragData()
156 …TextDragData data(dragTextRect, width + bothOffset, height + bothOffset, lineHeight, info, oneLine… in CalculateTextDragData()
170 auto lineHeight = GetLineHeight(); in GenerateClipPath() local
174 path->LineTo(endX, endY + lineHeight); in GenerateClipPath()
175 path->LineTo(startX, endY + lineHeight); in GenerateClipPath()
184 path->LineTo(textStart, startY + lineHeight); in GenerateClipPath()
185 path->LineTo(startX, startY + lineHeight); in GenerateClipPath()
212 auto lineHeight = GetLineHeight(); in GenerateBackgroundPoints() local
[all …]
Dtext_drag_pattern.h45 …TextDragData(RectF textRect, float frameWidth, float frameHeight, float lineHeight, SelectPosition… in TextDragData()
47 …: textRect_(textRect), frameWidth_(frameWidth), frameHeight_(frameHeight), lineHeight_(lineHeight), in TextDragData()
183 void SetLastLineHeight(float lineHeight) in SetLastLineHeight() argument
185 lastLineHeight_ = lineHeight; in SetLastLineHeight()
/foundation/multimedia/audio_framework/test/demo/entry/src/main/ets/pages/
DAudioManager.ets37 … AudioVolumeManager").fontSize(24).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
44 …udioVolumeGroupManager").fontSize(24).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
51 …流管理 AudioStreamManager").fontSize(24).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
58 …管理 AudioRoutingManager").fontSize(24).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
65 …t("音频路由管理 AudioManager").fontSize(24).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
72 …置-音频场景/参数 AudioManager").fontSize(24).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
/foundation/arkui/ui_lite/frameworks/common/
Dtext.cpp304 int16_t lineHeight = style.lineHeight_; in Draw() local
307 if (lineHeight <= 0) { in Draw()
308 lineHeight = font->GetHeight(fontId_, fontSize_); in Draw()
309 lineHeight += style.lineSpace_; in Draw()
317 curLineHeight = lineHeight; in Draw()
320 if (lineHeight == style.lineHeight_) { in Draw()
321 pos.y = TextPositionY(coords, (lineCount * lineHeight)); in Draw()
323 pos.y = TextPositionY(coords, (lineCount * lineHeight - style.lineSpace_)); in Draw()
332 if (lineHeight != style.lineHeight_) { in Draw()
370 curLineHeight = lineHeight; in Draw()
[all …]
Dtyped_text.cpp29 … int16_t lineHeight, int16_t maxWidth, int8_t lineSpace, SizeSpan* sizeSpans, in GetTextSize() argument
42 bool hasLineHeight = (lineHeight != 0); in GetTextSize()
54 curLineHeight = lineHeight; in GetTextSize()
69 size.y += lineHeight; in GetTextSize()
81 size.y = lineHeight; in GetTextSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
Ddrawing_prop_convertor.cpp197 double lineHeight = textStyle.GetLineHeight().Value(); in ToRSTextStyle() local
199 lineHeight = context->NormalizeToPx(textStyle.GetLineHeight()); in ToRSTextStyle()
202 if (!NearEqual(lineHeight, fontSize) && (lineHeight > 0.0) && (!NearZero(fontSize))) { in ToRSTextStyle()
203 rsTextStyle.height_ = lineHeight / fontSize; in ToRSTextStyle()
209 if (NearZero(lineHeight) || (!isBeginVersion && NearEqual(lineHeight, fontSize))) { in ToRSTextStyle()
/foundation/arkui/ace_engine/frameworks/core/components/font/
Dconstants_converter.cpp239 double lineHeight = textStyle.GetLineHeight().Value(); in ConvertTxtStyle() local
241 lineHeight = pipelineContext->NormalizeToPx(textStyle.GetLineHeight()); in ConvertTxtStyle()
244 if (!NearEqual(lineHeight, fontSize) && (lineHeight > 0.0) && (!NearZero(fontSize))) { in ConvertTxtStyle()
245 txtStyle.height = lineHeight / fontSize; in ConvertTxtStyle()
251 if (NearZero(lineHeight) || (!isBeginVersion && NearEqual(lineHeight, fontSize))) { in ConvertTxtStyle()
/foundation/multimedia/audio_framework/test/demo/entry/src/main/ets/pages/audio_manager/
DSettings.ets183 …setAudioScene callback").fontSize(20).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
187 …"setAudioScene promise").fontSize(20).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
194 …getAudioScene callback").fontSize(20).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
198 …"getAudioScene promise").fontSize(20).fontColor(Color.White).align(Alignment.Center).lineHeight(40)
237 .lineHeight(40)
245 .lineHeight(40)
256 .lineHeight(40)
264 .lineHeight(40)
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
Dgrid_scroll_layout_algorithm.cpp106 auto lineHeight = gridLayoutInfo_.GetAverageLineHeight(); in UpdateOffsetOnVirtualKeyboardHeightChange() local
107 if (GreatNotEqual(lineHeight, 0)) { in UpdateOffsetOnVirtualKeyboardHeightChange()
108 offset = floor(offset / lineHeight) * lineHeight; in UpdateOffsetOnVirtualKeyboardHeightChange()
177 float lineHeight = gridLayoutInfo_.lineHeightMap_[line->first]; in Layout() local
203 …blockSize = gridLayoutProperty->IsVertical() ? SizeF(frSize, lineHeight) : SizeF(lineHeight, frSiz… in Layout()
302 auto lineHeight = FillNewLineBackward(crossSize, mainSize, layoutWrapper, false); in FillGridViewportAndMeasureChildren() local
303 if (LessNotEqual(lineHeight, 0.0)) { in FillGridViewportAndMeasureChildren()
371 float lineHeight = FillNewLineForward(crossSize, mainSize, layoutWrapper); in FillBlankAtStart() local
372 if (GreatNotEqual(lineHeight, 0.0)) { in FillBlankAtStart()
373 gridLayoutInfo_.lineHeightMap_[gridLayoutInfo_.startMainLineIndex_] = lineHeight; in FillBlankAtStart()
[all …]
/foundation/arkui/ace_engine/frameworks/base/utils/
Dmeasure_util.h32 std::optional<Dimension> lineHeight = std::nullopt; member
/foundation/graphic/graphic_utils_lite/test/
Dstyle_unit_test.cpp349 const int16_t lineHeight = 10; variable
350 style_->SetStyle(STYLE_LINE_HEIGHT, lineHeight);
351 EXPECT_EQ(style_->GetStyle(STYLE_LINE_HEIGHT), lineHeight);
/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/Component/
DsubEntryComponent.ets34 .lineHeight( $r( 'app.float.wh_value_32' ) )
92 .lineHeight( $r( 'app.float.wh_value_22' ) )
102 .lineHeight( $r( 'app.float.wh_value_19' ) )
/foundation/communication/wifi/wifi/test/wifi_testapp/entry/src/main/ets/Component/
DsubEntryComponent.ets38 .lineHeight( $r( 'app.float.wh_value_32' ) )
100 .lineHeight( $r( 'app.float.wh_value_22' ) )
110 .lineHeight( $r( 'app.float.wh_value_19' ) )
/foundation/multimedia/audio_framework/test/demo/entry/src/main/ets/pages/routing_manager/
DPreferOutputDevice.ets255 .lineHeight(30)
267 .lineHeight(30)
279 .lineHeight(30)
283 Text(this.onReturnMsg).fontSize(20).lineHeight(30)
292 Text(this.offReturnMsg).fontSize(20).lineHeight(30)
/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/pages/
DautoTest.ets28 .lineHeight( $r( 'app.float.wh_value_22' ) )
DmanualSceneTest.ets28 .lineHeight( $r( 'app.float.wh_value_22' ) )
Dprofile.ets28 .lineHeight( $r( 'app.float.wh_value_22' ) )
/foundation/communication/bluetooth_service/test/example/bluetoothtest/entry/src/main/ets/MainAbility/pages/
DconfInfo.ets28 .lineHeight($r('app.float.wh_value_22'))
DmanualSceneTest.ets28 .lineHeight($r('app.float.wh_value_22'))
DautoTest.ets28 .lineHeight($r('app.float.wh_value_22'))
Dprofile.ets28 .lineHeight($r('app.float.wh_value_22'))
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
Dtext_composed_element.cpp99 auto lineHeight = in GetLineHeight() local
101 return lineHeight.ToString(); in GetLineHeight()
/foundation/arkui/ace_engine/interfaces/napi/kits/measure/
Djs_measure.cpp231 std::optional<Dimension> lineHeight = HandleDimensionType(lineHeightNApi, env); in JSMeasureTextSize() local
251 context.lineHeight = lineHeight; in JSMeasureTextSize()
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
Dtext_tdd_test.cpp425 const char *lineHeight = "lineHeight"; in ComponentTextStyleSetLineHeightTest008() local
427 …ry_value_t lineHeightKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>(lineHeight)); in ComponentTextStyleSetLineHeightTest008()
443 UpdateNumAttributeOrStyleValue(textComponent, lineHeight, expectLineHeight, false); in ComponentTextStyleSetLineHeightTest008()
/foundation/arkui/ace_engine/frameworks/core/components/test/mock/
Dmock_text_overlay_component.cpp115 void TextOverlayComponent::SetLineHeight(double lineHeight) in SetLineHeight() argument
117 lineHeight_ = lineHeight; in SetLineHeight()

123