1 /* 2 3 (c) Fraser Stuart 2009 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 2 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program; if not, write to the Free Software 17 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18 19 */ 20 21 #ifndef __INV_WIDGETS_H 22 #define __INV_WIDGETS_H 23 24 #include <gtk/gtk.h> 25 #include <cairo.h> 26 27 #define INV_PLUGIN_ACTIVE 0 28 #define INV_PLUGIN_BYPASS 1 29 30 #define INV_PI 3.1415926535 31 32 struct point2D { 33 float x; 34 float y; 35 }; 36 37 struct point3D { 38 float x; 39 float y; 40 float z; 41 }; 42 43 struct colour { 44 float R; 45 float G; 46 float B; 47 }; 48 49 gint inv_choose_light_dark(GdkColor *bg,GdkColor *light,GdkColor *dark); 50 gint inv_choose_font_size(cairo_t *cr, const char *family, cairo_font_slant_t slant, cairo_font_weight_t weight, double width, double height, const char *character); 51 52 53 #endif /* __INV_WIDGETS_H */ 54