Lines Matching refs:position
75 // - position: Whether the rectangle is positioned left, right, over or under
78 // opposite the position direction (if the rectangle is left or right along
80 // The rectangle's position is calculated by dividing the space in areas defined
83 // part of the bounds with the |reference|, the |rectangle| position in set to
84 // the more suitable neighboring position (e.g. if |rectangle| is completely
86 // recalculated with the new position. This is to handle case where the
124 ash::DisplayLayout::Position position;
126 position =
129 position =
133 // If the rectangle with the calculated position would not have common side
134 // with the reference, try to position it so it shares another edge with the
139 position = ash::DisplayLayout::BOTTOM;
142 position = ash::DisplayLayout::TOP;
147 position = ash::DisplayLayout::RIGHT;
150 position = ash::DisplayLayout::LEFT;
154 if (position == ash::DisplayLayout::LEFT ||
155 position == ash::DisplayLayout::RIGHT) {
156 return ash::DisplayLayout::FromInts(position, rectangle.y());
158 return ash::DisplayLayout::FromInts(position, rectangle.x());