MemoryTexture

open class MemoryTexture(pointer: <Error class: unknown class><<Error class: unknown class>>) : Texture

A GdkTexture representing image data in memory.

Constructors

Link copied to clipboard
constructor(width: <Error class: unknown class>, height: <Error class: unknown class>, format: MemoryFormat, bytes: <Error class: unknown class>, stride: <Error class: unknown class>)

Creates a new texture for a blob of image data.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The color state of the texture.

Link copied to clipboard
val gdkMemoryTexturePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gdkPaintablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gdkTexturePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gioIconPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gioLoadableIconPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val height: <Error class: unknown class>

The height of the texture, in pixels.

Link copied to clipboard
open val width: <Error class: unknown class>

The width of the texture, in pixels.

Functions

Link copied to clipboard
open fun connectInvalidateContents(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the contents of the @paintable change.

Link copied to clipboard
open fun connectInvalidateSize(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when the intrinsic size of the @paintable changes.

Link copied to clipboard

Gets an immutable paintable for the current contents displayed by @paintable.

Link copied to clipboard

Get flags for the paintable.

Link copied to clipboard

Gets the memory format most closely associated with the data of the texture.

Link copied to clipboard
open fun getIntrinsicAspectRatio(): <Error class: unknown class>

Gets the preferred aspect ratio the @paintable would like to be displayed at.

Link copied to clipboard
open fun getIntrinsicHeight(): <Error class: unknown class>

Gets the preferred height the @paintable would like to be displayed at.

Link copied to clipboard
open fun getIntrinsicWidth(): <Error class: unknown class>

Gets the preferred width the @paintable would like to be displayed at.

Link copied to clipboard

Called by implementations of GdkPaintable to invalidate their contents.

Link copied to clipboard
open fun invalidateSize()

Called by implementations of GdkPaintable to invalidate their size.

Link copied to clipboard
open fun saveToPng(filename: String): Boolean

Store the given @texture to the @filename as a PNG file.

Link copied to clipboard
open fun saveToPngBytes(): <Error class: unknown class>

Store the given @texture in memory as a PNG file.

Link copied to clipboard
open fun saveToTiff(filename: String): Boolean

Store the given @texture to the @filename as a TIFF file.

Link copied to clipboard
open fun saveToTiffBytes(): <Error class: unknown class>

Store the given @texture in memory as a TIFF file.

Link copied to clipboard
open fun snapshot(snapshot: Snapshot, width: <Error class: unknown class>, height: <Error class: unknown class>)

Snapshots the given paintable with the given @width and @height.