All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nativeMain.org.gtk.cairo.Surface.kt Maven / Gradle / Ivy

package org.gtk.cairo

import cairo.cairo_surface_destroy
import cairo.cairo_surface_t
import kotlinx.cinterop.CPointer

/**
 * kotlinx-gtk
 * 17 / 04 / 2021
 * TODO
 * @see cairo_surface_t
 */
class Surface(
	val cPointer: CPointer
) {
	fun destroy() {
		cairo_surface_destroy(cPointer)
	}

	companion object {
		inline fun CPointer.wrap() = Surface(this)
		inline fun CPointer?.wrap() = this?.wrap()
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy