Class: Gdk::MemoryTextureBuilder

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize ⇒ Gdk::MemoryTextureBuilder

Creates a new texture builder.

Instance Method Details

#build ⇒ Gdk::Texture

Builds a new GdkTexture with the values set up in the builder.

Note that it is a programming error to call this function if any mandatory
property has not been set.

It is possible to call this function multiple times to create multiple textures,
possibly with changing properties in between.

Returns:

#bytes ⇒ GLib::Bytes

The bytes holding the data.

Returns:

  • (GLib::Bytes) —

    bytes

#bytes=(bytes) ⇒ GLib::Bytes

The bytes holding the data.

Parameters:

  • bytes (GLib::Bytes)

Returns:

  • (GLib::Bytes) —

    bytes

  • (GLib::Bytes) —

    bytes

#color_state ⇒ Gdk::ColorState

The colorstate describing the data.

Returns:

  • (Gdk::ColorState) —

    color-state

#color_state=(color_state) ⇒ Gdk::ColorState

The colorstate describing the data.

Parameters:

  • color_state (Gdk::ColorState)

Returns:

  • (Gdk::ColorState) —

    color-state

  • (Gdk::ColorState) —

    color-state

#format ⇒ Gdk::MemoryFormat

The format of the data.

Returns:

#format=(format) ⇒ Gdk::MemoryFormat

The format of the data.

Parameters:

Returns:

#get_offset(plane) ⇒ Integer

Gets the offset previously set via gdk_memory_texture_builder_set_offset().

Parameters:

  • plane (Integer) —

    a plane

Returns:

  • (Integer) —

    The offset associated to a plane

#get_stride_for_plane(plane) ⇒ Integer

Gets the stride previously set via gdk_memory_texture_builder_set_stride_for_plane().

Parameters:

  • plane (Integer) —

    a plane

Returns:

  • (Integer) —

    The stride associated to a plane

#height ⇒ Integer

The height of the texture.

Returns:

  • (Integer) —

    height

#height=(height) ⇒ Integer

The height of the texture.

Parameters:

  • height (Integer)

Returns:

  • (Integer) —

    height

  • (Integer) —

    height

#set_offset(plane, offset) ⇒ nil

Sets the offset of the texture for plane.

Parameters:

  • plane (Integer) —

    a plane

  • offset (Integer) —

    the texture's offset for plane

Returns:

  • (nil)

#set_stride_for_plane(plane, stride) ⇒ nil

Sets the stride of the texture for plane.

Parameters:

  • plane (Integer) —

    a plane

  • stride (Integer) —

    the texture's stride for plane

Returns:

  • (nil)

#stride ⇒ Integer

The rowstride of the texture.

The rowstride is the number of bytes between the first pixel
in a row of image data, and the first pixel in the next row.

Returns:

  • (Integer) —

    stride

#stride=(stride) ⇒ Integer

The rowstride of the texture.

The rowstride is the number of bytes between the first pixel
in a row of image data, and the first pixel in the next row.

Parameters:

  • stride (Integer)

Returns:

  • (Integer) —

    stride

  • (Integer) —

    stride

#update_region ⇒ cairo::Region

The update region for [propertyGdk.MemoryTextureBuilder:update-texture].

Returns:

  • (cairo::Region) —

    update-region

#update_region=(update_region) ⇒ cairo::Region

The update region for [propertyGdk.MemoryTextureBuilder:update-texture].

Parameters:

  • update_region (cairo::Region)

Returns:

  • (cairo::Region) —

    update-region

  • (cairo::Region) —

    update-region

#update_texture ⇒ Gdk::Texture

The texture [propertyGdk.MemoryTextureBuilder:update-region] is an update for.

Returns:

#update_texture=(update_texture) ⇒ Gdk::Texture

The texture [propertyGdk.MemoryTextureBuilder:update-region] is an update for.

Parameters:

Returns:

#width ⇒ Integer

The width of the texture.

Returns:

  • (Integer) —

    width

#width=(width) ⇒ Integer

The width of the texture.

Parameters:

  • width (Integer)

Returns:

  • (Integer) —

    width

  • (Integer) —

    width