Method

IpuzCrosswordfix_all

Declaration [src]

void
ipuz_crossword_fix_all (
  IpuzCrossword* self,
  ...
)

Description [src]

Convenience function for calling all the _fix() functions in crosswords sequentially. This is not available for language bindings.

Crosswords support the following rguments: * "symmetry-coords": The coords to pass to ipuz_crossword_fix_symmetry() * "symmetry": The symmetry to pass to ipuz_crossword_fix_symmetry()

For example, the following call will result in a well formed puzzle with all the coords at coord.

static void
make_a_cell_a_block (IpuzPuzzle    *puzzle,
                     IpuzCellCoord *coord)
{
  g_autoptr (IpuzCellCoordArray) coords = NULL;
  IpuzCell *cell;

  cell = ipuz_grid_get_cell (IPUZ_GRID (puzzle), coord);
  ipuz_cell_set_cell_type (cell, IPUZ_CELL_BLOCK);

  coords = ipuz_cell_coord_array_new ();
  ipuz_cell_coord_array_append (coords, coord);

  ipuz_crosswords_fix_all (IPUZ_CROSSWORDS (puzzle),
                           "symmetry-coords", coords,
                           "symmetry", IPUZ_SYMMETRY_ROTATIONAL_QUARTER,
                           NULL);
}

In addition, subclasses of IpuzCrossword may do further fixups.

This method is not directly available to language bindings.

Parameters

...

Type: 

The value of the attribute that’s being fixed, terminated by NULL.