summaryrefslogtreecommitdiffstats
path: root/src/widgets/dash-selector.h
blob: a00834625b8f4ad77b571c7f5147e6cd0720781d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#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
 */

struct SPDashSelector;

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

#include <glib.h>



#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 (Inkscape::XML::Node *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);



#endif

/*
  Local Variables:
  mode:c++
  c-file-style:"stroustrup"
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
  indent-tabs-mode:nil
  fill-column:99
  End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :