1 /* Calf DSP Library 2 * A frame widget 3 * 4 * Copyright (C) 2008-2015 Krzysztof Foltman, Torben Hohn, Markus 5 * Schmidt and others 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2 of the License, or (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General 18 * Public License along with this program; if not, write to the 19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 20 * Boston, MA 02111-1307, USA. 21 */ 22 23 #ifndef _USE_MATH_DEFINES 24 #define _USE_MATH_DEFINES 25 #endif 26 #ifndef __CALF_CTL_FRAME 27 #define __CALF_CTL_FRAME 28 29 #include <cairo/cairo.h> 30 #include <gtk/gtk.h> 31 #include <gtk/gtkframe.h> 32 //#include <calf/giface.h> 33 #include <calf/drawingutils.h> 34 #include <calf/gui.h> 35 36 G_BEGIN_DECLS 37 38 39 /// FRAME ////////////////////////////////////////////////////////////// 40 41 42 #define CALF_TYPE_FRAME (calf_frame_get_type()) 43 #define CALF_FRAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CALF_TYPE_FRAME, CalfFrame)) 44 #define CALF_IS_FRAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CALF_TYPE_FRAME)) 45 #define CALF_FRAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CALF_TYPE_FRAME, CalfFrameClass)) 46 #define CALF_IS_FRAME_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((klass), CALF_TYPE_FRAME)) 47 48 struct CalfFrame 49 { 50 GtkFrame parent; 51 }; 52 53 struct CalfFrameClass 54 { 55 GtkFrameClass parent_class; 56 }; 57 58 extern GtkWidget *calf_frame_new(const char *label); 59 extern GType calf_frame_get_type(); 60 61 G_END_DECLS 62 63 #endif 64