mirror of
https://github.com/jjsullivan5196/wvkbd.git
synced 2025-04-19 07:16:47 +02:00
Remove useless duplication
This commit is contained in:
parent
b65ea995f1
commit
efd00ad31b
38
drw.h
38
drw.h
@ -4,8 +4,23 @@
|
|||||||
#include <pango/pangocairo.h>
|
#include <pango/pangocairo.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
struct drw;
|
struct drw {
|
||||||
struct drwsurf;
|
struct wl_shm *shm;
|
||||||
|
PangoFontDescription *font_description;
|
||||||
|
};
|
||||||
|
struct drwsurf {
|
||||||
|
uint32_t width, height, scale, size;
|
||||||
|
bool dirty;
|
||||||
|
|
||||||
|
struct drw *ctx;
|
||||||
|
struct wl_surface *surf;
|
||||||
|
struct wl_buffer *buf;
|
||||||
|
struct wl_shm *shm;
|
||||||
|
unsigned char *pool_data;
|
||||||
|
|
||||||
|
cairo_t *cairo;
|
||||||
|
PangoLayout *layout;
|
||||||
|
};
|
||||||
struct kbd;
|
struct kbd;
|
||||||
|
|
||||||
void drwsurf_resize(struct drwsurf *ds, uint32_t w, uint32_t h, uint32_t s);
|
void drwsurf_resize(struct drwsurf *ds, uint32_t w, uint32_t h, uint32_t s);
|
||||||
@ -29,23 +44,4 @@ drw_draw_text(struct drwsurf *d, Color color,
|
|||||||
uint32_t
|
uint32_t
|
||||||
setup_buffer(struct drwsurf *drwsurf);
|
setup_buffer(struct drwsurf *drwsurf);
|
||||||
|
|
||||||
struct drw {
|
|
||||||
struct wl_shm *shm;
|
|
||||||
PangoFontDescription *font_description;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct drwsurf {
|
|
||||||
uint32_t width, height, scale, size;
|
|
||||||
bool dirty;
|
|
||||||
|
|
||||||
struct drw *ctx;
|
|
||||||
struct wl_surface *surf;
|
|
||||||
struct wl_buffer *buf;
|
|
||||||
struct wl_shm *shm;
|
|
||||||
unsigned char *pool_data;
|
|
||||||
|
|
||||||
cairo_t *cairo;
|
|
||||||
PangoLayout *layout;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user