Mercurial > MadButterfly
annotate include/mb_X_supp.h @ 277:5006e4abdda5
Allow any elemnt to be a symbol.
author | wycc |
---|---|
date | Sun, 04 Jan 2009 12:01:41 +0800 |
parents | 530bb7728546 |
children | e8a784a306d0 |
rev | line source |
---|---|
78 | 1 #ifndef __X_SUPP_H_ |
2 #define __X_SUPP_H_ | |
3 | |
4 #include <X11/Xlib.h> | |
83 | 5 #include "mb_types.h" |
78 | 6 #include "mb_timer.h" |
186
530bb7728546
Move header files to $(top_srcdir)/include/ and prefixed with 'mb_'.
Thinker K.F. Li <thinker@branda.to>
parents:
185
diff
changeset
|
7 #include "mb_redraw_man.h" |
78 | 8 |
122
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
9 /*! \ingroup xkb |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
10 * @{ |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
11 */ |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
12 typedef struct _X_kb_info X_kb_info_t; |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
13 |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
14 struct _X_kb_event { |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
15 event_t event; |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
16 int keycode; |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
17 int sym; |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
18 }; |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
19 typedef struct _X_kb_event X_kb_event_t; |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
20 |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
21 /* @} */ |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
22 |
78 | 23 typedef struct _X_MB_runtime X_MB_runtime_t; |
24 | |
83 | 25 extern void X_MB_handle_connection(X_MB_runtime_t *rt); |
122
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
26 extern X_MB_runtime_t *X_MB_new(const char *display_name, int w, int h); |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
27 extern void X_MB_free(X_MB_runtime_t *xmb_rt); |
78 | 28 |
122
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
29 extern subject_t *X_MB_kbevents(X_MB_runtime_t *xmb_rt); |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
30 extern redraw_man_t *X_MB_rdman(X_MB_runtime_t *xmb_rt); |
17e97e92b76e
Encapsulate X_MB_runtime_t and support X keyboard events.
Thinker K.F. Li <thinker@branda.to>
parents:
83
diff
changeset
|
31 extern mb_tman_t *X_MB_tman(X_MB_runtime_t *xmb_rt); |
131
6a8588df68af
Tank can change direction and navigate on the mud area
Thinker K.F. Li <thinker@branda.to>
parents:
122
diff
changeset
|
32 extern ob_factory_t *X_MB_ob_factory(X_MB_runtime_t *xmb_rt); |
78 | 33 |
34 #endif |