More parameter updating.
This commit is contained in:
parent
12a94404aa
commit
4e015cf4d6
25
ui.h
25
ui.h
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue