/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/ |
H A D | select_layout_algorithm.cpp | 60 auto textSize = MeasureSelectText(textWrapper, childConstraint, maxWidth); in Measure() local 65 auto rowWidth = textSize.Width() + space + spinnerSize.Width(); in Measure() 66 auto rowHeight = std::max(textSize.Height(), spinnerSize.Height()); in Measure() 85 SizeF textSize; in MeasureSelectText() local 87 textSize = MeasureAndGetSize(textWrapper, childConstraint); in MeasureSelectText() 91 textSize.SetWidth(maxWidth.value()); in MeasureSelectText() 95 MeasureAndGetTextSize(fontSize, textSize, isTextMin); in MeasureSelectText() 100 textGeometry->SetFrameSize(textSize - textMargin); in MeasureSelectText() 102 textLayoutProperty->UpdateMarginSelfIdealSize(textSize); in MeasureSelectText() 103 textLayoutConstraint.selfIdealSize = OptionalSize<float>(textSize in MeasureSelectText() 110 MeasureAndGetTextSize(double fontSize, SizeF& textSize, bool& isTextMin) MeasureAndGetTextSize() argument [all...] |
H A D | select_layout_algorithm.h | 38 void MeasureAndGetTextSize(double fontSize, SizeF& textSize, bool& isTextMin);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/texttimer/ |
H A D | text_timer_layout_algorithm.cpp | 31 auto textSize = textWrapper->GetGeometryNode()->GetFrameSize(); in Measure() local 32 OptionalSizeF textTimerFrameSize = { textSize.Width(), textSize.Height() }; in Measure()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_clock/ |
H A D | text_clock_layout_algorithm.cpp | 47 auto textSize = textWrapper->GetGeometryNode()->GetFrameSize(); in Measure() local 48 OptionalSizeF textClockFrameSize = { textSize.Width(), textSize.Height() }; in Measure()
|
/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() 467 textX = realSize_.Width() - realPadding_ / 2.0 - textSize in PerformLayout() [all...] |
/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);
|
/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()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/ |
H A D | badge_layout_algorithm.cpp | 115 auto textSize = textGeometryNode->GetContentSize(); in Measure() local 120 badgeCircleDiameter = std::max(static_cast<double>(textSize.Height()), badgeCircleDiameter); in Measure() 127 badgeCircleDiameter = std::max(static_cast<double>(textSize.Height()), badgeCircleDiameter); in Measure() 133 badgeWidth = textSize.Width() + badgeTheme->GetNumericalBadgePadding().ConvertToPx() * 2; in Measure() 266 auto textSize = textGeometryNode->GetContentSize(); in Layout() local 272 badgeCircleDiameter = std::max(static_cast<double>(textSize.Height()), badgeCircleDiameter); in Layout() 278 badgeCircleDiameter = std::max(static_cast<double>(textSize.Height()), badgeCircleDiameter); in Layout() 280 badgeWidth = textSize.Width() + badgeTheme->GetNumericalBadgePadding().ConvertToPx() * 2; in Layout()
|
/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};
|
/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()
|
/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.Height()); in PaintText() 359 auto textPos = Alignment::GetAlignPosition(rawPointSize_, textSize, Alignment::CENTER); in PaintText()
|
/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()
|
/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()
|
/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()
|
/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()
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_badge_bridge.cpp | 63 jsiBadgeBridge.badgeConfig_.textSize = { StringUtils::StringToDimension(valStr), true }; in ParseBadgeConfig()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/font_napi/ |
H A D | js_font.cpp | 542 double textSize = 0.0; in OnSetSize() local 543 GET_DOUBLE_PARAM(ARGC_ZERO, textSize); in OnSetSize() 545 m_font->SetSize((float)textSize); in OnSetSize() 556 double textSize = m_font->GetSize(); in OnGetSize() local 557 return GetDoubleAndConvertToJsValue(env, textSize); in OnGetSize() 705 double textSize = m_font->MeasureText(text.c_str(), text.length(), TextEncoding); in OnMeasureText() local 706 return GetDoubleAndConvertToJsValue(env, textSize); in OnMeasureText() 793 int32_t textSize = m_font->CountText(text.c_str(), text.length(), TextEncoding::UTF8); in OnCountText() local 794 return CreateJsNumber(env, textSize); in OnCountText()
|
/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) * HALF); in PaintText() 119 textOffset_.SetY(vertex_.GetY() - (bubbleSize_.Height() + textSize.Height() + arrowSizeHeight) * HALF); in PaintText() 122 textOffset_.SetY(vertex_.GetY() - textSize.Height() * HALF); in PaintText() 126 (bubbleSize_.Width() - textSize.Width() + arrowSizeHeight + circularOffset - arrowSizeWidth) * HALF); in PaintText() 130 (bubbleSize_.Width() + textSize.Width() + arrowSizeHeight + circularOffset - arrowSizeWidth) * HALF); in PaintText()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/measure/ |
H A D | js_measure.cpp | 360 Size textSize = delegate->MeasureTextSize(context); in JSMeasureTextSize() local 369 napi_create_double(env, textSize.Width(), &resultArray[0]); in JSMeasureTextSize() 370 napi_create_double(env, textSize.Height(), &resultArray[1]); in JSMeasureTextSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_layout_algorithm.h | 61 void UpdateRichTextRect(const SizeF& textSize, LayoutWrapper* layoutWrapper);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/text/ |
H A D | font.h | 84 * @param textSize Text size. 86 void SetSize(scalar textSize);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/ |
H A D | drawing_font.h | 182 * @param textSize Indicates the text size. 186 void OH_Drawing_FontSetTextSize(OH_Drawing_Font*, float textSize);
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_font.h | 50 void SetSize(scalar textSize) override;
|