Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlayout_manager.cpp30 … { DIR_HORIZONTAL, { { DIR_FORWARD, KeyDirection::DOWN }, { DIR_REVERSE, KeyDirection::UP } } },
31 … { DIR_VERTICAL, { { DIR_FORWARD, KeyDirection::RIGHT }, { DIR_REVERSE, KeyDirection::LEFT } } }
36 … { DIR_HORIZONTAL, { { DIR_FORWARD, KeyDirection::RIGHT }, { DIR_REVERSE, KeyDirection::LEFT } } },
37 … { DIR_VERTICAL, { { DIR_FORWARD, KeyDirection::DOWN }, { DIR_REVERSE, KeyDirection::UP } } }
42 … { DIR_HORIZONTAL, { { DIR_FORWARD, KeyDirection::UP }, { DIR_REVERSE, KeyDirection::DOWN } } },
43 … { DIR_VERTICAL, { { DIR_FORWARD, KeyDirection::RIGHT }, { DIR_REVERSE, KeyDirection::LEFT } } }
49 … { DIR_VERTICAL, { { DIR_FORWARD, KeyDirection::UP }, { DIR_REVERSE, KeyDirection::DOWN } } }
58 … { DIR_HORIZONTAL, { { DIR_FORWARD, KeyDirection::UP }, { DIR_REVERSE, KeyDirection::DOWN } } },
59 … { DIR_VERTICAL, { { DIR_FORWARD, KeyDirection::RIGHT }, { DIR_REVERSE, KeyDirection::LEFT } } }
65 … { DIR_VERTICAL, { { DIR_FORWARD, KeyDirection::DOWN }, { DIR_REVERSE, KeyDirection::UP } } }
[all …]
H A Dgrid_layout_manager.cpp331 int32_t GridLayoutManager::focusMove(KeyDirection direction) in focusMove()
342 case KeyDirection::UP: in focusMove()
343 case KeyDirection::DOWN: { in focusMove()
344 … auto next = renderList_.GetItemByIndex(direction == KeyDirection::UP ? --index : ++index); in focusMove()
351 … next = renderList_.GetItemByIndex(direction == KeyDirection::UP ? --index : ++index); in focusMove()
355 case KeyDirection::LEFT: in focusMove()
363 case KeyDirection::RIGHT: in focusMove()
H A Dgrid_layout_manager.h25 typedef std::map<KeyDirection, int32_t> RelationMap;
41 int32_t focusMove(KeyDirection direction) override;
H A Dlayout_manager.h44 extern const std::map<bool, std::map<FlexDirection, std::map<bool, std::map<bool, KeyDirection>>>> …
64 virtual int32_t focusMove(KeyDirection key) = 0;
82 KeyDirection key = DIRECTION_MAP.at(rightToLeft_).at(direction_).at(vertical).at(reverse); in RequestNextFocus()
H A Dlist_layout_manager.h49 int32_t focusMove(KeyDirection direction) override;
H A Drender_list_item_group.cpp681 KeyDirection key = DIRECTION_MAP.at(rightToLeft_).at(direction_).at(vertical).at(reverse); in GetNextFocusIndex()
683 case KeyDirection::UP: in GetNextFocusIndex()
685 case KeyDirection::DOWN: { in GetNextFocusIndex()
H A Dlist_layout_manager.cpp513 int32_t ListLayoutManager::focusMove(KeyDirection direction) in focusMove()
517 case KeyDirection::UP: in focusMove()
518 case KeyDirection::DOWN: { in focusMove()
519 … auto next = renderList_.GetItemByIndex(direction == KeyDirection::UP ? --index : ++index); in focusMove()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dfocusable_grid.cpp34 const std::map<bool, std::map<bool, KeyDirection>> DIRECTION_MAP = {
35 { HORIZONTAL, { { FORWARD, KeyDirection::RIGHT }, { REVERSE, KeyDirection::LEFT } } },
36 { VERTICAL, { { FORWARD, KeyDirection::DOWN }, { REVERSE, KeyDirection::UP } } }
43 KeyDirection key = DIRECTION_MAP.at(vertical).at(reverse); in RequestNextFocus()
52 int32_t FocusableGrid::FocusMove(KeyDirection direction) in FocusMove()
59 case KeyDirection::UP: in FocusMove()
62 case KeyDirection::DOWN: in FocusMove()
65 case KeyDirection::LEFT: in FocusMove()
68 case KeyDirection::RIGHT: in FocusMove()
98 if (next < firstDayIndex_ && direction == KeyDirection::UP) { in FocusMove()
H A Dfocusable_grid.h46 int32_t FocusMove(KeyDirection direction);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid/
H A Drender_grid.cpp47 { HORIZONTAL, { { FORWARD, KeyDirection::DOWN }, { REVERSE, KeyDirection::UP } } },
48 { VERTICAL, { { FORWARD, KeyDirection::RIGHT }, { REVERSE, KeyDirection::LEFT } } }
53 { HORIZONTAL, { { FORWARD, KeyDirection::RIGHT }, { REVERSE, KeyDirection::LEFT } } },
54 { VERTICAL, { { FORWARD, KeyDirection::DOWN }, { REVERSE, KeyDirection::UP } } }
59 { HORIZONTAL, { { FORWARD, KeyDirection::UP }, { REVERSE, KeyDirection::DOWN } } },
60 { VERTICAL, { { FORWARD, KeyDirection::RIGHT }, { REVERSE, KeyDirection::LEFT } } }
65 { HORIZONTAL, { { FORWARD, KeyDirection::RIGHT }, { REVERSE, KeyDirection::LEFT } } },
66 { VERTICAL, { { FORWARD, KeyDirection::UP }, { REVERSE, KeyDirection::DOWN } } }
424 case KeyDirection::UP: in RequestNextFocus()
523 if ((keyDirection == KeyDirection::LEFT || keyDirection == KeyDirection::RIGHT) && in FocusMove()
[all …]
H A Drender_grid.h31 typedef std::map<KeyDirection, int32_t> RelationMap;
149 …e(const Offset& position, const std::function<bool(int32_t)>& condition, KeyDirection keyDirection,
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid_layout/
H A Drender_grid_layout.cpp60 const std::map<bool, std::map<bool, std::map<bool, KeyDirection>>> DIRECTION_MAP = {
62 { { HORIZONTAL, { { FORWARD, KeyDirection::RIGHT }, { REVERSE, KeyDirection::LEFT } } },
63 { VERTICAL, { { FORWARD, KeyDirection::DOWN }, { REVERSE, KeyDirection::UP } } } } },
65 { { HORIZONTAL, { { FORWARD, KeyDirection::LEFT }, { REVERSE, KeyDirection::RIGHT } } },
66 { VERTICAL, { { FORWARD, KeyDirection::DOWN }, { REVERSE, KeyDirection::UP } } } } }
156 KeyDirection key = DIRECTION_MAP.at(rightToLeft_).at(vertical).at(reverse); in RequestNextFocus()
165 int32_t RenderGridLayout::focusMove(KeyDirection direction) in focusMove()
172 case KeyDirection::UP: in focusMove()
175 case KeyDirection::DOWN: in focusMove()
178 case KeyDirection::LEFT: in focusMove()
[all …]
H A Drender_grid_layout.h256 int32_t focusMove(KeyDirection direction);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/layout/
H A Dconstants.h456 enum class KeyDirection { enum