1 /* Dia -- a diagram creation/manipulation program 2 * Copyright (C) 1998 Alexander Larsson 3 * 4 * $Id$ 5 * 6 * navigation.h : a navigation popup window to browse large diagrams. 7 * Copyright (C) 2003 Luc Pionchon 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * This program is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 * GNU General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 22 * 23 */ 24 25 #ifndef NAVIGATION_H 26 #define NAVIGATION_H 27 28 #include <gtk/gtk.h> 29 #include "display.h" 30 31 /** 32 * Returns a button which triggers a popup navigation window. 33 * 34 * The popup window is created when the button is "pressed", 35 * and destroyed when the button is "released". In the meantime, the 36 * popup window grabs the pointer/focus. Moving the mouse adjust the 37 * scrollbars of the given #DDisplay accordingly. 38 * 39 * @ddisp: the #DDisplay to navigate through. 40 * 41 * Returns: a new #GtkButton. 42 **/ 43 GtkWidget * navigation_popup_new (DDisplay *ddisp); 44 45 #endif 46