view include/mb_X_supp.h @ 446:2437047b8bb8

Fix bug of propertional shifting of sh_stext_t. Original - sh_stext_t does not apply shifting of text himself to scaled font face, but - apply aggreagated matrix to font face. - shifting in parent parent coord_t would applied to scaled font. - amount of shifting is also multiplied by aggreagated matrix. - It means shiftings of parent coord_ts are applied two times. Now, - remove x, y shifting from aggreagated matrices before applying to scaled fonts.
author Thinker K.F. Li <thinker@branda.to>
date Sun, 02 Aug 2009 10:59:59 +0800
parents e8a784a306d0
children af4b506ad56f
line wrap: on
line source

#ifndef __X_SUPP_H_
#define __X_SUPP_H_

#include <X11/Xlib.h>
#include "mb_types.h"
#include "mb_timer.h"
#include "mb_redraw_man.h"
#include "mb_img_ldr.h"

/*! \ingroup xkb
 * @{
 */
typedef struct _X_kb_info X_kb_info_t;

struct _X_kb_event {
    event_t event;
    int keycode;
    int sym;
};
typedef struct _X_kb_event X_kb_event_t;

/* @} */

typedef struct _X_MB_runtime X_MB_runtime_t;

extern void X_MB_handle_connection(X_MB_runtime_t *rt);
extern X_MB_runtime_t *X_MB_new(const char *display_name, int w, int h);
extern void X_MB_free(X_MB_runtime_t *xmb_rt);

extern subject_t *X_MB_kbevents(X_MB_runtime_t *xmb_rt);
extern redraw_man_t *X_MB_rdman(X_MB_runtime_t *xmb_rt);
extern mb_tman_t *X_MB_tman(X_MB_runtime_t *xmb_rt);
extern ob_factory_t *X_MB_ob_factory(X_MB_runtime_t *xmb_rt);
extern mb_img_ldr_t *X_MB_img_ldr(X_MB_runtime_t *xmb_rt);

#endif