Method

IpuzCrosswordcheck_mirror

Declaration [src]

gboolean
ipuz_crossword_check_mirror (
  IpuzCrossword* self,
  const IpuzCellCoord* src_coord,
  const IpuzCellCoord* dest_coord,
  IpuzSymmetry symmetry,
  IpuzSymmetryOffset symmetry_offset
)

Description [src]

Checks the cell at dest_coord to see if it’s the symmetric opposite of the cell at src_coord. For normal crosswords, this just checks that the cell_type is the same, and symmetry is largely ignored. However, for barred crosswords this implementation is quite complex as it needs to rotate and adjust the bars.

Parameters

src_coord

Type: IpuzCellCoord

The source coord to mirror.

The data is owned by the caller of the method.
dest_coord

Type: IpuzCellCoord

The dest coord to mirrored.

The data is owned by the caller of the method.
symmetry

Type: IpuzSymmetry

The symmetry to be observed.

symmetry_offset

Type: IpuzSymmetryOffset

The symmetry offset to be observed.

Return value

Type: gboolean

TRUE, if the cell at dest_coord is the mirror of that at src_coord.