Interface
IpuzClues
Prerequisite
In order to implement Clues, your type must inherit fromIpuzPuzzle
.
Instance methods
ipuz_clues_get_clue_string_by_id
Returns a string containing the solution of the puzzle for a given clue. This string will have ‘?’ characters embedded within it if there are cells without solutions set yet.
ipuz_clues_get_guess_string_by_id
Returns a string containing the guess in the puzzle for a given clue. This string will have ‘?’ characters embedded within it if there are cells not completely filled out.
Interface structure
struct IpuzCluesInterface {
GTypeInterface g_iface;
guint (* get_n_clue_sets) (
IpuzClues* self
);
IpuzClueDirection (* clue_set_get_dir) (
IpuzClues* self,
guint index
);
const gchar* (* clue_set_get_label) (
IpuzClues* self,
IpuzClueDirection direction
);
GArray* (* get_clues) (
IpuzClues* self,
IpuzClueDirection direction
);
void (* foreach_clue) (
IpuzClues* self,
IpuzCluesForeachClueFunc func,
gpointer user_data
);
guint (* get_n_clues) (
IpuzClues* self,
IpuzClueDirection direction
);
IpuzClue* (* get_clue_by_id) (
IpuzClues* self,
IpuzClueId* clue_id
);
void (* unlink_clue) (
IpuzClues* self,
IpuzClue* clue
);
gboolean (* get_id_by_clue) (
IpuzClues* self,
const IpuzClue* clue,
IpuzClueId* clue_id
);
gchar* (* get_clue_string_by_id) (
IpuzClues* self,
IpuzClueId* clue_id
);
gchar* (* get_guess_string_by_id) (
IpuzClues* self,
IpuzClueId* clue_id
);
gboolean (* clue_guessed) (
IpuzClues* self,
IpuzClue* clue,
gboolean* correct
);
IpuzClue* (* find_clue_by_number) (
IpuzClues* self,
IpuzClueDirection direction,
gint number
);
IpuzClue* (* find_clue_by_label) (
IpuzClues* self,
IpuzClueDirection direction,
const char* label
);
IpuzClue* (* find_clue_by_coord) (
IpuzClues* self,
IpuzClueDirection direction,
const IpuzCellCoord* coord
);
}
Interface members
g_iface |
|
No description available. | |
get_n_clue_sets |
|
No description available. | |
clue_set_get_dir |
|
No description available. | |
clue_set_get_label |
|
No description available. | |
get_clues |
|
No description available. | |
foreach_clue |
|
No description available. | |
get_n_clues |
|
No description available. | |
get_clue_by_id |
|
No description available. | |
unlink_clue |
|
No description available. | |
get_id_by_clue |
|
No description available. | |
get_clue_string_by_id |
|
No description available. | |
get_guess_string_by_id |
|
No description available. | |
clue_guessed |
|
No description available. | |
find_clue_by_number |
|
No description available. | |
find_clue_by_label |
|
No description available. | |
find_clue_by_coord |
|
No description available. |
Virtual methods
Ipuz.Clues.get_clue_string_by_id
Returns a string containing the solution of the puzzle for a given clue. This string will have ‘?’ characters embedded within it if there are cells without solutions set yet.
Ipuz.Clues.get_guess_string_by_id
Returns a string containing the guess in the puzzle for a given clue. This string will have ‘?’ characters embedded within it if there are cells not completely filled out.