Lines Matching refs:container

22  * larger container.
37 * container, based on the gravity direction being applied. */
45 /** Push object to the top of its container, not changing its size. */
47 /** Push object to the bottom of its container, not changing its size. */
49 /** Push object to the left of its container, not changing its size. */
51 /** Push object to the right of its container, not changing its size. */
54 /** Place object in the vertical center of its container, not changing its
58 * its container. */
61 /** Place object in the horizontal center of its container, not changing its
65 * its container. */
68 /** Place the object in the center of its container in both the vertical
73 * completely fills its container. */
76 /** Flag to clip the edges of the object to its container along the
80 /** Flag to clip the edges of the object to its container along the
114 /** Push object to x-axis position at the start of its container, not changing its size. */
117 /** Push object to x-axis position at the end of its container, not changing its size. */
132 * @param container The frame of the containing space, in which the object
136 * container.
138 public static void apply(int gravity, int w, int h, Rect container, Rect outRect) {
139 apply(gravity, w, h, container, 0, 0, outRect);
149 * @param container The frame of the containing space, in which the object
153 * container.
159 public static void apply(int gravity, int w, int h, Rect container,
162 apply(absGravity, w, h, container, 0, 0, outRect);
172 * @param container The frame of the containing space, in which the object
184 * container.
186 public static void apply(int gravity, int w, int h, Rect container,
190 outRect.left = container.left
191 + ((container.right - container.left - w)/2) + xAdj;
195 if (outRect.left < container.left) {
196 outRect.left = container.left;
198 if (outRect.right > container.right) {
199 outRect.right = container.right;
204 outRect.left = container.left + xAdj;
208 if (outRect.right > container.right) {
209 outRect.right = container.right;
214 outRect.right = container.right - xAdj;
218 if (outRect.left < container.left) {
219 outRect.left = container.left;
224 outRect.left = container.left + xAdj;
225 outRect.right = container.right + xAdj;
231 outRect.top = container.top
232 + ((container.bottom - container.top - h)/2) + yAdj;
236 if (outRect.top < container.top) {
237 outRect.top = container.top;
239 if (outRect.bottom > container.bottom) {
240 outRect.bottom = container.bottom;
245 outRect.top = container.top + yAdj;
249 if (outRect.bottom > container.bottom) {
250 outRect.bottom = container.bottom;
255 outRect.bottom = container.bottom - yAdj;
259 if (outRect.top < container.top) {
260 outRect.top = container.top;
265 outRect.top = container.top + yAdj;
266 outRect.bottom = container.bottom + yAdj;
278 * @param container The frame of the containing space, in which the object
290 * container.
296 public static void apply(int gravity, int w, int h, Rect container,
299 apply(absGravity, w, h, container, xAdj, yAdj, outRect);