Home
last modified time | relevance | path

Searched refs:textSize (Results 1 - 25 of 46) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select/
H A Dselect_layout_algorithm.cpp60 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 Dselect_layout_algorithm.h38 void MeasureAndGetTextSize(double fontSize, SizeF& textSize, bool& isTextMin);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/texttimer/
H A Dtext_timer_layout_algorithm.cpp31 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 Dtext_clock_layout_algorithm.cpp47 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 Drender_picker_option.cpp436 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 Dtexgine_font.cpp38 void TexgineFont::SetSize(float textSize) in SetSize() argument
40 font_->SetSize(textSize); in SetSize()
H A Dtexgine_font.h54 void SetSize(float textSize);
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_label.cpp337 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 Dbadge_layout_algorithm.cpp115 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 Ddom_badge.cpp79 if (badgeConfig.textSize.second) { in SetBadgeConfig()
80 declaration->SetBadgeFontSize(badgeConfig.textSize.first); in SetBadgeConfig()
H A Ddom_badge.h30 std::pair<Dimension, bool> textSize { 0.0_px, false};
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/
H A Dfont_regen.cpp60 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 Drender_switch.cpp357 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 Dtext_tdd_test.cpp325 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 Drosen_render_search.cpp91 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 Dndkfont_fuzzer.cpp100 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 Dfont.cpp68 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 Djsi_badge_bridge.cpp63 jsiBadgeBridge.badgeConfig_.textSize = { StringUtils::StringToDimension(valStr), true }; in ParseBadgeConfig()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/font_napi/
H A Djs_font.cpp542 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 Dslider_tip_modifier.cpp105 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 Djs_measure.cpp360 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 Drich_editor_layout_algorithm.h61 void UpdateRichTextRect(const SizeF& textSize, LayoutWrapper* layoutWrapper);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/text/
H A Dfont.h84 * @param textSize Text size.
86 void SetSize(scalar textSize);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/include/
H A Ddrawing_font.h182 * @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 Dskia_font.h50 void SetSize(scalar textSize) override;

Completed in 15 milliseconds

12