#ifndef __SP_DASH_SELECTOR_H__
#define __SP_DASH_SELECTOR_H__

/*
 * Optionmenu for selecting dash patterns
 *
 * Author:
 *   Lauris Kaplinski <lauris@kaplinski.com>
 *
 * Copyright (C) 2002 Lauris Kaplinski
 *
 * Released under GNU GPL, read the file 'COPYING' for more information
 */

typedef struct _SPDashSelector SPDashSelector;

#include <gtk/gtkwidget.h>
#include "../xml/repr.h"

#include <glib.h>

G_BEGIN_DECLS

#define SP_TYPE_DASH_SELECTOR (sp_dash_selector_get_type ())
#define SP_DASH_SELECTOR(o) (GTK_CHECK_CAST ((o), SP_TYPE_DASH_SELECTOR, SPDashSelector))
#define SP_IS_DASH_SELECTOR(o) (GTK_CHECK_TYPE ((o), SP_TYPE_DASH_SELECTOR))

GtkType sp_dash_selector_get_type (void);

GtkWidget *sp_dash_selector_new (SPRepr *repr);

void sp_dash_selector_set_dash (SPDashSelector *dsel, int ndash, double *dash, double offset);
void sp_dash_selector_get_dash (SPDashSelector *dsel, int *ndash, double **dash, double *offset);

G_END_DECLS

#endif
