aboutsummaryrefslogtreecommitdiff
path: root/src/font.h
diff options
context:
space:
mode:
authorJohn Ankarstr\xf6m <john@ankarstrom.se>2021-05-29 12:54:47 +0200
committerJohn Ankarstr\xf6m <john@ankarstrom.se>2021-05-29 13:18:40 +0200
commita041d9898e6d699bd8c0c25482ec574feb03c547 (patch)
tree7f094e33fb530152c3ab6238ce7300750b47addb /src/font.h
downloadjwm-a041d9898e6d699bd8c0c25482ec574feb03c547.tar.gz
First commit
This is the original state of the released tarball for JWM 1.8, which will serve as my starting point for further modifications.
Diffstat (limited to 'src/font.h')
-rw-r--r--src/font.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/font.h b/src/font.h
new file mode 100644
index 0000000..fe1c0c5
--- /dev/null
+++ b/src/font.h
@@ -0,0 +1,43 @@
+/**
+ * @file font.h
+ * @author Joe Wingbermuehle
+ * @date 2004-2006
+ *
+ * @brief Header for the font functions.
+ *
+ */
+
+#ifndef FONT_H
+#define FONT_H
+
+#include "color.h"
+
+typedef enum {
+
+ FONT_BORDER,
+ FONT_MENU,
+ FONT_TASK,
+ FONT_POPUP,
+ FONT_CLOCK,
+ FONT_TRAY,
+ FONT_TRAYBUTTON,
+
+ FONT_COUNT
+
+} FontType;
+
+void InitializeFonts();
+void StartupFonts();
+void ShutdownFonts();
+void DestroyFonts();
+
+void SetFont(FontType type, const char *value);
+
+void RenderString(Drawable d, FontType font, ColorType color,
+ int x, int y, int width, Region region, const char *str);
+
+int GetStringWidth(FontType type, const char *str);
+int GetStringHeight(FontType type);
+
+#endif
+