/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/ |
H A D | select_layout_algorithm.cpp | 64 auto textSize = MeasureAndGetSize(textWrapper, childConstraint); in Measure() local 67 … textSize.SetWidth(childConstraint.parentIdealSize.Width().value() - spinnerSize.Width() - space); in Measure() 72 MeasureAndGetTextSize(fontSize, textSize, isTextMin); in Measure() 75 textLayoutProperty->UpdateMarginSelfIdealSize(textSize); in Measure() 76 … textLayoutConstraint.selfIdealSize = OptionalSize<float>(textSize.Width(), textSize.Height()); in Measure() 77 textLayoutConstraint.maxSize.SetSizeT(textSize); in Measure() 84 auto rowWidth = textSize.Width() + space + spinnerSize.Width(); in Measure() 85 auto rowHeight = std::max(textSize.Height(), spinnerSize.Height()); in Measure() 97 void SelectLayoutAlgorithm::MeasureAndGetTextSize(double fontSize, SizeF& textSize, bool& isTextMin) in MeasureAndGetTextSize() argument 101 if (textSize.Width() < fontSize * minCharVal) { in MeasureAndGetTextSize() [all …]
|
H A D | select_layout_algorithm.h | 36 void MeasureAndGetTextSize(double fontSize, SizeF& textSize, bool& isTextMin);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | render_picker_option.cpp | 436 Size textSize = renderText_->GetLayoutSize(); in PerformLayout() local 446 if (realSize_.Width() - textSize.Width() < realPadding_) { in PerformLayout() 447 realSize_.SetWidth(textSize.Width() + realPadding_); in PerformLayout() 449 if (realSize_.Height() - textSize.Height() < realPadding_ && !optionDefaultHeight_) { in PerformLayout() 450 realSize_.SetHeight(textSize.Height() + realPadding_); in PerformLayout() 457 if (textSize.Width() > maxWidth - realPadding_) { in PerformLayout() 458 textSize.SetWidth(maxWidth - realPadding_); in PerformLayout() 464 textLayout.SetFixedSize(textSize); in PerformLayout() 465 double textX = (realSize_.Width() - textSize.Width()) / 2.0; // place center in PerformLayout() 469 double textY = (realSize_.Height() - textSize.Height()) / 2.0; // place center in PerformLayout() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/texttimer/ |
H A D | text_timer_layout_algorithm.cpp | 36 auto textSize = textWrapper->GetGeometryNode()->GetFrameSize(); in Measure() local 37 OptionalSizeF textTimerFrameSize = { textSize.Width(), textSize.Height() }; in Measure()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/ |
H A D | badge_layout_algorithm.cpp | 126 auto textSize = textGeometryNode->GetContentSize(); in Measure() local 131 … badgeCircleDiameter = std::max(static_cast<double>(textSize.Height()), badgeCircleDiameter); in Measure() 138 … badgeCircleDiameter = std::max(static_cast<double>(textSize.Height()), badgeCircleDiameter); in Measure() 144 … badgeWidth = textSize.Width() + badgeTheme->GetNumericalBadgePadding().ConvertToPx() * 2; in Measure() 276 auto textSize = textGeometryNode->GetContentSize(); in Layout() local 282 … badgeCircleDiameter = std::max(static_cast<double>(textSize.Height()), badgeCircleDiameter); in Layout() 288 … badgeCircleDiameter = std::max(static_cast<double>(textSize.Height()), badgeCircleDiameter); in Layout() 290 … badgeWidth = textSize.Width() + badgeTheme->GetNumericalBadgePadding().ConvertToPx() * 2; in Layout()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/ |
H A D | text_clock_layout_algorithm.cpp | 48 auto textSize = textWrapper->GetGeometryNode()->GetFrameSize(); in Measure() local 49 OptionalSizeF textClockFrameSize = { textSize.Width(), textSize.Height() }; in Measure()
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_label.cpp | 337 Point textSize = labelText_->GetTextSize(); in ReMeasure() local 340 Resize(textSize.x, textSize.y); in ReMeasure() 343 SetWidth(textSize.x); in ReMeasure() 346 SetHeight(textSize.y); in ReMeasure() 353 RemeasureForMarquee(textSize.x); in ReMeasure()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-arkui-advanced-SelectionMenu.md | 121 @State textSize: number = 30 299 Slider({ value: this.textSize, step: 10, style: SliderStyle.InSet }) 305 if (this.textSize == undefined) { 306 this.textSize = 0 311 … this.textSize = Math.max(this.textSize, (item as RichEditorTextSpanResult).textStyle.fontSize) 318 this.textSize = value 322 textStyle: { fontSize: this.textSize }
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/ |
H A D | texgine_font.cpp | 38 void TexgineFont::SetSize(float textSize) in SetSize() argument 40 font_->SetSize(textSize); in SetSize()
|
H A D | texgine_font.h | 54 void SetSize(float textSize);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | font_regen.cpp | 60 float textSize = 256; // 256 FontSetTextSize 参数 in OnTestFunction() local 61 OH_Drawing_FontSetTextSize(font, textSize); in OnTestFunction()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/ |
H A D | dom_badge.cpp | 79 if (badgeConfig.textSize.second) { in SetBadgeConfig() 80 declaration->SetBadgeFontSize(badgeConfig.textSize.first); in SetBadgeConfig()
|
H A D | dom_badge.h | 30 std::pair<Dimension, bool> textSize { 0.0_px, false};
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/ |
H A D | text_tdd_test.cpp | 325 const char *textSize = "fontSize"; in ComponentTextStyleSetSizeFamilyTest006() local 327 …jerry_value_t textSizetKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>(textSize)); in ComponentTextStyleSetSizeFamilyTest006() 359 UpdateNumAttributeOrStyleValue(textComponent, textSize, expectVidaLargerSize, false); in ComponentTextStyleSetSizeFamilyTest006() 413 const char *textSize = "fontSize"; in ComponentTextStyleSetLineHeightTest008() local 415 …jerry_value_t textSizetKey = jerry_create_string(reinterpret_cast<const jerry_char_t *>(textSize)); in ComponentTextStyleSetLineHeightTest008()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-container-badge.md | 35 | textSize | <length> | 10px | 否 | 数字标记的数字文本大小。 | 94 "textSize":"9px",
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/font_napi/ |
H A D | js_font.cpp | 520 double textSize = 0.0; in OnSetSize() local 521 GET_DOUBLE_PARAM(ARGC_ZERO, textSize); in OnSetSize() 523 m_font->SetSize((float)textSize); in OnSetSize() 534 double textSize = m_font->GetSize(); in OnGetSize() local 535 return GetDoubleAndConvertToJsValue(env, textSize); in OnGetSize() 634 double textSize = m_font->MeasureText(text.c_str(), text.length(), TextEncoding); in OnMeasureText() local 635 return GetDoubleAndConvertToJsValue(env, textSize); in OnMeasureText() 722 int32_t textSize = m_font->CountText(text.c_str(), text.length(), TextEncoding::UTF8); in OnCountText() local 723 return CreateJsNumber(env, textSize); in OnCountText()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/ |
H A D | js-apis-measure.md | 111 textSize: SizeOptions = MeasureText.measureTextSize({ 120 Text(`The width of 'Hello World': ${this.textSize.width}`) 121 Text(`The height of 'Hello World': ${this.textSize.height}`)
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | render_switch.cpp | 357 auto textSize = paintRenderText->GetLayoutSize(); in PaintText() local 358 …textSize.SetHeight(textSize.Height() > rawPointSize_.Height() ? rawPointSize_.Height() : textSize.… in PaintText() 359 auto textPos = Alignment::GetAlignPosition(rawPointSize_, textSize, Alignment::CENTER); in PaintText()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkfont_fuzzer/ |
H A D | ndkfont_fuzzer.cpp | 100 float textSize = GetObject<float>(); in NativeDrawingFontTest002() local 101 OH_Drawing_FontSetTextSize(nullptr, textSize); in NativeDrawingFontTest002() 102 OH_Drawing_FontSetTextSize(font, textSize); in NativeDrawingFontTest002()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ohos-arkui-advanced-SelectionMenu.md | 119 @State textSize: number = 30 297 Slider({ value: this.textSize, step: 10, style: SliderStyle.InSet }) 303 if (this.textSize == undefined) { 304 this.textSize = 0 309 … this.textSize = Math.max(this.textSize, (item as RichEditorTextSpanResult).textStyle.fontSize) 316 this.textSize = value 320 textStyle: { fontSize: this.textSize }
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/search/ |
H A D | rosen_render_search.cpp | 91 auto textSize = buttonText->GetLayoutSize(); in Paint() local 92 double yOffset = (searchTextRect_.Height() - textSize.Height()) / 2; in Paint() 93 double xOffset = (searchTextRect_.Width() - textSize.Width()) / 2; in Paint()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_tip_modifier.cpp | 105 SizeF textSize = { 0, 0 }; in PaintText() local 112 textSize = SizeF(std::min(paragraph_->GetLongestLine(), width), paragraph_->GetHeight()); in PaintText() 115 textOffset_.SetX(vertex_.GetX() - textSize.Width() * HALF); in PaintText() 117 …textOffset_.SetY(vertex_.GetY() + (bubbleSize_.Height() - textSize.Height() + arrowSizeHeight) * H… in PaintText() 119 …textOffset_.SetY(vertex_.GetY() - (bubbleSize_.Height() + textSize.Height() + arrowSizeHeight) * H… in PaintText() 122 textOffset_.SetY(vertex_.GetY() - textSize.Height() * HALF); in PaintText() 126 …(bubbleSize_.Width() - textSize.Width() + arrowSizeHeight + circularOffset - arrowSizeWidth) * HAL… in PaintText() 130 …(bubbleSize_.Width() + textSize.Width() + arrowSizeHeight + circularOffset - arrowSizeWidth) * HAL… in PaintText()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/text/ |
H A D | font.cpp | 68 void Font::SetSize(scalar textSize) in SetSize() argument 70 fontImpl_->SetSize(textSize); in SetSize()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_font.cpp | 104 void SkiaFont::SetSize(scalar textSize) in SetSize() argument 106 skFont_.setSize(textSize); in SetSize()
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/ |
H A D | js-service-widget-container-badge.md | 35 | textSize | <length> | 10px | No| Text size of the number badge.| 94 "textSize":"9px",
|