class Gdk::TextureDownloader

Overview

Used to download the contents of a Gdk::Texture.

It is intended to be created as a short-term object for a single download, but can be used for multiple downloads of different textures or with different settings.

Gdk::TextureDownloader can be used to convert data between different formats. Create a Gdk::Texture for the existing format and then download it in a different format.

Defined in:

lib/gi-crystal/src/auto/gdk-4.0/texture_downloader.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(texture : Gdk::Texture) : self #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def color_state : Gdk::ColorState #

def color_state=(color_state : Gdk::ColorState) : Nil #


def download_bytes(out_stride : UInt64) : GLib::Bytes #

def download_into(data : Bytes, stride : UInt64) : Nil #

def finalize #

def format : Gdk::MemoryFormat #

def format=(format : Gdk::MemoryFormat) : Nil #

def free : Nil #

def texture : Gdk::Texture #

def texture=(texture : Gdk::Texture) : Nil #

def to_unsafe : Pointer(Void) #