Home | History | Annotate | Download | only in view

Lines Matching defs:WindowInsets

25  * <p>WindowInsets are immutable and may be expanded to include more inset types in the future.
26 * To adjust insets, use one of the supplied clone methods to obtain a new WindowInsets instance
30 * @see View#onApplyWindowInsets(WindowInsets)
32 public final class WindowInsets {
52 public static final WindowInsets CONSUMED;
55 CONSUMED = new WindowInsets(null, null, null, false);
59 public WindowInsets(Rect systemWindowInsets, Rect windowDecorInsets, Rect stableInsets,
74 * Construct a new WindowInsets, copying all values from a source WindowInsets.
78 public WindowInsets(WindowInsets src) {
89 public WindowInsets(Rect systemWindowInsets) {
220 * Returns true if this WindowInsets has nonzero system window insets.
234 * Returns true if this WindowInsets has nonzero window decor insets.
249 * Returns true if this WindowInsets has any nonzero insets.
289 * Returns a copy of this WindowInsets with the system window insets fully consumed.
291 * @return A modified copy of this WindowInsets
293 public WindowInsets consumeSystemWindowInsets() {
294 final WindowInsets result = new WindowInsets(this);
301 * Returns a copy of this WindowInsets with selected system window insets fully consumed.
307 * @return A modified copy of this WindowInsets
310 public WindowInsets consumeSystemWindowInsets(boolean left, boolean top,
313 final WindowInsets result = new WindowInsets(this);
325 * Returns a copy of this WindowInsets with selected system window insets replaced
332 * @return A modified copy of this WindowInsets
334 public WindowInsets replaceSystemWindowInsets(int left, int top,
336 final WindowInsets result = new WindowInsets(this);
342 * Returns a copy of this WindowInsets with selected system window insets replaced
347 * @return A modified copy of this WindowInsets
349 public WindowInsets replaceSystemWindowInsets(Rect systemWindowInsets) {
350 final WindowInsets result = new WindowInsets(this);
358 public WindowInsets consumeWindowDecorInsets() {
359 final WindowInsets result = new WindowInsets(this);
368 public WindowInsets consumeWindowDecorInsets(boolean left, boolean top,
371 final WindowInsets result = new WindowInsets(this);
384 public WindowInsets replaceWindowDecorInsets(int left, int top, int right, int bottom) {
385 final WindowInsets result = new WindowInsets(this);
451 * Returns true if this WindowInsets has nonzero stable insets.
467 * Returns a copy of this WindowInsets with the stable insets fully consumed.
469 * @return A modified copy of this WindowInsets
471 public WindowInsets consumeStableInsets() {
472 final WindowInsets result = new WindowInsets(this);
480 return "WindowInsets{systemWindowInsets=" + mSystemWindowInsets