mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
rid ourselves of these functional macros; convert to real functions.
ok oga@
This commit is contained in:
parent
597cb25820
commit
2ad2b5f31d
7
calmwm.h
7
calmwm.h
@ -516,16 +516,15 @@ void group_sticky_toggle_exit(struct client_ctx *);
|
||||
void group_autogroup(struct client_ctx *);
|
||||
void group_movetogroup(struct client_ctx *, int);
|
||||
|
||||
int font_ascent(struct screen_ctx *);
|
||||
int font_descent(struct screen_ctx *);
|
||||
u_int font_height(struct screen_ctx *);
|
||||
void font_init(struct screen_ctx *);
|
||||
int font_width(struct screen_ctx *, const char *, int);
|
||||
void font_draw(struct screen_ctx *, const char *, int,
|
||||
Drawable, int, int);
|
||||
XftFont *font_make(struct screen_ctx *, const char *);
|
||||
|
||||
#define font_ascent(sc) sc->font->ascent
|
||||
#define font_descent(sc) sc->font->descent
|
||||
#define font_height(sc) sc->fontheight
|
||||
|
||||
/* Externs */
|
||||
|
||||
extern Display *X_Dpy;
|
||||
|
18
font.c
18
font.c
@ -18,6 +18,24 @@
|
||||
|
||||
#include "calmwm.h"
|
||||
|
||||
int
|
||||
font_ascent(struct screen_ctx *sc)
|
||||
{
|
||||
return (sc->font->ascent);
|
||||
}
|
||||
|
||||
int
|
||||
font_descent(struct screen_ctx *sc)
|
||||
{
|
||||
return (sc->font->descent);
|
||||
}
|
||||
|
||||
u_int
|
||||
font_height(struct screen_ctx *sc)
|
||||
{
|
||||
return (sc->fontheight);
|
||||
}
|
||||
|
||||
void
|
||||
font_init(struct screen_ctx *sc)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user