Molybden API
Loading...
Searching...
No Matches
cursor.hpp
1// Copyright (c) 2000-2024 TeamDev. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_CURSOR_HPP
6#define MOLYBDEN_CURSOR_HPP
7
8#include "molybden/ui/bitmap.hpp"
9
10namespace molybden {
11
15enum class CursorType {
16 kUnspecified,
17 kPointer,
18 kCross,
19 kHand,
20 kIBeam,
21 kWait,
22 kHelp,
23 kEastResize,
24 kNorthResize,
25 kNorthEastResize,
26 kNorthWestResize,
27 kSouthResize,
28 kSouthEastResize,
29 kSouthWestResize,
30 kWestResize,
31 kNorthSouthResize,
32 kEastWestResize,
33 kNorthEastSouthWestResize,
34 kNorthWestSouthEastResize,
35 kColumnResize,
36 kRowResize,
37 kMiddlePanning,
38 kEastPanning,
39 kNorthPanning,
40 kNorthEastPanning,
41 kNorthWestPanning,
42 kSouthPanning,
43 kSouthEastPanning,
44 kSouthWestPanning,
45 kWestPanning,
46 kMove,
47 kVerticalText,
48 kCell,
49 kContextMenu,
50 kAlias,
51 kProgress,
52 kNoDrop,
53 kCopy,
54 kNone,
55 kNotAllowed,
56 kZoomIn,
57 kZoomOut,
58 kGrab,
59 kGrabbing,
60 kMiddlePanningVertical,
61 kMiddlePanningHorizontal,
62 kCustom,
63 kDndNone,
64 kDndMove,
65 kDndCopy,
66 kDndLink,
67 kEastWestNoResize,
68 kNorthSouthNoResize,
69 kNorthEastSouthWestNoResize,
70 kNorthWestSouthEastNoResize
71};
72
76struct Cursor {
80 CursorType type = CursorType::kUnspecified;
81
86
90 float bitmap_scale_factor = 1.0f;
91
96};
97
98} // namespace molybden
99
100#endif // MOLYBDEN_CURSOR_HPP
A binary image in the BGRA format.
Definition bitmap.hpp:17
The cursor details that describe both the standard and custom cursors.
Definition cursor.hpp:76
float bitmap_scale_factor
The scale factor for the custom cursor bitmap.
Definition cursor.hpp:90
Bitmap bitmap
The bitmap for the cursor.
Definition cursor.hpp:85
Point hotspot
The hotspot for the cursor.
Definition cursor.hpp:95
CursorType type
The cursor type.
Definition cursor.hpp:80
A pair of numbers that in general are used to define coordinates in the two-dimensional space.
Definition geometry.hpp:16