aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2009-12-15 03:26:22 +0000
committerokan2009-12-15 03:26:22 +0000
commit862a1793f0990088013563e197c67fe962ed8006 (patch)
treeb226af3e2782aab84f0c9add2bff94592a5100ce /calmwm.h
parent9082be335d81f4e580013286bf4c35241ef89279 (diff)
downloadcwm-862a1793f0990088013563e197c67fe962ed8006.tar.gz
rid ourselves of these functional macros; convert to real functions.
ok oga@
Diffstat (limited to '')
-rw-r--r--calmwm.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/calmwm.h b/calmwm.h
index 4aa298b..7052c78 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: calmwm.h,v 1.111 2009/12/15 03:24:36 okan Exp $
+ * $Id: calmwm.h,v 1.112 2009/12/15 03:26:22 okan Exp $
*/
#ifndef _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;