CtrlCore: Pen attributes (pressure etc..) support in Win32

git-svn-id: svn://ultimatepp.org/upp/trunk@15827 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-03-09 11:01:57 +00:00
parent bebfe1f581
commit b43185fc1e
3 changed files with 71 additions and 0 deletions

View file

@ -674,6 +674,14 @@ private:
static bool IsNoLayoutZoom;
static void Csizeinit();
static void (*skin)();
static bool pen;
static bool pen_barrel;
static bool pen_inverted;
static bool pen_eraser;
static double pen_pressure;
static double pen_rotation;
static Pointf pen_tilt;
friend void InitRichTextZoom();
friend void AvoidPaintingCheck__();
@ -1289,6 +1297,14 @@ public:
static int64 GetEventId() { return eventid; }
static bool IsPointerPen() { return pen; }
static bool IsPenBarrelPressed() { return pen_barrel; }
static bool IsPenInverted() { return pen_inverted; }
static bool IsPenEraserPressed() { return pen_eraser; }
static double GetPenPressure() { return pen_pressure; }
static double GetPenRotation() { return pen_rotation; }
static Pointf GetPenTilt() { return pen_tilt; }
Ctrl();
virtual ~Ctrl();