Class: Clutter::PageTurnEffect

Inherits:
DeformEffect show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from DeformEffect

#back_material, #back_material=, #get_n_tiles, #invalidate, #set_n_tiles, #x_tiles, #x_tiles=, #y_tiles, #y_tiles=

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=

Constructor Details

#initialize(period, angle, radius) ⇒ Clutter::Effect

Creates a new Clutter::PageTurnEffect instance with the given parameters

Parameters:

  • period (Float)

    the period of the page curl, between 0.0 and 1.0

  • angle (Float)

    the angle of the page curl, between 0.0 and 360.0

  • radius (Clutter::gfloat)

    the radius of the page curl, in pixels

Instance Method Details

#angleFloat

The angle of the page rotation, in degrees, between 0.0 and 360.0

Returns:

  • (Float)

    angle

#angle=(angle) ⇒ Float

The angle of the page rotation, in degrees, between 0.0 and 360.0

Parameters:

  • angle (Float)

Returns:

  • (Float)

    angle

  • (Float)

    angle

#periodFloat

The period of the page turn, between 0.0 (no curling) and 1.0 (fully curled)

Returns:

  • (Float)

    period

#period=(period) ⇒ Float

The period of the page turn, between 0.0 (no curling) and 1.0 (fully curled)

Parameters:

  • period (Float)

Returns:

  • (Float)

    period

  • (Float)

    period

#radiusClutter::gfloat

The radius of the page curl, in pixels

Returns:

  • (Clutter::gfloat)

    radius

#radius=(radius) ⇒ Clutter::gfloat

The radius of the page curl, in pixels

Parameters:

  • radius (Clutter::gfloat)

Returns:

  • (Clutter::gfloat)

    radius

  • (Clutter::gfloat)

    radius