Mercurial > MadButterfly
comparison include/mb_redraw_man.h @ 822:586e50f82c1f
Unify coding style tag for emacs and vim.
author | Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com> |
---|---|
date | Tue, 14 Sep 2010 01:08:39 +0800 |
parents | f43224bf3524 |
children | 048cc704bef7 |
comparison
equal
deleted
inserted
replaced
821:bfdc82bbd6e4 | 822:586e50f82c1f |
---|---|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- | |
2 // vim: sw=4:ts=8:sts=4 | |
1 #ifndef __REDRAW_MAN_H_ | 3 #ifndef __REDRAW_MAN_H_ |
2 #define __REDRAW_MAN_H_ | 4 #define __REDRAW_MAN_H_ |
3 | 5 |
4 #include "mb_graph_engine.h" | 6 #include "mb_graph_engine.h" |
5 #include "mb_tools.h" | 7 #include "mb_tools.h" |
76 subject_t *addrm_monitor; /*!< \brief Monitor adding/removing observers | 78 subject_t *addrm_monitor; /*!< \brief Monitor adding/removing observers |
77 * to/from mouse event subjects. | 79 * to/from mouse event subjects. |
78 * \see addrm_monitor_hdlr() | 80 * \see addrm_monitor_hdlr() |
79 */ | 81 */ |
80 mb_obj_t *last_mouse_over; | 82 mb_obj_t *last_mouse_over; |
81 void *rt; /*!< \brief This is a pointer to the current | 83 void *rt; /*!< \brief This is a pointer to the current |
82 * graphic backend. | 84 * graphic backend. |
83 * \see rdman_attach_backend() | 85 * \see rdman_attach_backend() |
84 */ | 86 */ |
85 mb_prop_store_t props; | 87 mb_prop_store_t props; |
86 mb_img_ldr_t *img_ldr; /*!< \brief Image Loader. | 88 mb_img_ldr_t *img_ldr; /*!< \brief Image Loader. |
87 * This is initialized by backend. | 89 * This is initialized by backend. |
213 | 215 |
214 /*! \brief Attach backend to the redraw manager so that we can hide the backend from the users. | 216 /*! \brief Attach backend to the redraw manager so that we can hide the backend from the users. |
215 * | 217 * |
216 */ | 218 */ |
217 #define rdman_attach_backend(rdman,backend) (((rdman)->rt)=(backend)) | 219 #define rdman_attach_backend(rdman,backend) (((rdman)->rt)=(backend)) |
218 /*! \brief Load sprite dymanicly from the shared object module. | 220 /*! \brief Load sprite dymanicly from the shared object module. |
219 * | 221 * |
220 * The search path can be changed by sprite_set_search_path. The name | 222 * The search path can be changed by sprite_set_search_path. The name |
221 * can have a relative path in the front of it. | 223 * can have a relative path in the front of it. |
222 * This function will search the object in the current working directory | 224 * This function will search the object in the current working directory |
223 * and then search the system search path. | 225 * and then search the system search path. |
224 */ | 226 */ |
247 * - timer event | 249 * - timer event |
248 * - image loader(?) | 250 * - image loader(?) |
249 * - render manager(?) | 251 * - render manager(?) |
250 */ | 252 */ |
251 typedef struct { | 253 typedef struct { |
252 | 254 |
253 void *(*init)(const char *display,int w,int h); | 255 void *(*init)(const char *display,int w,int h); |
254 void (*free)(void *be); | 256 void (*free)(void *be); |
255 void (*add_event)(void *be,int type, int fd, mb_eventcb_t f,void *arg); | 257 void (*add_event)(void *be,int type, int fd, mb_eventcb_t f,void *arg); |
256 void (*remove_event)(void *be,int type, int fd); | 258 void (*remove_event)(void *be,int type, int fd); |
257 void (*loop)(void *be); | 259 void (*loop)(void *be); |