Modules/Graphics/public/WindowTypes.hpp
Шурупов Илья Викторович 82543e4594 Show the brush contour as the canvas cursor
View > Cursor offers Contour, Brush, Arrow and Cross like the reference
app, with options to show the contour for eraser and smudge, add a
crosshair to small contours, fill the contour with a spotlight and hide
the cursor for pens. The contour follows brush size, roundness, angle,
zoom and view rotation; the settings are saved with sessions. Windows can
now use crosshair and hidden pointer shapes.
2026-10-17 21:16:25 +03:00

24 lines
400 B
C++

#pragma once
namespace tp {
enum class CursorShape {
Default,
Pointer,
Text,
Move,
Grab,
Grabbing,
ResizeHorizontal,
ResizeVertical,
ResizeNorthWestSouthEast,
ResizeNorthEastSouthWest,
NotAllowed,
Crosshair,
Hidden
};
enum class WindowEdge { None, Top, Bottom, Left, Right, TopLeft, TopRight, BottomLeft, BottomRight };
CursorShape cursorForEdge(WindowEdge edge);
}