1 /* Dia -- an diagram creation/manipulation program 2 * Copyright (C) 1998 Alexander Larsson 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 #ifndef ATTRIBUTES_H 19 #define ATTRIBUTES_H 20 21 #include "dia-enums.h" 22 #include "geometry.h" 23 #include "color.h" 24 #include "arrows.h" 25 #include "font.h" 26 27 Color attributes_get_foreground(void); 28 Color attributes_get_background(void); 29 void attributes_set_foreground(Color *color); 30 void attributes_set_background(Color *color); 31 void attributes_swap_fgbg(void); 32 void attributes_default_fgbg(void); 33 34 real attributes_get_default_linewidth(void); 35 void attributes_set_default_linewidth(real width); 36 37 Arrow attributes_get_default_start_arrow(void); 38 void attributes_set_default_start_arrow(Arrow arrow); 39 40 Arrow attributes_get_default_end_arrow(void); 41 void attributes_set_default_end_arrow(Arrow arrow); 42 43 void attributes_get_default_line_style(LineStyle *style, real *dash_length); 44 void attributes_set_default_line_style(LineStyle style, real dash_length); 45 46 void attributes_get_default_font(DiaFont **font, real *font_height); 47 void attributes_set_default_font(DiaFont *font, real font_height); 48 49 #endif /* ATTRIBUTES_H */ 50