summaryrefslogtreecommitdiff
path: root/gfx/gfx.h
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-26 01:29:12 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-26 01:40:30 -0300
commit910608ba17c7ad3cba78d274d0bbc4037042e145 (patch)
treeecd35fbe8403eaddccd4282bd63d35e628f59db5 /gfx/gfx.h
parent975bcea4f1735372eb8d25dba32b61c3670af0d8 (diff)
downloadeeshow-910608ba17c7ad3cba78d274d0bbc4037042e145.tar.gz
eeshow-910608ba17c7ad3cba78d274d0bbc4037042e145.tar.bz2
eeshow-910608ba17c7ad3cba78d274d0bbc4037042e145.zip
pass text style to gfx_text{,_width} and related functions
Diffstat (limited to 'gfx/gfx.h')
-rw-r--r--gfx/gfx.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/gfx/gfx.h b/gfx/gfx.h
index 330a2fb..85fdc32 100644
--- a/gfx/gfx.h
+++ b/gfx/gfx.h
@@ -35,10 +35,12 @@ struct gfx_ops {
void (*arc)(void *ctx, int x, int y, int r, int sa, int ea,
int color, int fill_color, unsigned layer);
void (*text)(void *ctx, int x, int y, const char *s, unsigned size,
- enum text_align align, int rot, unsigned color, unsigned layer);
+ enum text_align align, int rot, enum text_style style,
+ unsigned color, unsigned layer);
void (*tag)(void *ctx, const char *s,
int points, const int x[points], const int y[points]);
- unsigned (*text_width)(void *ctx, const char *s, unsigned size);
+ unsigned (*text_width)(void *ctx, const char *s, unsigned size,
+ enum text_style style);
void *(*init)(void);
bool (*args)(void *ctx, int argc, char *const *argv);
void (*sheet_name)(void *ctx, const char *name);
@@ -61,10 +63,12 @@ void gfx_circ(struct gfx *gfx,
void gfx_arc(struct gfx *gfx, int x, int y, int r, int sa, int ea,
int color, int fill_color, unsigned layer);
void gfx_text(struct gfx *gfx, int x, int y, const char *s, unsigned size,
- enum text_align align, int rot, unsigned color, unsigned layer);
+ enum text_align align, int rot, enum text_style style,
+ unsigned color, unsigned layer);
void gfx_tag(struct gfx *gfx, const char *s,
unsigned points, const int x[points], int const y[points]);
-unsigned gfx_text_width(struct gfx *gfx, const char *s, unsigned size);
+unsigned gfx_text_width(struct gfx *gfx, const char *s, unsigned size,
+ enum text_style style);
/* inititalization and termination */