toaruos/userspace/lib/shmemfonts.h
Kevin Lange 8e9ee3d68e Decoration themes, sort of
A surprise x-mas gift, the old theme is back when WM_THEME=simple is set
2012-12-12 22:42:48 -08:00

29 lines
913 B
C

#ifndef SHMEMFONTS_H
#define SHMEMFONTS_H
#include "graphics.h"
#include "window.h"
void init_shmemfonts();
void draw_string(gfx_context_t * ctx, int x, int y, uint32_t fg, char * string);
uint32_t draw_string_width(char * string);
void draw_string_shadow(gfx_context_t * ctx, int x, int y, uint32_t fg, char * string, uint32_t shadow_color, int darkness, int offset_x, int offset_y, double radius);
void set_font_size(int size);
void set_text_opacity(float new_opacity);
void set_font_face(int face_num);
char * shmem_font_name(int i);
#define FONT_SANS_SERIF 0
#define FONT_SANS_SERIF_BOLD 1
#define FONT_SANS_SERIF_ITALIC 2
#define FONT_SANS_SERIF_BOLD_ITALIC 3
#define FONT_MONOSPACE 4
#define FONT_MONOSPACE_BOLD 5
#define FONT_MONOSPACE_ITALIC 6
#define FONT_MONOSPACE_BOLD_ITALIC 7
#define FONT_JAPANESE 8
#define FONTS_TOTAL 9
#endif