Home
last modified time | relevance | path

Searched refs:PixelRoundPolicy (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-pixelRound.md11 pixelRound(value: PixelRoundPolicy)
35 | value | [PixelRoundPolicy](ts-types.md#pixelroundpolicy11) | 是 | 指定当前组件边界取整策略。<br/>**说明:**<br/>该属…
H A Dts-types.md540 ## PixelRoundPolicy<sup>11+</sup>
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_content_model_ng.cpp42 constexpr uint16_t PIXEL_ROUND = static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_START) |
43 static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP) |
44 static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_END) |
45 static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_BOTTOM);
H A Dtabs_model_ng.cpp50 constexpr uint16_t PIXEL_ROUND = static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_START) |
51 static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP) |
52 static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_END) |
53 static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_BOTTOM);
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-universal-attributes-pixelRound.md11 pixelRound(value: PixelRoundPolicy)
35 | value | [PixelRoundPolicy](ts-types.md#pixelroundpolicy11) | Yes| Rounding policy for the bounds …
H A Dts-types.md540 ## PixelRoundPolicy<sup>11+</sup>
542 The **PixelRoundPolicy** type is used to describe the direction of pixel rounding at the component …
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_property.cpp256 if (pixelRoundFlag_ & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_START)) { in PixelRoundToJsonValue()
258 } else if (pixelRoundFlag_ & static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_START)) { in PixelRoundToJsonValue()
263 if (pixelRoundFlag_ & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_TOP)) { in PixelRoundToJsonValue()
265 } else if (pixelRoundFlag_ & static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP)) { in PixelRoundToJsonValue()
270 if (pixelRoundFlag_ & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_END)) { in PixelRoundToJsonValue()
272 } else if (pixelRoundFlag_ & static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_END)) { in PixelRoundToJsonValue()
277 if (pixelRoundFlag_ & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_BOTTOM)) { in PixelRoundToJsonValue()
279 } else if (pixelRoundFlag_ & static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_BOTTOM)) { in PixelRoundToJsonValue()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_render_context.cpp3264 bool ceilLeft = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_START); in RoundToPixelGrid()
3265 bool floorLeft = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_START); in RoundToPixelGrid()
3266 bool ceilTop = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_TOP); in RoundToPixelGrid()
3267 bool floorTop = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP); in RoundToPixelGrid()
3268 bool ceilRight = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_END); in RoundToPixelGrid()
3269 bool floorRight = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_END); in RoundToPixelGrid()
3370 bool ceilLeft = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_START); in OnePixelRounding()
3373 bool ceilTop = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_TOP); in OnePixelRounding()
3374 bool floorTop = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP); in OnePixelRounding()
3376 bool ceilRight = flag & static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_END); in OnePixelRounding()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_common_modifier.cpp5899 PixelRoundPolicy ret = static_cast<PixelRoundPolicy>(0); in ConvertCeilPixelRoundPolicy()
5902 ret = PixelRoundPolicy::FORCE_CEIL_START; in ConvertCeilPixelRoundPolicy()
5905 ret = PixelRoundPolicy::FORCE_CEIL_TOP; in ConvertCeilPixelRoundPolicy()
5908 ret = PixelRoundPolicy::FORCE_CEIL_END; in ConvertCeilPixelRoundPolicy()
5911 ret = PixelRoundPolicy::FORCE_CEIL_BOTTOM; in ConvertCeilPixelRoundPolicy()
5921 PixelRoundPolicy ret = static_cast<PixelRoundPolicy>(0); in ConvertFloorPixelRoundPolicy()
5924 ret = PixelRoundPolicy::FORCE_FLOOR_START; in ConvertFloorPixelRoundPolicy()
5927 ret = PixelRoundPolicy::FORCE_FLOOR_TOP; in ConvertFloorPixelRoundPolicy()
5930 ret = PixelRoundPolicy::FORCE_FLOOR_END; in ConvertFloorPixelRoundPolicy()
5953 return PixelRoundPolicy::ALL_FORCE_ROUND; in ConvertNoPixelRoundPolicy()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dconstants.h463 enum class PixelRoundPolicy { enum
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/search/
H A Dsearch_layout_algorithm.cpp300 auto pixelRound = static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP) | in SearchButtonMeasure()
301 static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_BOTTOM); in SearchButtonMeasure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_view_abstract.cpp2239 value |= static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_START); in JsPixelRound()
2241 value |= static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_START); in JsPixelRound()
2243 value |= static_cast<uint16_t>(PixelRoundPolicy::NO_FORCE_ROUND_START); in JsPixelRound()
2250 value |= static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_TOP); in JsPixelRound()
2252 value |= static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP); in JsPixelRound()
2254 value |= static_cast<uint16_t>(PixelRoundPolicy::NO_FORCE_ROUND_TOP); in JsPixelRound()
2261 value |= static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_END); in JsPixelRound()
2263 value |= static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_END); in JsPixelRound()
2265 value |= static_cast<uint16_t>(PixelRoundPolicy::NO_FORCE_ROUND_END); in JsPixelRound()
2272 value |= static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_BOTTOM); in JsPixelRound()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_pattern.cpp89 constexpr uint16_t CAPTURE_PIXEL_ROUND_VALUE = static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_…
90 … static_cast<uint16_t>(PixelRoundPolicy::FORCE_FLOOR_TOP) |
91 … static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_END) |
92 … static_cast<uint16_t>(PixelRoundPolicy::FORCE_CEIL_BOTTOM);
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/
H A DArkComponent.ts3146 class PixelRoundModifier extends ModifierWithKey<PixelRoundPolicy> {
3147 constructor(value: PixelRoundPolicy) {
4661 pixelRound(value:PixelRoundPolicy): this {