1 /*- 2 * Copyright (C) 2012 Nick Schermer <nick@xfce.org> 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the Free 6 * Software Foundation; either version 2 of the License, or (at your option) 7 * any later version. 8 * 9 * This program is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 12 * more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #ifndef TERMINAL_WINDOW_DROPDOWN_DROPDOWN_H 19 #define TERMINAL_WINDOW_DROPDOWN_DROPDOWN_H 20 21 #include <terminal/terminal-screen.h> 22 #include <terminal/terminal-options.h> 23 24 G_BEGIN_DECLS 25 26 #define TERMINAL_TYPE_WINDOW_DROPDOWN (terminal_window_dropdown_get_type ()) 27 #define TERMINAL_WINDOW_DROPDOWN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TERMINAL_TYPE_WINDOW_DROPDOWN, TerminalWindowDropdown)) 28 #define TERMINAL_WINDOW_DROPDOWN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TERMINAL_TYPE_WINDOW_DROPDOWN, TerminalWindowDropdownClass)) 29 #define TERMINAL_IS_WINDOW_DROPDOWN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TERMINAL_TYPE_WINDOW_DROPDOWN)) 30 #define TERMINAL_IS_WINDOW_DROPDOWN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TERMINAL_TYPE_WINDOW_DROPDOWN)) 31 #define TERMINAL_WINDOW_DROPDOWN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TERMINAL_TYPE_WINDOW_DROPDOWN, TerminalWindowDropdownClass)) 32 33 typedef struct _TerminalWindowDropdownClass TerminalWindowDropdownClass; 34 typedef struct _TerminalWindowDropdown TerminalWindowDropdown; 35 36 GType terminal_window_dropdown_get_type (void) G_GNUC_CONST; 37 38 GtkWidget *terminal_window_dropdown_new (const gchar *role, 39 const gchar *icon, 40 gboolean fullscreen, 41 TerminalVisibility menubar, 42 TerminalVisibility toolbar); 43 44 void terminal_window_dropdown_toggle (TerminalWindowDropdown *dropdown, 45 const gchar *startup_id, 46 gboolean force_show); 47 48 void terminal_window_dropdown_get_size (TerminalWindowDropdown *dropdown, 49 TerminalScreen *screen, 50 glong *grid_width, 51 glong *grid_height); 52 53 void terminal_window_dropdown_update_geometry (TerminalWindowDropdown *dropdown); 54 55 G_END_DECLS 56 57 #endif /* !TERMINAL_WINDOW_DROPDOWN_H */ 58