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 IpuzClueDirection. 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
  • Nickname: none
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_ACROSS

Across clues.

  • Value: 1
  • Nickname: across
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DOWN

Down clues.

  • Value: 2
  • Nickname: down
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DIAGONAL

Diagonal clues which go down and to the right.

  • Value: 3
  • Nickname: diagonal
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DIAGONAL_UP

Diagonal clues which go up and to the right.

  • Value: 4
  • Nickname: diagonal-up
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DIAGONAL_DOWN_LEFT

Diagonal clues which go down and to the left.

  • Value: 5
  • Nickname: diagonal-down-left
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_DIAGONAL_UP_LEFT

Diagonal clues which go up and to the left.

  • Value: 6
  • Nickname: diagonal-up-left
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_ZONES

Clues for explicitly-specified zones.

  • Value: 7
  • Nickname: zones
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_CLUES

Pre-ordered clues (usually alphabetical)

  • Value: 8
  • Nickname: clues
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_HIDDEN

Clues that aren’t shown to the user.

  • Value: 9
  • Nickname: hidden
  • Available since: 1.0
IPUZ_CLUE_DIRECTION_CUSTOM

Start of the range of custom directions.

  • Value: 10
  • Nickname: custom
  • 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.