CPInsets

final case class CPInsets(top: Int, left: Int, bottom: Int, right: Int)

Insets container as 4-int tuple.

Value parameters:
bottom

Bottom inset.

left

Left inset.

right

Right inset.

top

Top inset.

Companion:
object
Source:
CPInsets.scala
trait Product
trait Equals
trait Serializable
class Object
trait Matchable
class Any

Value members

Constructors

def this(i: Int)

Creates 4-int tuple with the same value.

Creates 4-int tuple with the same value.

Value parameters:
i

Single value.

Source:
CPInt4.scala
def this(t1: CPInt2, t2: CPInt2)

Creates 4-int tuple from two 2-int tuples.

Creates 4-int tuple from two 2-int tuples.

Value parameters:
t1

Tuple for 1st and 2nd value.

t2

Tuple for 3rd and 4th value.

Source:
CPInt4.scala
def this(t1: CPInt2, i3: Int, i4: Int)

Creates 4-int tuple from given parameters.

Creates 4-int tuple from given parameters.

Value parameters:
i3

3rd value.

i4

4th value.

t1

Tuple for 1st and 2nd values.

Source:
CPInt4.scala
def this(i1: Int, i2: Int, t2: CPInt2)

Creates 4-int tuple from given parameters.

Creates 4-int tuple from given parameters.

Value parameters:
i1

1st value.

i2

2rd value.

t2

3rd and 4th values.

Source:
CPInt4.scala
def this(hor: Int, vert: Int)

Creates new insets container.

Creates new insets container.

Value parameters:
hor

Left and right inset.

vert

Top and bottom inset.

Source:
CPInsets.scala
def this(d: Int)

Creates new insets container.

Creates new insets container.

Value parameters:
d

Top, left, bottom and right inset.

Source:
CPInsets.scala

Inherited methods

@targetName("multiInt")
inline def *(x: Int): CPInt4

Multiplies given value with each member of this tuple.

Multiplies given value with each member of this tuple.

Value parameters:
x

Value to multiple by.

Returns:

New tuple as a result of multiplication.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("multiIntTuple")
inline def *(x: CPIntTuple[CPInt4]): CPInt4

Multiple two tuples by multiplying their corresponding values.

Multiple two tuples by multiplying their corresponding values.

Value parameters:
x

Other tuple to multiply with.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("multiInt")
inline def *(x: Int): CPInsets

Multiplies given value with each member of this tuple.

Multiplies given value with each member of this tuple.

Value parameters:
x

Value to multiple by.

Returns:

New tuple as a result of multiplication.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("multiIntTuple")
inline def *(x: CPIntTuple[CPInsets]): CPInsets

Multiple two tuples by multiplying their corresponding values.

Multiple two tuples by multiplying their corresponding values.

Value parameters:
x

Other tuple to multiply with.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("plusInt")
inline def +(x: Int): CPInt4

Adds given value to each member of this tuple.

Adds given value to each member of this tuple.

Value parameters:
x

Value to add.

Returns:

New tuple as a result of addition.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("plusIntTuple")
inline def +(x: CPIntTuple[_]): CPInt4

Adds two tuples by adding their corresponding values.

Adds two tuples by adding their corresponding values.

Value parameters:
x

Tuple to add.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("plusInt")
inline def +(x: Int): CPInsets

Adds given value to each member of this tuple.

Adds given value to each member of this tuple.

Value parameters:
x

Value to add.

Returns:

New tuple as a result of addition.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("plusIntTuple")
inline def +(x: CPIntTuple[_]): CPInsets

Adds two tuples by adding their corresponding values.

Adds two tuples by adding their corresponding values.

Value parameters:
x

Tuple to add.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("minusInt")
inline def -(x: Int): CPInt4

Subtracts given value from each member of this tuple.

Subtracts given value from each member of this tuple.

Value parameters:
x

Value to subtract.

Returns:

New tuple as a result of subtraction.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("minusIntTuple")
inline def -(x: CPIntTuple[CPInt4]): CPInt4

Subtracts given tuple from this one by subtracting their corresponding values.

Subtracts given tuple from this one by subtracting their corresponding values.

Value parameters:
x

Tuple to subtract.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("minusInt")
inline def -(x: Int): CPInsets

Subtracts given value from each member of this tuple.

Subtracts given value from each member of this tuple.

Value parameters:
x

Value to subtract.

Returns:

New tuple as a result of subtraction.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("minusIntTuple")
inline def -(x: CPIntTuple[CPInsets]): CPInsets

Subtracts given tuple from this one by subtracting their corresponding values.

Subtracts given tuple from this one by subtracting their corresponding values.

Value parameters:
x

Tuple to subtract.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("divideInt")
inline def /(x: Int): CPInt4

Divides each member of this tuple by the given value.

Divides each member of this tuple by the given value.

Value parameters:
x

Value to divide by.

Returns:

New tuple as a result of division.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("divideIntTuple")
inline def /(x: CPIntTuple[CPInt4]): CPInt4

Device this tuple by the given tuple by dividing their corresponding values.

Device this tuple by the given tuple by dividing their corresponding values.

Value parameters:
x

Other tuple to divide by.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("divideInt")
inline def /(x: Int): CPInsets

Divides each member of this tuple by the given value.

Divides each member of this tuple by the given value.

Value parameters:
x

Value to divide by.

Returns:

New tuple as a result of division.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("divideIntTuple")
inline def /(x: CPIntTuple[CPInsets]): CPInsets

Device this tuple by the given tuple by dividing their corresponding values.

Device this tuple by the given tuple by dividing their corresponding values.

Value parameters:
x

