MCPcopy Create free account
hub / github.com/OneUIProject/oneui-core / add

Method add

core/src/main/java/androidx/core/graphics/Insets.java:87–90  ·  view source on GitHub ↗

Add two Insets. @param a The first Insets to add. @param b The second Insets to add. @return a + b, i. e. all insets on every side are added together.

(@NonNull Insets a, @NonNull Insets b)

Source from the content-addressed store, hash-verified

85 * @return a + b, i. e. all insets on every side are added together.
86 */
87 @NonNull
88 public static Insets add(@NonNull Insets a, @NonNull Insets b) {
89 return Insets.of(a.left + b.left, a.top + b.top, a.right + b.right, a.bottom + b.bottom);
90 }
91
92 /**
93 * Subtract two Insets.

Callers

nothing calls this directly

Calls 1

ofMethod · 0.95

Tested by

no test coverage detected