/* * phatsvgknob.h * * A GTK+ widget that implements a knob face * * (C) 2007, Ulrich Lorenz Schlueter * * derived from: * http://www.gnomejournal.org/article/34/writing-a-widget-using-cairo-and-gtk28 * http://gnomejournal.org/article/36/writing-a-widget-using-cairo-and-gtk28-part-2 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Authors: * Ulrich Lorenz Schlueter */ #ifndef __PHAT_SVG_KNOB_FACE_H__ #define __PHAT_SVG_KNOB_FACE_H__ #include G_BEGIN_DECLS #define PHAT_TYPE_SVG_KNOB_FACE (phat_svg_knob_face_get_type ()) #define PHAT_SVG_KNOB_FACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PHAT_TYPE_SVG_KNOB_FACE, PhatSvgKnobFace)) #define PHAT_SVG_KNOB_FACE_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), PHAT_SVG_KNOB_FACE, PhatSvgKnobFaceClass)) #define PHAT_IS_SVG_KNOB_FACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PHAT_TYPE_SVG_KNOB_FACE)) #define PHAT_IS_SVG_KNOB_FACE_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE ((obj), PHAT_TYPE_SVG_KNOB_FACE)) #define PHAT_SVG_KNOB_FACE_GET_CLASS (G_TYPE_INSTANCE_GET_CLASS ((obj), PHAT_TYPE_SVG_KNOB_FACE, PhatSvgKnobFaceClass)) #define PHAT_SVG_KNOB_DEFAULT_ADJUST (45) typedef struct _PhatSvgKnobFace PhatSvgKnobFace; typedef struct _PhatSvgKnobFaceClass PhatSvgKnobFaceClass; struct _PhatSvgKnobFace { GtkDrawingArea parent; /* < private > */ }; struct _PhatSvgKnobFaceClass { GtkDrawingAreaClass parent_class; void (* value_changed) (PhatSvgKnobFace *knob, double decibel); }; GtkWidget *phat_svg_knob_face_new (void); G_END_DECLS #endif