Other tuple to divide by.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
def <(that: CPInt4): Boolean
Inherited from:
Ordered
@targetName("lessInt")
inline def <(x: Int): Boolean

Less-then '<' operator for int.

Less-then '<' operator for int.

Value parameters:
x

Other tuple to compare.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("lessTuple")
inline def <(x: CPIntTuple[_]): Boolean

Less-then '<' operator for tuples.

Less-then '<' operator for tuples.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("lessInt")
inline def <(x: Int): Boolean

Less-then '<' operator for int.

Less-then '<' operator for int.

Value parameters:
x

Other tuple to compare.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("lessTuple")
inline def <(x: CPIntTuple[_]): Boolean

Less-then '<' operator for tuples.

Less-then '<' operator for tuples.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
def <=(that: CPInt4): Boolean
Inherited from:
Ordered
@targetName("lessThenOrEqualTuple")
inline def <=(x: CPIntTuple[_]): Boolean

Less-then-or-equal '<=' operator for tuples.

Less-then-or-equal '<=' operator for tuples.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("lessThenOrEqualInt")
inline def <=(x: Int): Boolean

Less-then-or-equal '<=' operator for int.

Less-then-or-equal '<=' operator for int.

Value parameters:
x

Other tuple to compare.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("lessThenOrEqualTuple")
inline def <=(x: CPIntTuple[_]): Boolean

Less-then-or-equal '<=' operator for tuples.

Less-then-or-equal '<=' operator for tuples.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("lessThenOrEqualInt")
inline def <=(x: Int): Boolean

Less-then-or-equal '<=' operator for int.

Less-then-or-equal '<=' operator for int.

Value parameters:
x

Other tuple to compare.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
def >(that: CPInt4): Boolean
Inherited from:
Ordered
@targetName("greaterTuple")
inline def >(x: CPIntTuple[_]): Boolean

Greater-then '>' operator for tuples.

Greater-then '>' operator for tuples.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("greaterInt")
inline def >(x: Int): Boolean

Greater-then '>' operator for int.

Greater-then '>' operator for int.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("greaterTuple")
inline def >(x: CPIntTuple[_]): Boolean

Greater-then '>' operator for tuples.

Greater-then '>' operator for tuples.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("greaterInt")
inline def >(x: Int): Boolean

Greater-then '>' operator for int.

Greater-then '>' operator for int.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
def >=(that: CPInt4): Boolean
Inherited from:
Ordered
@targetName("greaterThenOrEqualTuple")
inline def >=(x: CPIntTuple[_]): Boolean

Greater-then-or-equal '>=' operator for tuples.

Greater-then-or-equal '>=' operator for tuples.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("greaterThenOrEqualInt")
inline def >=(x: Int): Boolean

Greater-then-or-equal '>=' operator for int.

Greater-then-or-equal '>=' operator for int.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("greaterThenOrEqualTuple")
inline def >=(x: CPIntTuple[_]): Boolean

Greater-then-or-equal '>=' operator for tuples.

Greater-then-or-equal '>=' operator for tuples.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
@targetName("greaterThenOrEqualInt")
inline def >=(x: Int): Boolean

Greater-then-or-equal '>=' operator for int.

Greater-then-or-equal '>=' operator for int.

Value parameters:
x

Other tuple to compare.

Note:

Tuples must have the same arity.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
def compareTo(that: CPInt4): Int
Inherited from:
Ordered
inline def copy: CPInt4

Creates a copy of this tuple.

Creates a copy of this tuple.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def copy: CPInsets

Creates a copy of this tuple.

Creates a copy of this tuple.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
override def equals(obj: Any): Boolean
Definition Classes
CPIntTuple -> Any
Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def isOne: Boolean

Tests whether all values in this tuple are one.

Tests whether all values in this tuple are one.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def isOne: Boolean

Tests whether all values in this tuple are one.

Tests whether all values in this tuple are one.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def isPositive: Boolean

Checks if this tuple contains only positive (> 0) numbers.

Checks if this tuple contains only positive (> 0) numbers.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def isPositive: Boolean

Checks if this tuple contains only positive (> 0) numbers.

Checks if this tuple contains only positive (> 0) numbers.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def isWhole: Boolean

Checks if this tuple contains only whole (>= 0) numbers.

Checks if this tuple contains only whole (>= 0) numbers.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def isWhole: Boolean

Checks if this tuple contains only whole (>= 0) numbers.

Checks if this tuple contains only whole (>= 0) numbers.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def isZero: Boolean

Tests whether all values in this tuple are zero.

Tests whether all values in this tuple are zero.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def isZero: Boolean

Tests whether all values in this tuple are zero.

Tests whether all values in this tuple are zero.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def mapInt(f: Int => Int): CPInt4

Maps this tuple using given function.

Maps this tuple using given function.

Value parameters:
f

Mapping function.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
inline def mapInt(f: Int => Int): CPInsets

Maps this tuple using given function.

Maps this tuple using given function.

Value parameters:
f

Mapping function.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
override def toString: String
Definition Classes
CPIntTuple -> Any
Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala

Concrete fields

val horOffset: Int

Total horizontal offset (left + right).

Total horizontal offset (left + right).

Source:
CPInsets.scala
val i1: Int
val i2: Int
val i3: Int
val i4: Int
val verOffset: Int

Total vertical offset (top + bottom).

Total vertical offset (top + bottom).

Source:
CPInsets.scala

Inherited fields

val arity: Int

Arity of this tuple.

Arity of this tuple.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
val arity: Int

Arity of this tuple.

Arity of this tuple.

Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
val ints: Int*
Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala
val ints: Int*
Inherited from:
CPIntTuple (hidden)
Source:
CPIntTuple.scala