Home
last modified time | relevance | path

Searched refs:newBounds (Results 1 – 10 of 10) sorted by relevance

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/
DResizeHandler.java107 protected void snapVertical(Segment vEdge, int x, Rect newBounds) { in snapVertical() argument
110 int margin = mSnap ? 0 : abs(newBounds.x - x); in snapVertical()
114 newBounds.w += newBounds.x - x; in snapVertical()
115 newBounds.x = x; in snapVertical()
118 int margin = mSnap ? 0 : abs(newBounds.x - (x - newBounds.w)); in snapVertical()
122 newBounds.w = x - newBounds.x; in snapVertical()
130 protected void snapHorizontal(Segment hEdge, int y, Rect newBounds) { in snapHorizontal() argument
133 int margin = mSnap ? 0 : abs(newBounds.y - y); in snapHorizontal()
137 newBounds.h += newBounds.y - y; in snapHorizontal()
138 newBounds.y = y; in snapHorizontal()
[all …]
DMoveHandler.java114 protected void snapVertical(Segment vEdge, int x, Rect newBounds) { in snapVertical() argument
117 int margin = !mSnap ? 0 : abs(newBounds.x - x); in snapVertical()
121 newBounds.x = x; in snapVertical()
124 int margin = !mSnap ? 0 : abs(newBounds.x - (x - newBounds.w)); in snapVertical()
128 newBounds.x = x - newBounds.w; in snapVertical()
131 newBounds.x = x - newBounds.w / 2; in snapVertical()
139 protected void snapHorizontal(Segment hEdge, int y, Rect newBounds) { in snapHorizontal() argument
142 int margin = !mSnap ? 0 : abs(newBounds.y - y); in snapHorizontal()
146 newBounds.y = y; in snapHorizontal()
149 int margin = !mSnap ? 0 : abs(newBounds.y - (y - newBounds.h)); in snapHorizontal()
[all …]
DGuidelineHandler.java387 protected void snapVertical(Segment vEdge, int x, Rect newBounds) { in snapVertical() argument
388 newBounds.x = x; in snapVertical()
391 protected void snapHorizontal(Segment hEdge, int y, Rect newBounds) { in snapHorizontal() argument
392 newBounds.y = y; in snapHorizontal()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/
DAbsoluteLayoutRule.java225 Rect previousBounds, Rect newBounds, SegmentType horizontalEdge, in setNewSizeBounds() argument
227 super.setNewSizeBounds(resizeState, node, layout, previousBounds, newBounds, in setNewSizeBounds()
229 if (verticalEdge != null && newBounds.x != previousBounds.x) { in setNewSizeBounds()
232 mRulesEngine.pxToDp(newBounds.x - node.getParent().getBounds().x))); in setNewSizeBounds()
234 if (horizontalEdge != null && newBounds.y != previousBounds.y) { in setNewSizeBounds()
237 mRulesEngine.pxToDp(newBounds.y - node.getParent().getBounds().y))); in setNewSizeBounds()
243 Rect newBounds, SegmentType horizontalEdge, SegmentType verticalEdge) { in getResizeUpdateMessage() argument
246 return super.getResizeUpdateMessage(resizeState, child, parent, newBounds, in getResizeUpdateMessage()
250 mRulesEngine.pxToDp(newBounds.x - parentBounds.x), in getResizeUpdateMessage()
251 mRulesEngine.pxToDp(newBounds.y - parentBounds.y), in getResizeUpdateMessage()
DBaseLayoutRule.java753 @NonNull INode parent, @NonNull Rect newBounds, int modifierMask) {
755 state.bounds = newBounds;
764 if (Math.abs(newBounds.h - b.h) < maxMatchDistance) {
767 newBounds.y += newBounds.h - b.h;
769 newBounds.h = b.h;
773 if (Math.abs(newBounds.w - b.w) < maxMatchDistance) {
776 newBounds.x += newBounds.w - b.w;
778 newBounds.w = b.w;
788 state.horizontalFillSegment = new Segment(parentBounds.y2(), newBounds.x,
789 newBounds.x2(),
[all …]
DLinearLayoutRule.java871 Rect oldBounds, Rect newBounds, SegmentType horizontalEdge,
884 if (oldBounds.equals(newBounds)) {
896 if (newBounds.w == oldBounds.w) {
906 if (newBounds.h == oldBounds.h) {
923 if (horizontalEdge != null && newBounds.h < nodePreferredSize.h ||
924 verticalEdge != null && newBounds.w < nodePreferredSize.w) {
939 if (newBounds.h > nodeBounds.h) {
940 missing = newBounds.h - nodeBounds.h;
941 } else if (newBounds.h > resizeState.wrapBounds.h) {
947 missing = newBounds.h - resizeState.wrapBounds.h;
[all …]
DRelativeLayoutRule.java277 @NonNull INode parent, @NonNull Rect newBounds, in onResizeUpdate() argument
284 state.updateResize(feedback, child, newBounds, modifierMask); in onResizeUpdate()
289 @NonNull INode parent, final @NonNull Rect newBounds) { in onResizeEnd() argument
DGridLayoutRule.java462 Rect oldBounds, Rect newBounds, SegmentType horizontalEdge, SegmentType verticalEdge) { in setNewSizeBounds() argument
494 super.setNewSizeBounds(state, node, layout, oldBounds, newBounds, horizontalEdge, in setNewSizeBounds()
524 Rect newBounds, SegmentType horizontalEdge, SegmentType verticalEdge) { in getResizeUpdateMessage() argument
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/
DResizeGesture.java80 Rect newBounds = getNewBounds(pos); in begin() local
86 mFeedback = rulesEngine.callOnResizeBegin(mChildNode, mParentNode, newBounds, in begin()
110 Rect newBounds = getNewBounds(pos); in update() local
112 rulesEngine.callOnResizeUpdate(mFeedback, mChildNode, mParentNode, newBounds, in update()
123 Rect newBounds = getNewBounds(pos); in end() local
124 rulesEngine.callOnResizeEnd(mFeedback, mChildNode, mParentNode, newBounds); in end()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DRulesEngine.java443 public DropFeedback callOnResizeBegin(NodeProxy child, NodeProxy parent, Rect newBounds, in callOnResizeBegin() argument
462 Rect newBounds, int modifierMask) { in callOnResizeUpdate() argument
467 rule.onResizeUpdate(feedback, child, parent, newBounds, modifierMask); in callOnResizeUpdate()
476 Rect newBounds) { in callOnResizeEnd() argument
481 rule.onResizeEnd(feedback, child, parent, newBounds); in callOnResizeEnd()