summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-02 09:57:34 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-02 09:57:34 (GMT)
commite7c21fc83758b9431bce474c5ba12eec2e20ac10 (patch)
tree7ad0c23e20211a0dd04e6dee733e167ef5e33142 /gfx
parent7b41ab8c0533457254454c903e4c67b96891ea0d (diff)
downloadeeshow-e7c21fc83758b9431bce474c5ba12eec2e20ac10.zip
eeshow-e7c21fc83758b9431bce474c5ba12eec2e20ac10.tar.gz
eeshow-e7c21fc83758b9431bce474c5ba12eec2e20ac10.tar.bz2
gfx/gfx.c: add section comments
Diffstat (limited to 'gfx')
-rw-r--r--gfx/gfx.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gfx/gfx.c b/gfx/gfx.c
index c07d211..2599131 100644
--- a/gfx/gfx.c
+++ b/gfx/gfx.c
@@ -27,6 +27,9 @@ struct gfx {
};
+/* ----- Wrappers for graphis primitives ----------------------------------- */
+
+
void gfx_line(struct gfx *gfx,
int sx, int sy, int ex, int ey, int color, unsigned layer)
{
@@ -104,6 +107,9 @@ unsigned gfx_text_width(struct gfx *gfx, const char *s, unsigned size,
}
+/* ----- Initialization ---------------------------------------------------- */
+
+
struct gfx *gfx_init(const struct gfx_ops *ops)
{
struct gfx *new;
@@ -122,6 +128,9 @@ bool gfx_args(struct gfx *gfx, int argc, char *const *argv)
}
+/* ----- Access ------------------------------------------------------------ */
+
+
void gfx_sheet_name(struct gfx *gfx, const char *name)
{
if (gfx->ops->sheet_name)
@@ -148,6 +157,9 @@ void *gfx_user(struct gfx *gfx)
}
+/* ----- Termination ------------------------------------------------------- */
+
+
void gfx_destroy(struct gfx *gfx)
{
free(gfx);