Packages

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
AutoCloseable, MutableSurface, Surface, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SdlSurface
  2. AutoCloseable
  3. MutableSurface
  4. Surface
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SdlSurface(data: Ptr[SDL_Surface])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. 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
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def close(): Unit
    Definition Classes
    SdlSurface → AutoCloseable
  8. val data: Ptr[SDL_Surface]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def fill(color: Color): Unit
    Definition Classes
    SdlSurface → MutableSurface
  12. def fillRegion(x: Int, y: Int, w: Int, h: Int, color: Color): Unit
    Definition Classes
    SdlSurface → MutableSurface
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  14. final def getPixel(x: Int, y: Int): Option[Color]
    Definition Classes
    Surface
  15. final def getPixelOrElse(x: Int, y: Int, fallback: Color): Color
    Definition Classes
    Surface
  16. def getPixels(): Vector[Array[Color]]
    Definition Classes
    Surface
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  18. val height: Int
    Definition Classes
    SdlSurface → Surface
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  23. final def putPixel(x: Int, y: Int, color: Color): Unit
    Definition Classes
    MutableSurface
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. final def toRamSurface(): RamSurface
    Definition Classes
    Surface
  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. def unsafeGetPixel(x: Int, y: Int): Color
    Definition Classes
    SdlSurface → Surface
  28. def unsafePutPixel(x: Int, y: Int, color: Color): Unit
    Definition Classes
    SdlSurface → MutableSurface
  29. def view: SurfaceView
    Definition Classes
    Surface
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. val width: Int
    Definition Classes
    SdlSurface → Surface

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AutoCloseable

Inherited from MutableSurface

Inherited from Surface

Inherited from AnyRef

Inherited from Any

Ungrouped