~ubuntu-branches/ubuntu/utopic/xneur/utopic

« back to all changes in this revision

Viewing changes to lib/main/window.h

  • Committer: Bazaar Package Importer
  • Author(s): Alexander GQ Gerasiov
  • Date: 2009-08-21 15:46:47 UTC
  • mfrom: (1.1.5 upstream) (2.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090821154647-tkntx3xle87fnqoi
Tags: 0.9.5.1-2
* debian/* switching to CDBS.
* Added 05_nonewline_fix.patch: fix building with gcc4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  This program is free software; you can redistribute it and/or modify
 
3
 *  it under the terms of the GNU General Public License as published by
 
4
 *  the Free Software Foundation; either version 2 of the License, or
 
5
 *  (at your option) any later version.
 
6
 *
 
7
 *  This program is distributed in the hope that it will be useful,
 
8
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
 *  GNU General Public License for more details.
 
11
 *
 
12
 *  You should have received a copy of the GNU General Public License
 
13
 *  along with this program; if not, write to the Free Software
 
14
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
15
 *
 
16
 *  Copyright (C) 2006-2009 XNeur Team
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef _WINDOW_H_
 
21
#define _WINDOW_H_
 
22
 
 
23
#include <X11/Xutil.h>
 
24
 
 
25
struct _window
 
26
{
 
27
        struct _keymap *keymap;
 
28
 
 
29
        Display *display;
 
30
        Window window;
 
31
 
 
32
        Window flag_window;
 
33
 
 
34
        Atom close_atom;
 
35
        Atom protocols_atom;
 
36
 
 
37
        int  (*create) (struct _window *p);
 
38
        void (*destroy) (struct _window *p);
 
39
        void (*move_window) (struct _window *p, int x, int y);
 
40
        int  (*init_keymap) (struct _window *p);
 
41
        void (*uninit) (struct _window *p);
 
42
};
 
43
 
 
44
struct _window* window_init(void);
 
45
 
 
46
#endif /* _WINDOW_H_ */