/* * Sweep, a sound wave editor. * * db_ruler, modified from hruler in GTK+ 1.2.x * by Conrad Parker 2000 for Sweep. * * 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. */ /* * GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald */ /* * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS * file for a list of people on the GTK+ Team. See the ChangeLog * files for a list of changes. These files are distributed with * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ #ifndef __DB_RULER_H__ #define __DB_RULER_H__ #include #include #include #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define DB_RULER(obj) GTK_CHECK_CAST (obj, db_ruler_get_type (), DbRuler) #define DB_RULER_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, db_ruler_get_type (), DbRulerClass) #define GTK_IS_DB_RULER(obj) GTK_CHECK_TYPE (obj, db_ruler_get_type ()) typedef struct _DbRuler DbRuler; typedef struct _DbRulerClass DbRulerClass; struct _DbRuler { GtkRuler ruler; gfloat y; gboolean dragging; }; struct _DbRulerClass { GtkRulerClass parent_class; void (*changed) (DbRuler * ruler); }; GType db_ruler_get_type (void); GtkWidget* db_ruler_new (void); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* __DB_RULER_H__ */