final class SdlSurface extends MutableSurface with AutoCloseable
Mutabe surface backed by an SDL surface.
This class assumes to be the only owner of the surface, and will free the surface when garbage collected.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SdlSurface
- AutoCloseable
- MutableSurface
- Surface
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SdlSurface(data: Ptr[SDL_Surface])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def blit(that: Surface, mask: Option[Color] = None)(x: Int, y: Int, cx: Int = 0, cy: Int = 0, cw: Int = that.width, ch: Int = that.height): Unit
- Definition Classes
- SdlSurface → MutableSurface
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def close(): Unit
- Definition Classes
- SdlSurface → AutoCloseable
- val data: Ptr[SDL_Surface]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fill(color: Color): Unit
- Definition Classes
- SdlSurface → MutableSurface
- def fillRegion(x: Int, y: Int, w: Int, h: Int, color: Color): Unit
- Definition Classes
- SdlSurface → MutableSurface
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def getPixel(x: Int, y: Int): Option[Color]
- Definition Classes
- Surface
- final def getPixelOrElse(x: Int, y: Int, fallback: Color): Color
- Definition Classes
- Surface
- def getPixels(): Vector[Array[Color]]
- Definition Classes
- Surface
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- val height: Int
- Definition Classes
- SdlSurface → Surface
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def putPixel(x: Int, y: Int, color: Color): Unit
- Definition Classes
- MutableSurface
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toRamSurface(): RamSurface
- Definition Classes
- Surface
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unsafeGetPixel(x: Int, y: Int): Color
- Definition Classes
- SdlSurface → Surface
- def unsafePutPixel(x: Int, y: Int, color: Color): Unit
- Definition Classes
- SdlSurface → MutableSurface
- def view: SurfaceView
- Definition Classes
- Surface
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- val width: Int
- Definition Classes
- SdlSurface → Surface