Enumeration

IpuzSymmetry

Declaration

enum Ipuz.Symmetry

Description [src]

Mode of symmetry between cells in a gridded puzzle.

Members

IPUZ_SYMMETRY_NONE

Freeform grid.

  • Value: 0
  • Available since: 1.0
IPUZ_SYMMETRY_ROTATIONAL_HALF

180° Rotational Symmetry around the center.

  • Value: 1
  • Available since: 1.0
IPUZ_SYMMETRY_ROTATIONAL_QUARTER

90° Rotational Symmetry around the center.

  • Value: 2
  • Available since: 1.0
IPUZ_SYMMETRY_HORIZONTAL

Symmetry across the horizontal center line.

  • Value: 3
  • Available since: 1.0
IPUZ_SYMMETRY_VERTICAL

Symmetry across the vertical center line.

  • Value: 4
  • Available since: 1.0
IPUZ_SYMMETRY_MIRRORED

Symmetry across the horizontal and vertical center lines.

  • Value: 5
  • Available since: 1.0
IPUZ_SYMMETRY_MIRRORED_DIAGONAL

Symmetry across the diagonal from upper left to lower right. Only works on square boards.

  • Value: 6
  • Available since: 1.0
IPUZ_SYMMETRY_MIRRORED_DIAGONAL_UP_RIGHT

Symmetry across the diagonal from lower left to upper right. Only works on square boards.

  • Value: 7
  • Available since: 1.0

Type functions

ipuz_symmetry_calculate

Calculates the coordinate opposite of coord as defined by symmetry and symmetry_offset. If symmetry is quarter rotational, multiple calls to this function must be made.