1
/* ipuz-acrostic.h
2
 *
3
 * Copyright 2022 Jonathan Blandford <jrb@gnome.org>
4
 *
5
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Lesser General Public
7
 * License as published by the Free Software Foundation; either
8
 * version 2.1 of the License, or (at your option) any later version.
9
 *
10
 * This library is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 * Lesser General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Lesser General Public
16
 * License along with this library; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
18
 *
19
 * SPDX-License-Identifier: (LGPL-2.1-or-later OR MIT)
20
 */
21

            
22
#pragma once
23

            
24
#include <glib-object.h>
25
#include <libipuz/ipuz-crossword.h>
26

            
27
G_BEGIN_DECLS
28

            
29

            
30
#define IPUZ_TYPE_ACROSTIC (ipuz_acrostic_get_type ())
31
68
G_DECLARE_DERIVABLE_TYPE   (IPuzAcrostic, ipuz_acrostic, IPUZ, ACROSTIC, IPuzCrossword);
32

            
33

            
34
/* Update the table in acrostic-board-dimensions.c if this changes */
35
#define IPUZ_ACROSTIC_MAX_QUOTE_STR_LENGTH 1000
36

            
37

            
38
typedef enum
39
{
40
  IPUZ_ACROSTIC_SYNC_QUOTE_STR_TO_GRID,
41
  IPUZ_ACROSTIC_SYNC_GRID_TO_QUOTE_STR,
42
} IPuzAcrosticSyncDirection;
43

            
44
typedef struct _IPuzAcrosticClass
45
{
46
  IPuzCrosswordClass parent_class;
47
} IPuzAcrosticClass;
48

            
49

            
50
IPuzPuzzle *ipuz_acrostic_new            (void);
51
IPuzClue   *ipuz_acrostic_get_quote_clue (IPuzAcrostic              *self);
52
void        ipuz_acrostic_set_quote_str  (IPuzAcrostic              *self,
53
                                          const char                *quote_str);
54
const gchar *ipuz_acrostic_get_quote_str (IPuzAcrostic              *self);
55
void         ipuz_acrostic_fix_quote_str (IPuzAcrostic              *self,
56
                                          IPuzAcrosticSyncDirection  sync_direction);
57

            
58

            
59
G_END_DECLS