OffsetSuppliedPos

open class OffsetSuppliedPos(p: Int, offset: Supplier<Int>) : Pos

A Pos wth an offset supplier. Mutation of this pos will alter the offset.

Author

fzzyhmstrs

Since

0.7.2

Parameters

p

Int - the offset compared to the parent

offset

Supplier - the supplied offset compared to the absolute position

Constructors

Link copied to clipboard
constructor(p: Int, offset: Supplier<Int>)

Functions

Link copied to clipboard
open override fun dec(amount: Int)

Decrements this position by the given amount

Link copied to clipboard
open operator fun div(other: Pos): Int
Link copied to clipboard
open override fun get(): Int

Returns the position of this pos

Link copied to clipboard
open override fun inc(amount: Int)

Increments this position by the given amount

Link copied to clipboard
open operator fun minus(other: Pos): Int
Link copied to clipboard
open operator fun plus(other: Pos): Int
Link copied to clipboard
open operator fun rem(other: Pos): Int
Link copied to clipboard
open override fun set(new: Int)

Sets the position of this pos

Link copied to clipboard
open operator fun times(other: Pos): Int
Link copied to clipboard
open override fun toString(): String