MultiRect

Created by svennahler on 17.09.16.

open class MultiRect : Recyclable, Resettable

Functions

addMargin
Link copied to clipboard
open fun addMargin(margin: Float): MultiRect
open fun addMargin(marginX: Float, marginY: Float): MultiRect
open fun addMargin(marginLeft: Float, marginTop: Float, marginRight: Float, marginBottom: Float): MultiRect
calculateAspect
Link copied to clipboard
open fun calculateAspect(): Double
ceilToMultiOf8
Link copied to clipboard
open fun ceilToMultiOf8(number: Int): Int
finalize
Link copied to clipboard
open fun finalize()
flipHorizontal
Link copied to clipboard
open fun flipHorizontal()
flipVertical
Link copied to clipboard
open fun flipVertical()
forcedRecycle
Link copied to clipboard
open fun forcedRecycle()
generateCenteredRect
Link copied to clipboard

Gets the rectangular position of a Bitmap if it were placed inside a View with scale type set to .

open fun generateCenteredRect(imageWidth: Double, imageHeight: Double, bounds: MultiRect): MultiRect
open fun generateCenteredRect(imageWidth: Double, imageHeight: Double, viewWidth: Double, viewHeight: Double): MultiRect
open fun generateCenteredRect(output: MultiRect, imageWidth: Double, imageHeight: Double, bounds: MultiRect): MultiRect
open fun generateCenteredRect(output: MultiRect, imageWidth: Double, imageHeight: Double, viewWidth: Double, viewHeight: Double): MultiRect
open fun generateCenteredRect(output: MultiRect, imageWidth: Double, imageHeight: Double, viewWidth: Double, viewHeight: Double, fitInside: Boolean): MultiRect
getAlsoRecyclable
Link copied to clipboard
abstract fun getAlsoRecyclable(): Recyclable
getAspect
Link copied to clipboard
open fun getAspect(): Double
getEdgePos
Link copied to clipboard
open fun getEdgePos(edge: RectEdge): Array<Float>
getEdgePosX
Link copied to clipboard
open fun getEdgePosX(edge: RectEdge): Float
getEdgePosY
Link copied to clipboard
open fun getEdgePosY(edge: RectEdge): Float
getEdges
Link copied to clipboard
open fun getEdges(rect: Rect): Array<Float>
open fun getEdges(rect: RectF): Array<Float>
open fun getEdges(shape: Array<Float>): MultiRect
open fun getEdges(rect: Rect, shape: Array<Float>)
open fun getEdges(rect: RectF, shape: Array<Float>)
open fun getEdges(shape: Array<Float>, doFlip: Boolean): MultiRect
open fun getEdges(shape: Array<Float>, doFlip: Boolean, rotation: Int): MultiRect
getHeight
Link copied to clipboard
open fun getHeight(): Float
getWidth
Link copied to clipboard
open fun getWidth(): Float
hasFixedAspectRation
Link copied to clipboard
open fun hasFixedAspectRation(): Boolean
inset
Link copied to clipboard
open fun inset(dx: Float, dy: Float)
intersect
Link copied to clipboard
open fun intersect(r: RectF): Boolean
open fun intersect(left: Float, top: Float, right: Float, bottom: Float): Boolean
iSetCenter
Link copied to clipboard
open fun iSetCenter(x: Float, y: Float): MultiRect
isNotEmpty
Link copied to clipboard
open fun isNotEmpty(): Boolean
itIntersects
Link copied to clipboard
open fun itIntersects(rect: MultiRect): Boolean
open fun itIntersects(left: Float, top: Float, right: Float, bottom: Float): Boolean
mapRectWith
Link copied to clipboard
open fun mapRectWith(transformation: Transformation): MultiRect
obtain
Link copied to clipboard
open fun obtain(): MultiRect
open fun obtain(r: Rect): MultiRect
open fun obtain(r: RectF): MultiRect
open fun obtain(r: MultiRect): MultiRect
open fun obtain(left: Float, top: Float, right: Float, bottom: Float): MultiRect
open fun obtain(left: Int, top: Int, right: Int, bottom: Int): MultiRect
obtainEmpty
Link copied to clipboard
open fun obtainEmpty(): MultiRect
obtainIn
Link copied to clipboard
open fun obtainIn(mark: RecyclerMark): MultiRect
open fun obtainIn(mark: RecyclerMark, r: Rect): MultiRect
open fun obtainIn(mark: RecyclerMark, r: RectF): MultiRect
open fun obtainIn(mark: RecyclerMark, r: MultiRect): MultiRect
open fun obtainIn(mark: RecyclerMark, left: Float, top: Float, right: Float, bottom: Float): MultiRect
open fun obtainIn(mark: RecyclerMark, left: Int, top: Int, right: Int, bottom: Int): MultiRect
obtainOrigenAndSizeRoundend
Link copied to clipboard
open fun obtainOrigenAndSizeRoundend(): Rect
obtainRounded
Link copied to clipboard
open fun obtainRounded(): Rect
obtainRoundedIn
Link copied to clipboard
open fun obtainRoundedIn(pool: RecyclerMark): Rect
obtainRoundedMultiRect
Link copied to clipboard
open fun obtainRoundedMultiRect(): MultiRect
obtainRoundOut
Link copied to clipboard
open fun obtainRoundOut(): Rect
obtainRoundOutMultiRect
Link copied to clipboard
open fun obtainRoundOutMultiRect(): MultiRect
offset
Link copied to clipboard
open fun offset(dx: Float, dy: Float)
offsetTo
Link copied to clipboard
open fun offsetTo(newLeft: Float, newTop: Float)
onRecycle
Link copied to clipboard
open fun onRecycle()
open fun onRecycle()
permanent
Link copied to clipboard
open fun permanent(): MultiRect
open fun permanent(r: Rect): MultiRect
open fun permanent(r: RectF): MultiRect
open fun permanent(r: MultiRect): MultiRect
open fun permanent(left: Float, top: Float, right: Float, bottom: Float): MultiRect
readFromParcel
Link copied to clipboard
open fun readFromParcel(in: Parcel)
recycle
Link copied to clipboard
open fun recycle()
abstract fun recycle()
reset
Link copied to clipboard
open fun reset()
abstract fun reset()
round
Link copied to clipboard
open fun round()
rounded
Link copied to clipboard
open fun rounded(left: Float, top: Float, right: Float, bottom: Float): Rect
roundOut
Link copied to clipboard
open fun roundOut()
open fun roundOut(left: Float, top: Float, right: Float, bottom: Float): Rect
roundValues
Link copied to clipboard
open fun roundValues()
sampleSize
Link copied to clipboard
open fun sampleSize(sample: Float): MultiRect
scaleCentered
Link copied to clipboard
open fun scaleCentered(scale: Float): MultiRect
open fun scaleCentered(scaleX: Float, scaleY: Float): MultiRect
scaleSize
Link copied to clipboard
open fun scaleSize(scale: Float): MultiRect
open fun scaleSize(scaleX: Float, scaleY: Float): MultiRect
scaleWidth
Link copied to clipboard
open fun scaleWidth(width: Float)
set
Link copied to clipboard
open fun set(src: Rect)
open fun set(src: RectF)
open fun set(src: MultiRect)
open fun set(left: Float, top: Float, right: Float, bottom: Float)
open fun set(left: Int, top: Int, right: Int, bottom: Int)
setAlsoRecyclable
Link copied to clipboard
abstract fun setAlsoRecyclable(p: Recyclable)
setAspect
Link copied to clipboard
open fun setAspect(aspect: Double)
setCenter
Link copied to clipboard
open fun setCenter(x: Float, y: Float): MultiRect
setEdgeOffsetTo
Link copied to clipboard
open fun setEdgeOffsetTo(edge: RectEdge, pos: Array<Float>): MultiRect
open fun setEdgeOffsetTo(edge: RectEdge, x: Float, y: Float): MultiRect
setEdgePos
Link copied to clipboard
open fun setEdgePos(edge: RectEdge, pos: Array<Float>): MultiRect
open fun setEdgePos(edge: RectEdge, x: Float, y: Float): MultiRect
setEmpty
Link copied to clipboard
open fun setEmpty()
setHeight
Link copied to clipboard
open fun setHeight(height: Float)
setIntersect
Link copied to clipboard
open fun setIntersect(a: RectF, b: RectF): Boolean
setLimits
Link copied to clipboard
open fun setLimits(maxLimits: Rect): MultiRect
open fun setLimits(maxLimits: RectF): MultiRect
open fun setLimits(maxLimits: RectF, fixedEdge: RectEdge): MultiRect
setMinSizeUnlimited
Link copied to clipboard
open fun setMinSizeUnlimited(): MultiRect
setSize
Link copied to clipboard
open fun setSize(height: Float, width: Float)
open fun setSize(height: Float, width: Float, edge: RectEdge)
setWidth
Link copied to clipboard
open fun setWidth(width: Float)
sort
Link copied to clipboard
open fun sort()
toShape
Link copied to clipboard
open fun toShape(): Array<Float>
open fun toShape(shape: Array<Float>)
union
Link copied to clipboard
open fun union(r: RectF)
open fun union(x: Float, y: Float)
open fun union(left: Float, top: Float, right: Float, bottom: Float)

Properties

alsoRecyclable
Link copied to clipboard
private open var alsoRecyclable: Recyclable
bottom
Link copied to clipboard
private open var bottom: Float
CREATOR
Link copied to clipboard
val CREATOR: Creator<MultiRect>
fixedAspectRation
Link copied to clipboard
private open var fixedAspectRation: Double
left
Link copied to clipboard
private open var left: Float
minSize
Link copied to clipboard
private open var minSize: Float
right
Link copied to clipboard
private open var right: Float
top
Link copied to clipboard
private open var top: Float