pattern-selector.h 848 Bytes
Newer Older
1 2
#ifndef GNUMERIC_PATTERN_SELECTOR_H
#define GNUMERIC_PATTERN_SELECTOR_H
3

4 5
#include "gnumeric-sheet.h"

6 7
#define PATTERN_SELECTOR_TYPE     (pattern_selector_get_type ())
#define PATTERN_SELECTOR(obj)     (GTK_CHECK_CAST((obj), PATTERN_SELECTOR_TYPE, PatternSelector))
8
#define PATTERN_SELECTOR_CLASS(k) (GTK_CHECK_CLASS_CAST((k), PATTERN_SELECTOR_TYPE))
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#define IS_PATTERN_SELECTOR(o)    (GTK_CHECK_TYPE((o), PATTERN_SELECTOR_TYPE))

typedef struct {
	GnomeCanvas     canvas;

	int             selected_item;
	GnomeCanvasItem *selector;
} PatternSelector;

typedef struct {
	GnomeCanvasClass parent_class;
} PatternSelectorClass;

GtkType     pattern_selector_get_type   (void);
GtkWidget  *pattern_selector_new        (int pattern);
void        pattern_selector_select     (PatternSelector *ps, int pattern);

26
#endif /* GNUMERIC_PATTERN_SELECTOR_H */