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

« back to all changes in this revision

Viewing changes to lib/main/keymap.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 _KEYMAP_H_
 
21
#define _KEYMAP_H_
 
22
 
 
23
#include <X11/Xutil.h>
 
24
 
 
25
int   get_keycode_mod(int keyboard_group);
 
26
int   get_languages_mask(void);
 
27
void  get_keysyms_by_string(char *keyname, KeySym *Lower, KeySym *Upper);
 
28
char* keycode_to_symbol(KeyCode kc, int group, int state);
 
29
 
 
30
struct _keymap
 
31
{
 
32
        KeySym *keymap;
 
33
 
 
34
        int latin_group;
 
35
        int latin_group_mask;
 
36
        int min_keycode;
 
37
        int max_keycode;
 
38
        int keysyms_per_keycode;
 
39
        int keyboard_groups_count;
 
40
 
 
41
        char  (*get_ascii)(struct _keymap *p, const char *sym, KeyCode *kc, int *modifier);
 
42
        char  (*get_cur_ascii_char) (struct _keymap *p, XEvent e);
 
43
        void  (*convert_text_to_ascii)(struct _keymap *p, char *text, KeyCode *kc, int *kc_mod);
 
44
        void  (*char_to_keycode)(struct _keymap *p, char ch, KeyCode *kc, int *modifier);
 
45
        void  (*print_keymaps)(struct _keymap *p);
 
46
        char* (*lower_by_keymaps)(struct _keymap *p, int gr, char *text);
 
47
        void  (*uninit) (struct _keymap *p);
 
48
};
 
49
 
 
50
struct _keymap *keymap_init(void);
 
51
 
 
52
#endif /* _KEYMAP_H_ */