2 * Copyright (c) 2007, 2008, 2009, Czirkos Zoltan <cirix@fw.hu>
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #ifndef _GD_EDITOR_WIDGETS_H
17 #define _GD_EDITOR_WIDGETS_H
19 #include <gtk/gtkwidget.h>
20 #include <gtk/gtkcombobox.h>
23 GtkWidget
*gd_color_combo_new(const GdColor color
);
24 GdColor
gd_color_combo_get_color(GtkWidget
*widget
);
25 void gd_color_combo_set(GtkComboBox
*combo
, GdColor color
);
27 void gd_element_button_set_dialog_title(GtkWidget
*button
, const char *title
);
28 void gd_element_button_set_dialog_sensitive(GtkWidget
*button
, gboolean sens
);
29 GdElement
gd_element_button_get(GtkWidget
*button
);
30 GtkWidget
*gd_element_button_new(GdElement initial_element
, gboolean stays_open
, const char *special_title
);
31 void gd_element_button_set(GtkWidget
*button
, const GdElement element
);
32 void gd_element_button_update_pixbuf(GtkWidget
*button
);
34 GtkWidget
*gd_direction_combo_new(const GdDirection initial
);
35 GdDirection
gd_direction_combo_get_direction(GtkWidget
*combo
);
37 GtkWidget
*gd_scheduling_combo_new(const GdScheduling initial
);
38 GdScheduling
gd_scheduling_combo_get_scheduling(GtkWidget
*combo
);