More parameter updating.

This commit is contained in:
Pietro Gagliardi 2015-12-17 13:54:54 -05:00
parent 12a94404aa
commit 4e015cf4d6
1 changed files with 11 additions and 14 deletions

25
ui.h
View File

@ -302,18 +302,14 @@ struct uiAreaDrawParams {
uiDrawContext *Context; uiDrawContext *Context;
// TODO document that this is only defined for nonscrolling areas // TODO document that this is only defined for nonscrolling areas
// TODO rename to AreaWidth/Height? double AreaWidth;
double ClientWidth; double AreaHeight;
double ClientHeight;
// TODO keep this? // TODO keep this?
intmax_t ClipX; double ClipX;
intmax_t ClipY; double ClipY;
intmax_t ClipWidth; double ClipWidth;
intmax_t ClipHeight; double ClipHeight;
intmax_t HScrollPos;
intmax_t VScrollPos;
}; };
typedef struct uiDrawPath uiDrawPath; typedef struct uiDrawPath uiDrawPath;
@ -464,14 +460,15 @@ typedef enum uiModifiers {
uiModifierSuper = 1 << 3, uiModifierSuper = 1 << 3,
} uiModifiers; } uiModifiers;
// TODO document drag captures
struct uiAreaMouseEvent { struct uiAreaMouseEvent {
// TODO document what these mean for scrolling areas
double X; double X;
double Y; double Y;
double ClientWidth; // TODO see draw above
double ClientHeight; double AreaWidth;
intmax_t HScrollPos; double AreaHeight;
intmax_t VScrollPos;
uintmax_t Down; uintmax_t Down;
uintmax_t Up; uintmax_t Up;