Method
IpuzCluesclue_set_prev_direction
Declaration [src]
IpuzClueDirection
ipuz_clues_clue_set_prev_direction (
IpuzClues* clues,
IpuzClueDirection direction,
gboolean wrap
)
Description [src]
Returns the previous clue set visible in clues
after direction
.
For example, if called on a regular crossword with a direction
of
IPUZ_CLUE_DIRECTION_DOWN
, this would return
IPUZ_CLUE_DIRECTION_ACROSS
.
If wrap
is TRUE
then this will wrap around to the end when at the
first visible clue sets, otherwise it will return
IPUZ_CLUE_DIRECTION_NONE
.
Note that any clue sets of type IPUZ_CLUE_DIRECTION_HIDDEN
will be skipped by this function.
Parameters
direction
-
Type:
IpuzClueDirection
A direction.
wrap
-
Type:
gboolean
Whether to wrap around.
Return value
Type: IpuzClueDirection
The previous direction logically in clues
, or
IPUZ_CLUE_DIRECTION_NONE
.