Public Member Functions

  • SurfaceImage ()
  • SurfaceImage (const SurfaceImage &other)
  • SurfaceImage (int32_t width, int32_t height, bool hasAlpha=false)
  • SurfaceImage (const uint8_t *dataPtr, int32_t width, int32_t height, int32_t stride, bool hasAlpha=false)
  • SurfaceImage (ImageSourceRef imageSource)
  • operator= (const SurfaceImage &other)
  • uint8_t *
    getData ()
  • const uint8_t *
    getData () const
  • int32_t
    getStride () const
  • getSurface ()
  • getSurface () const
  • cairo_surface_t *
    getCairoSurface () const
  • int32_t
    getWidth () const
  • int32_t
    getHeight () const
  • float
    getAspectRatio () const
  • getBounds () const
  • ivec2
    getSize () const
  • void
    flush ()

Protected Member Functions

  • void
    initCinderSurface (bool alpha, cairo_surface_t *cairoSurface)
  • void
    surfaceDeallocator (void *data)

Protected Attributes

  • mCinderSurface
  • cairo_surface_t *
    mCairoSurface
  • int32_t
    mWidth
  • int32_t
    mHeight