From 4e015cf4d6756abd93c9e7d56c57c154f5e22f9f Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Thu, 17 Dec 2015 13:54:54 -0500 Subject: [PATCH] More parameter updating. --- ui.h | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/ui.h b/ui.h index 9aaec2e3..fceedfb8 100644 --- a/ui.h +++ b/ui.h @@ -302,18 +302,14 @@ struct uiAreaDrawParams { uiDrawContext *Context; // TODO document that this is only defined for nonscrolling areas - // TODO rename to AreaWidth/Height? - double ClientWidth; - double ClientHeight; + double AreaWidth; + double AreaHeight; // TODO keep this? - intmax_t ClipX; - intmax_t ClipY; - intmax_t ClipWidth; - intmax_t ClipHeight; - - intmax_t HScrollPos; - intmax_t VScrollPos; + double ClipX; + double ClipY; + double ClipWidth; + double ClipHeight; }; typedef struct uiDrawPath uiDrawPath; @@ -464,14 +460,15 @@ typedef enum uiModifiers { uiModifierSuper = 1 << 3, } uiModifiers; +// TODO document drag captures struct uiAreaMouseEvent { + // TODO document what these mean for scrolling areas double X; double Y; - double ClientWidth; - double ClientHeight; - intmax_t HScrollPos; - intmax_t VScrollPos; + // TODO see draw above + double AreaWidth; + double AreaHeight; uintmax_t Down; uintmax_t Up;