Class: Clutter::DeformEffect

Inherits:
OffscreenEffect show all
Defined in:
(unknown)

Overview

The Clutter::DeformEffectClass structure contains only private data

Direct Known Subclasses

PageTurnEffect

Instance Method Summary collapse

Methods inherited from OffscreenEffect

#create_texture, #get_target_rect, #get_target_size, #paint_target, #target, #texture

Methods inherited from Effect

#queue_repaint

Methods inherited from ActorMeta

#actor, #actor=, #enabled, #enabled=, #enabled?, #name, #name=

Instance Method Details

#back_materialClutter::

A material to be used when painting the back of the actor to which this effect has been applied

By default, no material will be used

Returns:

#back_material=(back_material) ⇒ Clutter::

A material to be used when painting the back of the actor to which this effect has been applied

By default, no material will be used

Parameters:

Returns:

#get_n_tiles(x_tiles, y_tiles) ⇒ nil

Retrieves the number of horizontal and vertical tiles used to sub-divide the actor's geometry during the effect

Parameters:

  • x_tiles (Integer)

    return location for the number of horizontal tiles, or nil

  • y_tiles (Integer)

    return location for the number of vertical tiles, or nil

Returns:

  • (nil)

#invalidatenil

Invalidates the effect's vertices and, if it is associated to an actor, it will queue a redraw

Returns:

  • (nil)

#set_n_tiles(x_tiles, y_tiles) ⇒ nil

Sets the number of horizontal and vertical tiles to be used when applying the effect

More tiles allow a finer grained deformation at the expenses of computation

Parameters:

  • x_tiles (Integer)

    number of horizontal tiles

  • y_tiles (Integer)

    number of vertical tiles

Returns:

  • (nil)

#x_tilesInteger

The number of horizontal tiles. The bigger the number, the smaller the tiles

Returns:

  • (Integer)

    x-tiles

#x_tiles=(x_tiles) ⇒ Integer

The number of horizontal tiles. The bigger the number, the smaller the tiles

Parameters:

  • x_tiles (Integer)

Returns:

  • (Integer)

    x-tiles

  • (Integer)

    x-tiles

#y_tilesInteger

The number of vertical tiles. The bigger the number, the smaller the tiles

Returns:

  • (Integer)

    y-tiles

#y_tiles=(y_tiles) ⇒ Integer

The number of vertical tiles. The bigger the number, the smaller the tiles

Parameters:

  • y_tiles (Integer)

Returns:

  • (Integer)

    y-tiles

  • (Integer)

    y-tiles