Home
last modified time | relevance | path

Searched refs:style (Results 51 - 75 of 674) sorted by relevance

12345678910>>...27

/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_side_bar_container_ffi.cpp71 SideBarContainerType style = static_cast<SideBarContainerType>(type); in FfiOHOSAceFrameworkSideBarCreate() local
72 SideBarContainerModel::GetInstance()->SetSideBarContainerType(style); in FfiOHOSAceFrameworkSideBarCreate()
78 void FfiOHOSAceFrameworkSideBarControlButton(CJSideBarButtonStyle style) in FfiOHOSAceFrameworkSideBarControlButton() argument
80 auto controlButtonWidth = Dimension(style.width, DimensionUnit::VP); in FfiOHOSAceFrameworkSideBarControlButton()
86 auto controlButtonHeight = Dimension(style.height, DimensionUnit::VP); in FfiOHOSAceFrameworkSideBarControlButton()
91 SideBarContainerModel::GetInstance()->SetControlButtonLeft(Dimension(style.left, DimensionUnit::VP)); in FfiOHOSAceFrameworkSideBarControlButton()
92 SideBarContainerModel::GetInstance()->SetControlButtonTop(Dimension(style.top, DimensionUnit::VP)); in FfiOHOSAceFrameworkSideBarControlButton()
94 auto iconsInfo = style.icons; in FfiOHOSAceFrameworkSideBarControlButton()
H A Dcj_divider_ffi.cpp39 void FfiOHOSAceFrameworkDividerSetLineCap(int32_t style) in FfiOHOSAceFrameworkDividerSetLineCap() argument
41 if (!Utils::CheckParamsValid(style, LINECAP.size())) { in FfiOHOSAceFrameworkDividerSetLineCap()
46 DividerModel::GetInstance()->LineCap(LINECAP[style]); in FfiOHOSAceFrameworkDividerSetLineCap()
/foundation/arkui/ui_lite/test/uitest/test_anti_aliasing/
H A Dui_test_anti_aliasing.cpp81 Style style = view->GetStyleConst(); in UIKitAntiAliasingTestRect001() local
82 style.bgColor_ = Color::Green(); in UIKitAntiAliasingTestRect001()
83 style.bgOpa_ = OPA_OPAQUE; in UIKitAntiAliasingTestRect001()
84 style.borderRadius_ = 5; // 5:border radius in UIKitAntiAliasingTestRect001()
85 style.borderColor_ = Color::Gray(); in UIKitAntiAliasingTestRect001()
86 style.borderOpa_ = OPA_OPAQUE; in UIKitAntiAliasingTestRect001()
87 style.borderWidth_ = 3; // 3:border width in UIKitAntiAliasingTestRect001()
88 view->SetStyle(style); in UIKitAntiAliasingTestRect001()
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Dslider_component.cpp83 bool SliderComponent::ApplyPrivateStyle(const AppStyleItem *style) in ApplyPrivateStyle() argument
87 uint16_t stylePropNameId = GetStylePropNameId(style); in ApplyPrivateStyle()
90 // set slider background style color in ApplyPrivateStyle()
91 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle()
99 // set slider indicator style color in ApplyPrivateStyle()
100 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle()
108 // set slider knob style color in ApplyPrivateStyle()
109 if (!GetStyleColorValue(style, color, alpha)) { in ApplyPrivateStyle()
115 startPosition_.x = GetStylePixelValue(style); in ApplyPrivateStyle()
119 startPosition_.y = GetStylePixelValue(style); in ApplyPrivateStyle()
[all...]
H A Dinput_edittext_component.h46 bool ApplyPrivateStyle(const AppStyleItem *style) override;
56 bool SetFontSize(const AppStyleItem *style);
57 bool SetColor(const AppStyleItem &style);
58 bool SetPlaceholderColor(const AppStyleItem &style);
H A Ddiv_component.cpp39 bool DivComponent::ApplyPrivateStyle(const AppStyleItem* style) in ApplyPrivateStyle() argument
45 uint16_t stylePropNameId = GetStylePropNameId(style); in ApplyPrivateStyle()
49 const char * const strValue = GetStyleStrValue(style); in ApplyPrivateStyle()
55 NativeViewSetDirection(style, stylePropNameId, strValue, applyResult); in ApplyPrivateStyle()
59 void DivComponent::NativeViewSetDirection(const AppStyleItem* style, uint16_t stylePropNameId, in NativeViewSetDirection() argument
62 uint16_t valueId = KeyParser::ParseKeyId(strValue, GetStyleStrValueLen(style)); in NativeViewSetDirection()
H A Dcomponent.cpp103 // create native element object before combining styles, as style data binding need it in Component()
112 * and process attribute/events/style/children properly before binding it on an JS object.
535 bool Component::ApplyStyle(const AppStyleItem *style) in ApplyStyle() argument
543 bool applyResult = ApplyPrivateStyle(style); in ApplyStyle()
545 // one private style get matched, no need to try private style ones in ApplyStyle()
548 return ApplyCommonStyle(*uiView, style); in ApplyStyle()
552 * support common style items:
564 * not suport common style item:
568 * border-style,
572 ApplyCommonStyle(UIView &view, const AppStyleItem *style) ApplyCommonStyle() argument
757 AppStyle *style = styleSheet->GetStyleFromKeyFramesSelectors(value); SetAnimationKeyFrames() local
1937 GetStylePixelValue(const AppStyleItem *style, int32_t defaultValue) const GetStylePixelValue() argument
1952 GetStyleDegValue(const AppStyleItem *style, int16_t defaultValue) const GetStyleDegValue() argument
1967 GetStyleColorValue(const AppStyleItem *style, uint32_t &color, uint8_t &alpha) const GetStyleColorValue() argument
[all...]
/foundation/arkui/ui_lite/frameworks/engines/gfx/
H A Dsoft_engine.cpp31 const Style& style, in DrawArc()
35 DrawArc::GetInstance()->Draw(dst, arcInfo, mask, style, opacity, cap); in DrawArc()
76 const Style& style, in DrawRect()
79 DrawRect::Draw(dst, rect, dirtyRect, style, opacity); in DrawRect()
122 const Style& style) in DrawPath()
125 DrawCanvas::DoRender(dst, param, paint, rect, invalidatedArea, style, true); in DrawPath()
134 const Style& style) in FillPath()
137 DrawCanvas::DoRender(dst, param, paint, rect, invalidatedArea, style, false); in FillPath()
28 DrawArc(BufferInfo& dst, ArcInfo& arcInfo, const Rect& mask, const Style& style, OpacityType opacity, uint8_t cap) DrawArc() argument
73 DrawRect(BufferInfo& dst, const Rect& rect, const Rect& dirtyRect, const Style& style, OpacityType opacity) DrawRect() argument
117 DrawPath(BufferInfo& dst, void* param, const Paint& paint, const Rect& rect, const Rect& invalidatedArea, const Style& style) DrawPath() argument
129 FillPath(BufferInfo& dst, void* param, const Paint& paint, const Rect& rect, const Rect& invalidatedArea, const Style& style) FillPath() argument
/foundation/arkui/ace_engine/adapter/ohos/capability/html/
H A Dspan_to_html.cpp41 "font-style", value.value_or(Ace::FontStyle::NORMAL) == Ace::FontStyle::NORMAL ? "normal" : "italic"); in FontStyleToHtml()
132 return ToHtmlStyleFormat("text-decoration-style", table[index].value); in TextDecorationStyleToHtml()
171 auto style = fontStyle.GetTextDecorationStyle(); in DeclarationToHtml() local
172 if (style) { in DeclarationToHtml()
173 html += TextDecorationStyleToHtml(*style); in DeclarationToHtml()
189 std::string style; in ToHtml() local
198 style += Dimension(shadow.GetOffset().GetX()).ToString() + " " + in ToHtml()
202 style.pop_back(); in ToHtml()
204 return ToHtmlStyleFormat("text-shadow", style); in ToHtml()
231 std::string style in ToHtml() local
434 std::string style = FontSizeToHtml(fontStyle.GetFontSize()); NormalStyleToHtml() local
509 LeadingMarginToHtml(const OHOS::Ace::NG::TextLineStyle& style) LeadingMarginToHtml() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dborder.h213 void SetStyle(BorderStyle style) in SetStyle() argument
215 SetLeftStyle(style); in SetStyle()
216 SetTopStyle(style); in SetStyle()
217 SetRightStyle(style); in SetStyle()
218 SetBottomStyle(style); in SetStyle()
221 void SetLeftStyle(BorderStyle style) in SetLeftStyle() argument
223 left_.SetStyle(style); in SetLeftStyle()
226 void SetTopStyle(BorderStyle style) in SetTopStyle() argument
228 top_.SetStyle(style); in SetTopStyle()
231 void SetRightStyle(BorderStyle style) in SetRightStyle() argument
236 SetBottomStyle(BorderStyle style) SetBottomStyle() argument
[all...]
/foundation/arkui/ui_lite/interfaces/kits/common/
H A Dtext.h47 #include "gfx_utils/style.h"
369 virtual void ReMeasureTextSize(const Rect& textRect, const Style& style);
371 void ReMeasureTextWidthInEllipsisMode(const Rect& textRect, const Style& style, uint16_t ellipsisIndex);
378 const Style& style,
439 * the text rectangle and style.
442 * @param style Indicates the text style.
446 uint16_t GetEllipsisIndex(const Rect& textRect, const Style& style);
524 virtual uint16_t GetLetterIndexByLinePosition(const Style& style, int16_t contentWidth,
526 virtual uint16_t GetPosXByLetterIndex(const Rect& textRect, const Style& style,
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/
H A Djs_progress_theme.h27 static void ApplyTheme(const ProgressStyle& style) in ApplyTheme() argument
34 if (style != ProgressStyle::Capsule) { in ApplyTheme()
37 if (style == ProgressStyle::Capsule) { in ApplyTheme()
56 } else if (style == ProgressStyle::Linear || style == ProgressStyle::Eclipse) { in ApplyTheme()
/foundation/graphic/graphic_2d/graphic_test/graphic_test/rs_display_effect/property_display/
H A Dappearance_outlineborder_radius_test.cpp37 Vector4<BorderStyle> style = Vector4<BorderStyle>(BorderStyle::SOLID); in setNode() local
42 node->SetOutlineStyle(style); in setNode()
104 Vector4<BorderStyle> style = Vector4<BorderStyle>(BorderStyle::SOLID); in GRAPHIC_TEST() local
122 testNodeWidth->SetOutlineStyle(style); in GRAPHIC_TEST()
134 testNodeFourWidth->SetOutlineStyle(style); in GRAPHIC_TEST()
166 Vector4<BorderStyle> style = Vector4<BorderStyle>((BorderStyle)i); in GRAPHIC_TEST() local
167 testNodeStyle->SetOutlineStyle(style); in GRAPHIC_TEST()
175 // four different style in GRAPHIC_TEST()
192 Vector4<BorderStyle> style = Vector4<BorderStyle>((BorderStyle)1); in GRAPHIC_TEST() local
202 // dash style in GRAPHIC_TEST()
243 Vector4<BorderStyle> style = Vector4<BorderStyle>((BorderStyle)1); GRAPHIC_TEST() local
312 Vector4<BorderStyle> style = Vector4<BorderStyle>((BorderStyle)styleList[i]); GRAPHIC_TEST() local
[all...]
H A Dappearance_outlineborder_test.cpp38 Vector4<BorderStyle> style = Vector4<BorderStyle>(BorderStyle::SOLID); in setNode() local
43 node->SetOutlineStyle(style); in setNode()
98 Vector4<BorderStyle> style = Vector4<BorderStyle>(BorderStyle::SOLID); in GRAPHIC_TEST() local
108 testNodeWidth->SetOutlineStyle(style); in GRAPHIC_TEST()
119 testNodeFourWidth->SetOutlineStyle(style); in GRAPHIC_TEST()
142 Vector4<BorderStyle> style = Vector4<BorderStyle>((BorderStyle)i); in GRAPHIC_TEST() local
143 testNodeStyle->SetOutlineStyle(style); in GRAPHIC_TEST()
150 // four different style in GRAPHIC_TEST()
166 Vector4<BorderStyle> style = Vector4<BorderStyle>((BorderStyle)1); in GRAPHIC_TEST() local
176 // dash style in GRAPHIC_TEST()
214 Vector4<BorderStyle> style = Vector4<BorderStyle>((BorderStyle)1); GRAPHIC_TEST() local
280 Vector4<BorderStyle> style = Vector4<BorderStyle>((BorderStyle)styleList[i]); GRAPHIC_TEST() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dshadow_theme.cpp38 Shadow ShadowTheme::GetShadow(ShadowStyle style, ColorMode colorMode) in GetShadow() argument
40 auto key = GetKeyOfShadowStyle(style, colorMode); in GetShadow()
45 auto shadowIter = validShadowStyles_.find(style); in GetShadow()
49 auto shadow = ParseShadowParam(themeStyle_, style, shadowIter->second, colorMode == ColorMode::DARK); in GetShadow()
59 uint32_t ShadowTheme::GetKeyOfShadowStyle(ShadowStyle style, ColorMode colorMode) in GetKeyOfShadowStyle() argument
61 return (static_cast<uint32_t>(colorMode) << 8) + static_cast<uint32_t>(style); // can hold 2^8 shadowStyle enums in GetKeyOfShadowStyle()
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dbadge_composed_element.cpp28 { "style", [](const BadgeComposedElement& inspector) { return inspector.GetStyle(); } }
44 std::string("style: ").append(GetStyle())); in Dump()
122 auto style = render->GetBadgeComponent(); in GetStyle() local
123 if (style) { in GetStyle()
124 jsonValue->Put("color", ConvertColorToString(style->GetBadgeTextColor()).c_str()); in GetStyle()
125 jsonValue->Put("fontSize", style->GetBadgeFontSize().ToString().c_str()); in GetStyle()
126 jsonValue->Put("badgeColor", ConvertColorToString(style->GetBadgeColor()).c_str()); in GetStyle()
127 jsonValue->Put("badgeSize", style->GetBadgeCircleSize().ToString().c_str()); in GetStyle()
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/skia_txt/
H A Dtypography_create.cpp26 std::unique_ptr<TypographyCreate> TypographyCreate::Create(const TypographyStyle& style, in Create() argument
29 return std::make_unique<AdapterTxt::TypographyCreate>(style, collection); in Create()
33 TypographyCreate::TypographyCreate(const TypographyStyle& style, in TypographyCreate() argument
36 auto paragraphStyle = Convert(style); in TypographyCreate()
41 void TypographyCreate::PushStyle(const TextStyle& style) in PushStyle() argument
44 auto txtTextStyle = Convert(style); in PushStyle()
/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_base_test_ng.cpp437 // test placeholder value and style is correct in HWTEST_F()
476 // test placeholder value and style is correct in HWTEST_F()
488 * @tc.desc: test paragraph style wordBreak attribute
501 // test paragraph style wordBreak default value in HWTEST_F()
506 // test paragraph style wordBreak value of WordBreak.NORMAL in HWTEST_F()
507 struct UpdateParagraphStyle style; in HWTEST_F() local
508 style.wordBreak = WordBreak::NORMAL; in HWTEST_F()
509 richEditorController->UpdateParagraphStyle(1, sizeof(INIT_VALUE_1), style); in HWTEST_F()
513 // test paragraph style wordBreak value of WordBreak.BREAK_ALL in HWTEST_F()
514 style in HWTEST_F()
586 struct UpdateParagraphStyle style; HWTEST_F() local
711 TextStyle style; HWTEST_F() local
1220 TextStyle style; HWTEST_F() local
1260 TextStyle style; HWTEST_F() local
1340 TextStyle style; HWTEST_F() local
1407 TextStyle style; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/
H A Dstylemgr_media_query_tdd_test.cpp398 const AppStyle *style = list->GetFirst(); in GetAppStyleCount() local
399 while (style != nullptr) { in GetAppStyleCount()
401 style = style->GetNext(); in GetAppStyleCount()
438 const AppStyle *style = styleList->GetFirst(); in GetStyleFromSelector() local
439 while (style != nullptr) { in GetStyleFromSelector()
440 const char *styleName = style->GetStyleName(); in GetStyleFromSelector()
443 return style; in GetStyleFromSelector()
446 style = style in GetStyleFromSelector()
475 GetStyleItemFromStyle(const AppStyle *style, const char *itemName) const GetStyleItemFromStyle() argument
502 const AppStyle *style = GetStyleFromSelectorList(list, selectorName); GetStyleItemByName() local
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Ddate_time_format_module.cpp137 // deal the year month day style in CreateDateTimeFormat()
139 // deal the hour minute second style in CreateDateTimeFormat()
141 // if dateRes or timeRes is not nullptr, the date style or time style is invalid in CreateDateTimeFormat()
203 // the style group is not support, format the lonely support style week or month in Format()
212 // if the style is valid, the style pattern is not support, format the date style as default style in Format()
473 SetDateStyle(jerry_value_t style) SetDateStyle() argument
529 GetMonthStyle(jerry_value_t style) GetMonthStyle() argument
571 GetStyle(jerry_value_t style, const char *attrName, const uint8_t index) GetStyle() argument
606 SetTimeStyle(jerry_value_t style) SetTimeStyle() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
H A Dsecurity_component_model_ng.cpp73 SecurityComponentElementStyle& style, in CreateNode()
81 bool isButtonVisible = (style.backgroundType != BUTTON_TYPE_NULL); in CreateNode()
88 SetDefaultBackgroundButton(buttonNode, style.backgroundType); in CreateNode()
94 if (style.icon != static_cast<int32_t>(SecurityComponentIconStyle::ICON_NULL)) { in CreateNode()
99 if (GetIconResource(style.icon, iconId)) { in CreateNode()
105 if (style.text != static_cast<int32_t>(SecurityComponentDescription::TEXT_NULL)) { in CreateNode()
111 GetTextResource(style.text, textStr); in CreateNode()
115 InitLayoutProperty(frameNode, style.text, style.icon, style in CreateNode()
72 CreateNode(const std::string& tag, int32_t nodeId, SecurityComponentElementStyle& style, const std::function<RefPtr<Pattern>(void)>& patternCreator, bool isArkuiComponent) CreateNode() argument
132 SecurityComponentElementStyle style = { CreateCommon() local
203 BorderStyleProperty style; SetDefaultBackgroundButton() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_model.h40 virtual void SetTodayStyle(const TodayStyleData& style) = 0;
41 virtual void SetWeekStyle(const WeekStyleData& style) = 0;
42 virtual void SetWorkStateStyle(const WorkStateStyleData& style) = 0;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dcalendar_model_impl.h37 void SetTodayStyle(const TodayStyleData& style) override;
38 void SetWeekStyle(const WeekStyleData& style) override;
39 void SetWorkStateStyle(const WorkStateStyleData& style) override;
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dtesting_typography_create.h34 const TestingTypographyStyle& style, std::shared_ptr<TestingFontCollection> font_collection) in CreateRosenBuilder()
41 const TestingTypographyStyle &style, std::shared_ptr<TestingFontCollection> collection) in Create()
52 virtual void PushStyle(const TestingTextStyle& style) {} in PushStyle() argument
33 CreateRosenBuilder( const TestingTypographyStyle& style, std::shared_ptr<TestingFontCollection> font_collection) CreateRosenBuilder() argument
40 Create( const TestingTypographyStyle &style, std::shared_ptr<TestingFontCollection> collection) Create() argument
/foundation/graphic/graphic_2d/rosen/modules/2d_engine/rosen_text/adapter/common/
H A Dtypography_style.cpp22 TextStyle style = { in GetTextStyle() local
33 style.fontSize = fontSize; in GetTextStyle()
36 return style; in GetTextStyle()

Completed in 13 milliseconds

12345678910>>...27