Home
last modified time | relevance | path

Searched refs:maxFontScale (Results 1 - 24 of 24) sorted by relevance

/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Ddimension.cpp184 auto maxFontScale = maxOptional.value_or(static_cast<float>(INT32_MAX)); in ConvertToPxDistribute() local
188 return ConvertToPxByCustomFontScale(minFontScale, maxFontScale); in ConvertToPxDistribute()
191 double Dimension::ConvertToPxByCustomFontScale(float minFontScale, float maxFontScale) const in ConvertToPxByCustomFontScale()
195 float fontScale = std::clamp(pipeline->GetFontScale(), minFontScale, maxFontScale); in ConvertToPxByCustomFontScale()
203 float maxFontScale = pipeline->GetMaxAppFontScale(); in ConvertToPxByAppFontScale() local
204 float fontScale = std::clamp(pipeline->GetFontScale(), minFontScale, maxFontScale); in ConvertToPxByAppFontScale()
213 float maxFontScale = pipeline->GetMaxAppFontScale(); in ConvertToVpByAppFontScale() local
214 float fontScale = std::clamp(pipeline->GetFontScale(), 0.0f, maxFontScale); in ConvertToVpByAppFontScale()
H A Ddimension.h157 double ConvertToPxByCustomFontScale(float minFontScale, float maxFontScale) const;
/foundation/arkui/ace_engine/advanced_ui_component/segmentbutton/interfaces/
H A Dsegmentbutton.js748 this.a3 = new SynchedPropertyObjectOneWayPU(params.maxFontScale, this, "maxFontScale");
768 this.a3.reset(params.maxFontScale);
813 get maxFontScale() {
817 set maxFontScale(newValue) {
935 Text.maxFontScale(ObservedObject.GetRawObject(this.maxFontScale));
1099 this.a3 = new SynchedPropertyObjectOneWayPU(params.maxFontScale, this, "maxFontScale");
1131 this.a3.reset(params.maxFontScale);
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/selecttitlebar/interfaces/
H A Dselecttitlebar.js464 this.maxFontScale = 1;
526 if (params.maxFontScale !== undefined) {
527 this.maxFontScale = params.maxFontScale;
659 this.maxFontScale = uiContent.getMaxFontScale();
679 return Math.min(this.systemFontScale, this.maxFontScale);
963 this.maxFontScale = 1;
1021 if (params.maxFontScale !== undefined) {
1022 this.maxFontScale = params.maxFontScale;
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/composetitlebar/interfaces/
H A Dcomposetitlebar.js360 this.maxFontScale = 1;
420 if (j7.maxFontScale !== undefined) {
421 this.maxFontScale = j7.maxFontScale;
514 this.maxFontScale = b7.getMaxFontScale();
537 return Math.min(this.systemFontScale, this.maxFontScale);
854 this.maxFontScale = 1;
910 if (v2.maxFontScale !== undefined) {
911 this.maxFontScale = v2.maxFontScale;
[all...]
/foundation/arkui/ace_engine/advanced_ui_component/exceptionprompt/interfaces/
H A Dexceptionprompt.js179 Text.maxFontScale(Math.min(this.updateFontScale(), 2));
273 Text.maxFontScale(Math.min(this.updateFontScale(), 2));
/foundation/arkui/ace_engine/advanced_ui_component/editabletitlebar/interfaces/
H A Deditabletitlebar.js112 this.maxFontScale = 1;
159 if (l10.maxFontScale !== undefined) {
160 this.maxFontScale = l10.maxFontScale;
228 this.maxFontScale = c10.getMaxFontScale();
242 return Math.min(this.systemFontScale, this.maxFontScale);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/container_modal/interfaces/
H A Dcustomtitle.js156 Text.maxFontScale(1.45);
/foundation/arkui/ace_engine/advanced_ui_component/tabtitlebar/interfaces/
H A Dtabtitlebar.js389 this.maxFontScale = 1;
449 if (a6.maxFontScale !== undefined) {
450 this.maxFontScale = a6.maxFontScale;
550 this.maxFontScale = s5.getMaxFontScale();
570 return Math.min(this.systemFontScale, this.maxFontScale);
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dtext_style.h321 void SetMaxFontScale(float maxFontScale) in SetMaxFontScale() argument
323 maxFontScale_ = maxFontScale; in SetMaxFontScale()
/foundation/arkui/ace_engine/advanced_ui_component/composelistitem/interfaces/
H A Dcomposelistitem.js1248 this.maxFontScale = this.getUIContext().getMaxFontScale();
1317 if (s2.maxFontScale !== undefined) {
1318 this.maxFontScale = s2.maxFontScale;
1662 return Math.min(this.maxFontScale, this.getUIContext().getHostContext()?.config.fontSizeScale ?? 1);
/foundation/arkui/ace_engine/advanced_ui_component/filter/interfaces/
H A Dfilter.js461 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE));
959 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE));
1117 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE));
2106 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE));
2273 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE));
2603 Text.maxFontScale(Math.min(this.updateFontScale(), MAX_FONT_SCALE));
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_text.cpp248 double maxFontScale; in SetMaxFontScale() local
249 if (info.Length() < 1 || !ParseJsDouble(info[0], maxFontScale)) { in SetMaxFontScale()
252 if (LessOrEqual(maxFontScale, 1.0f)) { in SetMaxFontScale()
256 TextModel::GetInstance()->SetMaxFontScale(static_cast<float>(maxFontScale)); in SetMaxFontScale()
1096 JSClass<JSText>::StaticMethod("maxFontScale", &JSText::SetMaxFontScale, opt); in JSBind()
H A Djs_view_context.cpp929 auto maxFontScale = pipelineContext->GetMaxAppFontScale(); in GetMaxFontScale() local
930 auto maxFontScaleRef = JSRef<JSVal>::Make(JSVal(ToJSValue(maxFontScale))); in GetMaxFontScale()
/foundation/arkui/ace_engine/advanced_ui_component/gridobjectsortcomponent/interfaces/
H A Dgridobjectsortcomponent.js1219 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale));
1260 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale));
1384 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale));
1523 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale));
1612 Text.maxFontScale(ObservedObject.GetRawObject(this.fontSizeScale));
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_text_bridge.cpp527 double maxFontScale; in SetMaxFontScale() local
528 if (!ArkTSUtils::ParseJsDouble(vm, secondArg, maxFontScale)) { in SetMaxFontScale()
531 if (LessOrEqual(maxFontScale, 1.0f)) { in SetMaxFontScale()
532 maxFontScale = 1.0f; in SetMaxFontScale()
534 GetArkUINodeModifiers()->getTextModifier()->setTextMaxFontScale(nativeNode, static_cast<float>(maxFontScale)); in SetMaxFontScale()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DjsUIContext.js693 let maxFontScale = Context.getMaxFontScale();
695 return maxFontScale;
H A DarkComponent.js11856 maxFontScale(value) {
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_pattern.cpp1784 float maxFontScale = MAX_FONT_SCALE; in CreateOrUpdateSymbol() local
1786 maxFontScale = std::min(pipeline->GetMaxAppFontScale(), MAX_FONT_SCALE); in CreateOrUpdateSymbol()
1788 layoutProperty->UpdateMaxFontScale(maxFontScale); in CreateOrUpdateSymbol()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_field_layout_algorithm.cpp233 float maxFontScale = pattern->GetMaxFontSizeScale().has_value() ? in ApplyIndent() local
235 float fontScale = std::min(pipeline->GetFontScale(), maxFontScale); in ApplyIndent()
H A Dtext_field_pattern.cpp7064 float maxFontScale = pipeline->GetMaxAppFontScale(); in OnBackPressed() local
7069 dumpLog.AddDesc(std::string("maxFontScale: ").append(std::to_string(maxFontScale))); in OnBackPressed()
/foundation/arkui/ace_engine/advanced_ui_component/treeview/interfaces/
H A Dtreeview.js1033 Text.maxFontScale(this.decideFontScale());
1116 Text.maxFontScale(this.decideFontScale());
3770 Text.maxFontScale(this.decideFontScale());
3986 Text.maxFontScale(this.decideFontScale());
4106 Text.maxFontScale(this.decideFontScale());
/foundation/arkui/ace_engine/advanced_ui_component/dialog/interfaces/
H A Ddialog.js3208 Text.maxFontScale(Math.min(this.appMaxFontScale, MAX_FONT_SCALE));
3249 Text.maxFontScale(Math.min(this.appMaxFontScale, MAX_FONT_SCALE));
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_pattern.cpp3343 float maxFontScale = pipeline->GetMaxAppFontScale(); in DumpScaleInfo() local
3348 dumpLog.AddDesc(std::string("maxFontScale: ").append(std::to_string(maxFontScale))); in DumpScaleInfo()

Completed in 81 milliseconds