+
+}
+
+gui::EGUI_DEFAULT_COLOR
+scm_to_default_color (SCM default_color)
+{
+ char* color = scm_to_utf8_stringn (scm_symbol_to_string (default_color), NULL);
+ if (!strcmp (color, "3d-dark-shadow"))
+ {
+ return gui::EGDC_3D_DARK_SHADOW;
+ }
+ else if (!strcmp (color, "3d-shadow"))
+ {
+ return gui::EGDC_3D_SHADOW;
+ }
+ else if (!strcmp (color, "3d-face"))
+ {
+ return gui::EGDC_3D_FACE;
+ }
+ else if (!strcmp (color, "3d-high-light"))
+ {
+ return gui::EGDC_3D_HIGH_LIGHT;
+ }
+ else if (!strcmp (color, "3d-light"))
+ {
+ return gui::EGDC_3D_LIGHT;
+ }
+ else if (!strcmp (color, "active-border"))
+ {
+ return gui::EGDC_ACTIVE_BORDER;
+ }
+ else if (!strcmp (color, "active-caption"))
+ {
+ return gui::EGDC_ACTIVE_CAPTION;
+ }
+ else if (!strcmp (color, "app-workspace"))
+ {
+ return gui::EGDC_APP_WORKSPACE;
+ }
+ else if (!strcmp (color, "button-text"))
+ {
+ return gui::EGDC_BUTTON_TEXT;
+ }
+ else if (!strcmp (color, "gray-text"))
+ {
+ return gui::EGDC_GRAY_TEXT;
+ }
+ else if (!strcmp (color, "high-light"))
+ {
+ return gui::EGDC_HIGH_LIGHT;
+ }
+ else if (!strcmp (color, "high-light-text"))
+ {
+ return gui::EGDC_HIGH_LIGHT_TEXT;
+ }
+ else if (!strcmp (color, "inactive-border"))
+ {
+ return gui::EGDC_INACTIVE_BORDER;
+ }
+ else if (!strcmp (color, "inactive-caption"))
+ {
+ return gui::EGDC_INACTIVE_CAPTION;
+ }
+ else if (!strcmp (color, "tooltip"))
+ {
+ return gui::EGDC_TOOLTIP;
+ }
+ else if (!strcmp (color, "tooltip-background"))
+ {
+ return gui::EGDC_TOOLTIP_BACKGROUND;
+ }
+ else if (!strcmp (color, "scrollbar"))
+ {
+ return gui::EGDC_SCROLLBAR;
+ }
+ else if (!strcmp (color, "window"))
+ {
+ return gui::EGDC_WINDOW;
+ }
+ else if (!strcmp (color, "window-symbol"))
+ {
+ return gui::EGDC_WINDOW_SYMBOL;
+ }
+ else if (!strcmp (color, "icon"))
+ {
+ return gui::EGDC_ICON;
+ }
+ else if (!strcmp (color, "icon-high-light"))
+ {
+ return gui::EGDC_ICON_HIGH_LIGHT;
+ }
+ else if (!strcmp (color, "gray-window-symbol"))
+ {
+ return gui::EGDC_GRAY_WINDOW_SYMBOL;
+ }
+ else if (!strcmp (color, "editable"))
+ {
+ return gui::EGDC_EDITABLE;
+ }
+ else if (!strcmp (color, "gray-editable"))
+ {
+ return gui::EGDC_GRAY_EDITABLE;
+ }
+ else if (!strcmp (color, "focused-editable"))
+ {
+ return gui::EGDC_FOCUSED_EDITABLE;
+ }
+ else
+ {
+ scm_error (scm_arg_type_key, NULL, "Wrong default color: ~S",
+ scm_list_1 (default_color), scm_list_1 (default_color));
+ }
+}
+
+
+gui::EGUI_DEFAULT_FONT
+scm_to_default_font (SCM default_font)
+{
+ char* font = scm_to_utf8_stringn (scm_symbol_to_string (default_font), NULL);
+ if (!strcmp (font, "default"))
+ {
+ return gui::EGDF_DEFAULT;
+ }
+ else if (!strcmp (font, "button"))
+ {
+ return gui::EGDF_BUTTON;
+ }
+ else if (!strcmp (font, "window"))
+ {
+ return gui::EGDF_WINDOW;
+ }
+ else if (!strcmp (font, "menu"))
+ {
+ return gui::EGDF_MENU;
+ }
+ else if (!strcmp (font, "tooltip"))
+ {
+ return gui::EGDF_TOOLTIP;
+ }
+ else
+ {
+ scm_error (scm_arg_type_key, NULL, "Wrong default font: ~S",
+ scm_list_1 (default_font), scm_list_1 (default_font));
+ }