Issue #7034: Add single dot cursor mode

This commit is contained in:
L amander 2021-08-08 16:01:38 +02:00 committed by Jehan
parent 368e1d7b8a
commit 187d2e3390
8 changed files with 16 additions and 1 deletions

View File

@ -78,6 +78,7 @@ gimp_cursor_mode_get_type (void)
{ GIMP_CURSOR_MODE_TOOL_ICON, "GIMP_CURSOR_MODE_TOOL_ICON", "tool-icon" },
{ GIMP_CURSOR_MODE_TOOL_CROSSHAIR, "GIMP_CURSOR_MODE_TOOL_CROSSHAIR", "tool-crosshair" },
{ GIMP_CURSOR_MODE_CROSSHAIR, "GIMP_CURSOR_MODE_CROSSHAIR", "crosshair" },
{ GIMP_CURSOR_MODE_SINGLE_DOT, "GIMP_CURSOR_MODE_SINGLE_DOT", "single-dot" },
{ 0, NULL, NULL }
};
@ -86,6 +87,7 @@ gimp_cursor_mode_get_type (void)
{ GIMP_CURSOR_MODE_TOOL_ICON, NC_("cursor-mode", "Tool icon"), NULL },
{ GIMP_CURSOR_MODE_TOOL_CROSSHAIR, NC_("cursor-mode", "Tool icon with crosshair"), NULL },
{ GIMP_CURSOR_MODE_CROSSHAIR, NC_("cursor-mode", "Crosshair only"), NULL },
{ GIMP_CURSOR_MODE_SINGLE_DOT, NC_("cursor-mode", "Single Dot"), NULL },
{ 0, NULL, NULL }
};

View File

@ -52,7 +52,8 @@ typedef enum
{
GIMP_CURSOR_MODE_TOOL_ICON, /*< desc="Tool icon" >*/
GIMP_CURSOR_MODE_TOOL_CROSSHAIR, /*< desc="Tool icon with crosshair" >*/
GIMP_CURSOR_MODE_CROSSHAIR /*< desc="Crosshair only" >*/
GIMP_CURSOR_MODE_CROSSHAIR, /*< desc="Crosshair only" >*/
GIMP_CURSOR_MODE_SINGLE_DOT /*< desc="Single Dot" >*/
} GimpCursorMode;

View File

@ -270,6 +270,11 @@ gimp_display_shell_real_set_cursor (GimpDisplayShell *shell,
modifier = GIMP_CURSOR_MODIFIER_NONE;
}
break;
case GIMP_CURSOR_MODE_SINGLE_DOT:
cursor_type = GIMP_CURSOR_SINGLE_DOT;
tool_cursor = GIMP_TOOL_CURSOR_NONE;
break;
}
}

View File

@ -155,6 +155,10 @@ static GimpCursor gimp_cursors[] =
{
"cursor-side-top-left",
cursor_default_hot_x, cursor_default_hot_y
},
{
"cursor-single-dot",
cursor_default_hot_x, cursor_default_hot_y
}
};

View File

@ -207,6 +207,7 @@ typedef enum /*< skip >*/
GIMP_CURSOR_SIDE_BOTTOM_LEFT,
GIMP_CURSOR_SIDE_LEFT,
GIMP_CURSOR_SIDE_TOP_LEFT,
GIMP_CURSOR_SINGLE_DOT,
GIMP_CURSOR_LAST
} GimpCursorType;

View File

@ -47,6 +47,8 @@ CURSOR_IMAGES = \
cursor-side-top-right-x2.png \
cursor-side-top.png \
cursor-side-top-x2.png \
cursor-single-dot.png \
cursor-single-dot-x2.png \
cursor-zoom.png \
cursor-zoom-x2.png \
\

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B