mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 04:23:32 +00:00
[MSPAINT] Larger/smaller pen nib on Ctrl+Plus/Minus (#5738)
- Introduce the concept of pen width (not line width) to the tools model. - Enable changing pen/line width by Ctrl+Plus/Minus key combination in TOOL_PEN, TOOL_LINE, TOOL_BEZIER, TOOL_RECT, TOOL_SHAPE, TOO_ELLIPSE, and TOOL_RRECT tools. CORE-19094
This commit is contained in:
parent
cbc63d876c
commit
f2a012240f
6 changed files with 89 additions and 27 deletions
|
@ -67,6 +67,7 @@ class ToolsModel
|
|||
{
|
||||
private:
|
||||
int m_lineWidth;
|
||||
INT m_penWidth;
|
||||
int m_shapeStyle;
|
||||
int m_brushStyle;
|
||||
TOOLTYPE m_activeTool;
|
||||
|
@ -85,8 +86,15 @@ public:
|
|||
~ToolsModel();
|
||||
|
||||
BOOL IsSelection() const;
|
||||
|
||||
int GetLineWidth() const;
|
||||
void SetLineWidth(int nLineWidth);
|
||||
void MakeLineThickerOrThinner(BOOL bThinner);
|
||||
|
||||
INT GetPenWidth() const;
|
||||
void SetPenWidth(INT nPenWidth);
|
||||
void MakePenThickerOrThinner(BOOL bThinner);
|
||||
|
||||
int GetShapeStyle() const;
|
||||
void SetShapeStyle(int nShapeStyle);
|
||||
int GetBrushStyle() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue