/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/form/ |
H A D | form_skeleton_params.h | 81 lineHeight_ = static_cast<float>(LINE_HEIGHT_1_N.ConvertToPx()); in SetLineParamsOfHeight1() 95 lineHeight_ = static_cast<float>(LINE_HEIGHT_COMMON.ConvertToPx()); in SetLineParamsCommon() 110 float titleAreaHeight = titleMarginTop_ + lineHeight_ + titleContentMargins_; in SetLineParamsCommon() 112 if (lineHeight_ + contentMargins_ > 0) { in SetLineParamsCommon() 113 contentLineNum_ = static_cast<int32_t>(contentAreaHeight / (lineHeight_ + contentMargins_)); in SetLineParamsCommon() 116 (lineHeight_ + contentMargins_) * contentLineNum_ - contentMargins_ + in SetLineParamsCommon() 117 lineHeight_ + endingMarginBottom)); in SetLineParamsCommon() 127 return lineHeight_; in GetLineHeight() 192 float lineHeight_ = 0.0f; member in OHOS::Ace::NG::FormSkeletonParams
|
/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | drawing_prop_convertor_test_ng.cpp | 386 * @tc.steps4: call ToRSTextStyle and set input textStyle.lineHeight_ is not equal to textStyle.fontSize_. in HWTEST_F() 389 textStyle.lineHeight_ = LINE_HIGHT_PX; in HWTEST_F() 394 * @tc.steps4: call ToRSTextStyle and set input textStyle.lineHeight_ is not equal to textStyle.fontSize_. in HWTEST_F() 397 textStyle.lineHeight_ = LINE_HIGHT_PX; in HWTEST_F() 408 textStyle.lineHeight_ = LINE_HIGHT_PERCENT; in HWTEST_F() 419 textStyle.lineHeight_ = LINE_HIGHT_PERCENT; in HWTEST_F() 446 textStyle.lineHeight_ = LINE_HIGHT_PX; in HWTEST_F() 511 * @tc.steps2: call ToRSTextStyle and set input textStyle.lineHeight_ is LINE_HIGHT_PX. in HWTEST_F() 514 textStyle.lineHeight_ = LINE_HIGHT_PX; in HWTEST_F() 565 testTextStyle.lineHeight_ in HWTEST_F() [all...] |
/foundation/arkui/ui_lite/frameworks/common/ |
H A D | text.cpp | 211 textSize_ = TypedText::GetTextSize(text_, fontId_, fontSize_, style.letterSpace_, style.lineHeight_, maxWidth, in ReMeasureTextSize() 276 int16_t lineHeight = style.lineHeight_; in Draw() 295 if ((style.lineHeight_ == 0) && (spannableString_ != nullptr)) { in Draw() 309 if (lineHeight != style.lineHeight_) { in Draw() 356 if (lineHeight == style.lineHeight_) { in GetPos() 497 int16_t height = style.lineHeight_; in GetEllipsisIndex() 504 if (height != style.lineHeight_) { in GetEllipsisIndex() 519 int16_t lineHeight = style.lineHeight_; in GetLetterIndexByLinePosition() 548 int16_t lineHeight = style.lineHeight_; in GetLetterIndexByPosition() 554 if (lineHeight != style.lineHeight_) { in GetLetterIndexByPosition() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | text_style.cpp | 34 adaptFontSizeStep_ == rhs.adaptFontSizeStep_ && lineHeight_ == rhs.lineHeight_ && in operator ==() 92 JSON_STRING_PUT_STRINGABLE(jsonValue, lineHeight_); in ToString()
|
H A D | text_style.h | 442 return lineHeight_; in GetLineHeight() 447 lineHeight_ = lineHeight; in SetLineHeight() 780 Dimension lineHeight_; member in OHOS::Ace::final
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_adapt_font_sizer.cpp | 156 lineHeight_ = lineHeight.ConvertToPxDistribute( in SetAdaptFontSizeLineHeight() 162 if (LessOrEqual(lineHeight_, 0.0)) { in IsAdaptFontSizeExceedLineHeight() 166 return GreatNotEqual(lineMetrics.height, lineHeight_); in IsAdaptFontSizeExceedLineHeight()
|
H A D | text_adapt_font_sizer.h | 63 double lineHeight_ = 0.0; member in OHOS::Ace::NG::TextAdaptFontSizer
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/ |
H A D | text_drag_pattern.h | 55 : textRect_(textRect), frameWidth_(frameWidth), frameHeight_(frameHeight), lineHeight_(lineHeight), in TextDragData() 62 float lineHeight_ = 0; member 134 return textDragData_.lineHeight_; in GetLineHeight()
|
H A D | text_drag_pattern.cpp | 92 dragPattern->SetLastLineHeight(data.lineHeight_); in CreateDragNode()
|
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | style.cpp | 56 lineHeight_(0), in Style() 107 return lineHeight_; in GetStyle() 187 lineHeight_ = value; in SetStyle()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | rosen_render_text_overlay.cpp | 88 startHandleOffset_ + Offset(0.0, -startHandleHeight_.value_or(lineHeight_) - NormalizeToPx(handleRadius_)), in PaintHandles() 124 Offset(0.0, NormalizeToPx(-handleRadius_) - endHandleHeight_.value_or(lineHeight_) - NormalizeToPx(1.0_vp))); in PaintHandle() 127 endPoint.SetY(NormalizeToPx(handleRadius_) + startHandleHeight_.value_or(lineHeight_) + NormalizeToPx(1.0_vp)); in PaintHandle() 163 Offset(0.0, NormalizeToPx(-handleRadius_) - endHandleHeight_.value_or(lineHeight_) - NormalizeToPx(1.0_vp))); in PaintHandle() 166 endPoint.SetY(NormalizeToPx(handleRadius_) + startHandleHeight_.value_or(lineHeight_) + NormalizeToPx(1.0_vp)); in PaintHandle()
|
H A D | render_text_overlay.cpp | 153 lineHeight_ = overlay->GetLineHeight(); in Update() 538 overlay->lineHeight_ = startHeight; in UpdateWeakWeb() 644 startHandleOffset_ + Offset(-hotZoneRadius, -startHandleHeight_.value_or(lineHeight_) - hotZoneDiameter), in PerformLayout() 645 startHandleOffset_ + Offset(hotZoneRadius, -startHandleHeight_.value_or(lineHeight_))); in PerformLayout() 663 auto startHandleOffset = startHandleOffset_ + Offset(-hotZoneRadius, -lineHeight_ - hotZoneDiameter); in PerformLayout() 664 auto startHandlebottomRightPoint = startHandleOffset_ + Offset(hotZoneRadius, -lineHeight_); in PerformLayout() 741 startHandleOffset.GetY() - lineHeight_ - menuSpacing - NormalizeToPx(TOOL_BAR_HEIGHT)); in ComputeChildPosition() 935 onStartHandleMove_(endIndex_, offset - Offset(0.0, lineHeight_), startCallback, isSingleHandle_); in HandleDragUpdateAndEnd() 945 onEndHandleMove_(startIndex_, offset - Offset(0.0, lineHeight_), endCallback); in HandleDragUpdateAndEnd()
|
H A D | render_text_overlay.h | 97 double lineHeight_ = 0.0; member in OHOS::Ace::RenderTextOverlay
|
H A D | text_overlay_component.cpp | 470 lineHeight_ = lineHeight; in SetLineHeight() 475 return lineHeight_; in GetLineHeight()
|
H A D | text_overlay_component.h | 231 double lineHeight_ = 0.0; member in OHOS::Ace::TextOverlayComponent
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | style.h | 186 int16_t lineHeight_; member in OHOS::Style
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_dialog.cpp | 483 button1_->GetStyleConst().lineHeight_, widthMax_, 0).x); in MeasureButtonWidth() 490 button2_->GetStyleConst().lineHeight_, widthMax_, 0).x); in MeasureButtonWidth() 497 button3_->GetStyleConst().lineHeight_, widthMax_, 0).x); in MeasureButtonWidth()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | span_object.cpp | 754 LineHeightSpan::LineHeightSpan(Dimension lineHeight) : SpanBase(0, 0), lineHeight_(lineHeight) {} in LineHeightSpan() 757 : SpanBase(start, end), lineHeight_(lineHeight) in LineHeightSpan() 779 spanItem->textLineStyle->UpdateLineHeight(lineHeight_); in AddLineHeightStyle() 789 return lineHeight_; in GetLineHeight() 816 return lineHeight_ == lineHeight; in IsAttributesEqual()
|
H A D | span_object.h | 358 Dimension lineHeight_; member in OHOS::Ace::SpanType::LineHeightSpan
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_event_hub.cpp | 160 lineHeight_ = lineHeight; in SetLineHeight() 165 return lineHeight_; in GetLineHeight()
|
H A D | rich_editor_event_hub.h | 168 double lineHeight_ = 0.0; member in OHOS::Ace::NG::RichEditorAbstractSpanResult
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | text_testfive_ng.cpp | 914 textAdaptFontSizer->lineHeight_ = 0.0; in HWTEST_F() 917 textAdaptFontSizer->lineHeight_ = 1.0; in HWTEST_F()
|