From 601bced3ac95681e840621698f7254d66797de27 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 15 Sep 2015 09:18:54 -0400 Subject: [PATCH] More ui.h work. Seriously not sure what I'm going to do about text. --- gtkarea/ui.h | 3 +++ macarea/alt/ui.h | 3 +++ winarea/ui.h | 1 + 3 files changed, 7 insertions(+) diff --git a/gtkarea/ui.h b/gtkarea/ui.h index edede726..0cc74a5a 100644 --- a/gtkarea/ui.h +++ b/gtkarea/ui.h @@ -76,6 +76,7 @@ struct uiDrawStrokeParams { void uiDrawBeginPathRGB(uiDrawContext *, uint8_t, uint8_t, uint8_t); // TODO verify these aren't alpha premultiplied anywhere void uiDrawBeginPathRGBA(uiDrawContext *, uint8_t, uint8_t, uint8_t, uint8_t); +// TODO uiDrawBeginTextRGB(/RGBA?) void uiDrawMoveTo(uiDrawContext *, intmax_t, intmax_t); void uiDrawLineTo(uiDrawContext *, intmax_t, intmax_t); @@ -152,12 +153,14 @@ void uiDrawText(uiDrawContext *, const char *, uiDrawFont *, intmax_t, intmax_t) void uiDrawTextBlock(uiDrawContext *, const char *, uiDrawFont *, intmax_t, intmax_t, uiDrawTextBlockParams *); void uiDrawTextExtents(uiDrawContext *, const char *, uiDrawFont *, intmax_t *, intmax_t *); intmax_t uiDrawTextExtentsBlockHeight(uiDrawContext *, const char *, uiDrawFont *, uiDrawTextBlockParams *); +// TODO width for number of lines //TODOvoid uiDrawContextFontMetrics(uiDrawContext *, uiDrawFont *, uiDrawFontMetrics *); // TODO draw text, single line, control font // TODO draw text, wrapped to width, control font // TODO get text extents, single line, control font // TODO get text height for width, control font +// TODO width for number of lines, control font // TODO get font metrics, control font typedef enum uiModifiers uiModifiers; diff --git a/macarea/alt/ui.h b/macarea/alt/ui.h index edede726..0cc74a5a 100644 --- a/macarea/alt/ui.h +++ b/macarea/alt/ui.h @@ -76,6 +76,7 @@ struct uiDrawStrokeParams { void uiDrawBeginPathRGB(uiDrawContext *, uint8_t, uint8_t, uint8_t); // TODO verify these aren't alpha premultiplied anywhere void uiDrawBeginPathRGBA(uiDrawContext *, uint8_t, uint8_t, uint8_t, uint8_t); +// TODO uiDrawBeginTextRGB(/RGBA?) void uiDrawMoveTo(uiDrawContext *, intmax_t, intmax_t); void uiDrawLineTo(uiDrawContext *, intmax_t, intmax_t); @@ -152,12 +153,14 @@ void uiDrawText(uiDrawContext *, const char *, uiDrawFont *, intmax_t, intmax_t) void uiDrawTextBlock(uiDrawContext *, const char *, uiDrawFont *, intmax_t, intmax_t, uiDrawTextBlockParams *); void uiDrawTextExtents(uiDrawContext *, const char *, uiDrawFont *, intmax_t *, intmax_t *); intmax_t uiDrawTextExtentsBlockHeight(uiDrawContext *, const char *, uiDrawFont *, uiDrawTextBlockParams *); +// TODO width for number of lines //TODOvoid uiDrawContextFontMetrics(uiDrawContext *, uiDrawFont *, uiDrawFontMetrics *); // TODO draw text, single line, control font // TODO draw text, wrapped to width, control font // TODO get text extents, single line, control font // TODO get text height for width, control font +// TODO width for number of lines, control font // TODO get font metrics, control font typedef enum uiModifiers uiModifiers; diff --git a/winarea/ui.h b/winarea/ui.h index 1850f474..0cc74a5a 100644 --- a/winarea/ui.h +++ b/winarea/ui.h @@ -76,6 +76,7 @@ struct uiDrawStrokeParams { void uiDrawBeginPathRGB(uiDrawContext *, uint8_t, uint8_t, uint8_t); // TODO verify these aren't alpha premultiplied anywhere void uiDrawBeginPathRGBA(uiDrawContext *, uint8_t, uint8_t, uint8_t, uint8_t); +// TODO uiDrawBeginTextRGB(/RGBA?) void uiDrawMoveTo(uiDrawContext *, intmax_t, intmax_t); void uiDrawLineTo(uiDrawContext *, intmax_t, intmax_t);