Function
IpuzEnumerationForeachDelimFunc
Declaration
void
(* IpuzEnumerationForeachDelimFunc) (
IpuzEnumeration* enumeration,
IpuzDeliminator delim,
guint grid_offset,
gboolean final_word,
gpointer user_data
)
Description [src]
The function to be passed to ipuz_enumeration_foreach_delim()
.
grid_offset
indicates what position within the clue the
deliminator can be found. It includes the borders within its count,
as well as the cells. For example, consider the enumeration "^4-4 3"
:
|^| | | - | | | ǁ | | |
This function will be called with IPUZ_DELIMINATOR_CAPITALIZED
at
offset 1, IPUZ_DELIMINATOR_DASH
at offset 8, and
IPUZ_DELIMINATOR_WORD_BREAK
at offsets 16 and 22. final_word
will
be TRUE at offset 22.
Note this last IPUZ_DELIMINATOR_WORD_BREAK
is implicit, and
shouldn’t be rendered in the puzzle. It is used to indicates the
length of the final word.
Parameters
enumeration
-
Type:
IpuzEnumeration
The
IpuzEnumeration
to iterate through.The data is owned by the caller of the function. delim
-
Type:
IpuzDeliminator
The next
IpuzDeliminator
being iterated. grid_offset
-
Type:
guint
The offset of
delim
within the grid. final_word
-
Type:
gboolean
Whether the deliminator marks the end of the final word.
user_data
-
Type:
gpointer
Data to be passed to the function.
The argument can be NULL
.The data is owned by the caller of the function.