2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi)
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 * @addtogroup IrrecoWindowManager
27 * Header file of @ref IrrecoWindowManager.
30 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 * Make sure that typedefs are available before we include anything elese.
36 * This makes sure that whatever other structures that depend on structures
37 * defined in this file will compile OK recardles of header inclusion order.
39 #ifndef __IRRECO_WINDOW_MANAGER_H_TYPEDEF__
40 #define __IRRECO_WINDOW_MANAGER_H_TYPEDEF__
41 typedef struct _IrrecoWindowManager IrrecoWindowManager
;
43 IRRECO_WINDOW_USER
= 1,
46 #endif /* __IRRECO_WINDOW_MANAGER_H_TYPEDEF__ */
50 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
52 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
53 #ifndef __IRRECO_WINDOW_MANAGER_H__
54 #define __IRRECO_WINDOW_MANAGER_H__
56 #include "irreco_window_edit.h"
57 #include "irreco_window_user.h"
61 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
63 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
64 struct _IrrecoWindowManager
{
66 IrrecoData
*irreco_data
;
68 IrrecoWindowEdit
*edit_window
;
69 IrrecoWindowUser
*user_window
;
71 IrrecoWindowId current_window
;
72 IrrecoButtonLayout
*current_layout
;
74 IrrecoWindowId to_be_destroyed
;
79 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
81 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
85 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
87 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
88 IrrecoWindowManager
*irreco_window_manager_create(IrrecoData
* irreco_data
);
89 void irreco_window_manager_destroy(IrrecoWindowManager
* manager
);
90 void irreco_window_manager_show(IrrecoWindowManager
* manager
,
92 void irreco_window_manager_set_layout(IrrecoWindowManager
* manager
,
93 IrrecoButtonLayout
* layout
);
94 GtkWindow
*irreco_window_manager_get_gtk_window(IrrecoWindowManager
* manager
);
97 #endif /* __IRRECO_WINDOW_MANAGER_H__ */