Clutter.Vertex

Fields

Name

Type

Access

Description

x

float

r/w

X coordinate of the vertex

y

float

r/w

Y coordinate of the vertex

z

float

r/w

Z coordinate of the vertex

Methods

class

alloc ()

class

new (x, y, z)

copy ()

equal (vertex_b)

free ()

init (x, y, z)

Details

class Clutter.Vertex

A point in 3D space, expressed in pixels

New in version 0.4.

classmethod alloc()
Returns:

the newly allocated Clutter.Vertex. Use Clutter.Vertex.free() to free its resources

Return type:

Clutter.Vertex

Allocates a new, empty Clutter.Vertex.

New in version 1.12.

classmethod new(x, y, z)
Parameters:
  • x (float) – X coordinate

  • y (float) – Y coordinate

  • z (float) – Z coordinate

Returns:

the newly allocated Clutter.Vertex. Use Clutter.Vertex.free() to free the resources

Return type:

Clutter.Vertex

Creates a new Clutter.Vertex for the point in 3D space identified by the 3 coordinates x, y, z.

This function is the logical equivalent of:

clutter_vertex_init (clutter_vertex_alloc (), x, y, z);

New in version 1.0.

copy()
Returns:

a newly allocated copy of Clutter.Vertex. Use Clutter.Vertex.free() to free the allocated resources

Return type:

Clutter.Vertex

Copies self

New in version 1.0.

equal(vertex_b)
Parameters:

vertex_b (Clutter.Vertex) – a Clutter.Vertex

Returns:

True if the passed Clutter.Vertex are equal

Return type:

bool

Compares self and vertex_b for equality

New in version 1.0.

free()

Frees a Clutter.Vertex allocated using Clutter.Vertex.alloc() or Clutter.Vertex.copy().

New in version 1.0.

init(x, y, z)
Parameters:
  • x (float) – X coordinate

  • y (float) – Y coordinate

  • z (float) – Z coordinate

Returns:

the initialized Clutter.Vertex

Return type:

Clutter.Vertex

Initializes self with the given coordinates.

New in version 1.10.