PaintableImpl

data class PaintableImpl(val gdkPaintablePointer: <Error class: unknown class><<Error class: unknown class>>) : Paintable

The PaintableImpl type represents a native instance of the Paintable interface.

Constructors

Link copied to clipboard
constructor(gdkPaintablePointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of Paintable for the provided CPointer.

Properties

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

Functions

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
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 onInvalidateContents(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 onInvalidateSize(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
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.