Enumeration

IpuzClueDirection

Declaration

enum Ipuz.ClueDirection

Description [src]

Possible directions for a clue.

Warning

It’s possible to have puzzles with directions with values that extend beyond IPUZ_CLUE_DIRECTION_CUSTOM. As a result, it’s never meaningful to switch() on this value from C code.

Members

IPUZ_CLUE_DIRECTION_NONE

No direction. Used for errors, and to indicate unset IpuzClueId.

  • Value: 0
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_ACROSS

Across clues.

  • Value: 1
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DOWN

Down clues.

  • Value: 2
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DIAGONAL

Diagonal clues which go down and to the right.

  • Value: 3
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DIAGONAL_UP

Diagonal clues which go up and to the right.

  • Value: 4
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DIAGONAL_DOWN_LEFT

Diagonal clues which go down and to the left.

  • Value: 5
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DIAGONAL_UP_LEFT

Diagonal clues which go up and to the left.

  • Value: 6
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_ZONES

Clues for explicitly-specified zones.

  • Value: 7
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_CLUES

Pre-ordered clues (usually alphabetical).

  • Value: 8
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_HIDDEN

Clues that aren’t shown to the user.

  • Value: 9
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_CUSTOM

Start of the range of custom directions.

  • Value: 10
  • Available since: 1.0

Type functions

ipuz_clue_direction_from_string

Returns the direction represented by str.

ipuz_clue_direction_switch

Returns the direction orthoganol to direction if it is directional.

ipuz_clue_direction_to_string

Returns a string representation of direction.