mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-22 12:32:37 +00:00
b6b126903d
2005-08-12 Michael Natterer <mitch@gimp.org> * plug-ins/bmp/bmp.c * plug-ins/faxg3/faxg3.c * plug-ins/fits/fits.c * plug-ins/flame/flame.c * plug-ins/gfig/gfig-dialog.c * plug-ins/gfig/gfig.[ch] * plug-ins/gflare/gflare.c * plug-ins/gfli/gfli.c * plug-ins/help/help.c * plug-ins/helpbrowser/helpbrowser.c * plug-ins/ifscompose/ifscompose.c * plug-ins/jpeg/jpeg-save.c * plug-ins/jpeg/jpeg.[ch] * plug-ins/maze/maze.[ch] * plug-ins/maze/maze_face.c * plug-ins/pagecurl/pagecurl.c * plug-ins/rcm/rcm.[ch] * plug-ins/rcm/rcm_dialog.c * plug-ins/sel2path/sel2path.c * plug-ins/sgi/sgi.c * plug-ins/uri/uri.c * plug-ins/xjt/xjt.c: canonicalize procedure and parameter names. #define them instead of repeating the same string several times. Minor cleanups.
47 lines
999 B
C
47 lines
999 B
C
|
|
#define MAZE_TITLE N_("Maze")
|
|
|
|
#define HELP_OPENS_NEW_WINDOW FALSE
|
|
|
|
/* The "divbox" really should look and act more like a spinbutton.
|
|
This flag is a small step in the direction toward the former, the
|
|
latter leaves much to be desired. */
|
|
#define DIVBOX_LOOKS_LIKE_SPINBUTTON FALSE
|
|
|
|
/* Don't update the progress for every cell when creating a maze.
|
|
Instead, update every . . . */
|
|
#define PRIMS_PROGRESS_UPDATE 256
|
|
|
|
/* Don't draw in anything that has less than
|
|
this value in the selection channel. */
|
|
#define MAZE_ALPHA_THRESHOLD 127
|
|
|
|
#include "glib.h"
|
|
|
|
#define PLUG_IN_PROC "plug-in-maze"
|
|
#define PLUG_IN_BINARY "maze"
|
|
|
|
typedef enum {
|
|
DEPTH_FIRST,
|
|
PRIMS_ALGORITHM
|
|
} MazeAlgoType;
|
|
|
|
typedef struct {
|
|
gint width;
|
|
gint height;
|
|
guint32 seed;
|
|
gboolean tile;
|
|
gint multiple;
|
|
gint offset;
|
|
MazeAlgoType algorithm;
|
|
gboolean random_seed;
|
|
/* Interface options. */
|
|
} MazeValues;
|
|
|
|
enum CellTypes {
|
|
OUT,
|
|
IN,
|
|
FRONTIER,
|
|
MASKED
|
|
};
|