Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qxcbcursorfont.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5// copied from <X11/cursorfont.h>
6
7#pragma once
8
9#define XC_num_glyphs 154
10#define XC_X_cursor 0
11#define XC_arrow 2
12#define XC_based_arrow_down 4
13#define XC_based_arrow_up 6
14#define XC_boat 8
15#define XC_bogosity 10
16#define XC_bottom_left_corner 12
17#define XC_bottom_right_corner 14
18#define XC_bottom_side 16
19#define XC_bottom_tee 18
20#define XC_box_spiral 20
21#define XC_center_ptr 22
22#define XC_circle 24
23#define XC_clock 26
24#define XC_coffee_mug 28
25#define XC_cross 30
26#define XC_cross_reverse 32
27#define XC_crosshair 34
28#define XC_diamond_cross 36
29#define XC_dot 38
30#define XC_dotbox 40
31#define XC_double_arrow 42
32#define XC_draft_large 44
33#define XC_draft_small 46
34#define XC_draped_box 48
35#define XC_exchange 50
36#define XC_fleur 52
37#define XC_gobbler 54
38#define XC_gumby 56
39#define XC_hand1 58
40#define XC_hand2 60
41#define XC_heart 62
42#define XC_icon 64
43#define XC_iron_cross 66
44#define XC_left_ptr 68
45#define XC_left_side 70
46#define XC_left_tee 72
47#define XC_leftbutton 74
48#define XC_ll_angle 76
49#define XC_lr_angle 78
50#define XC_man 80
51#define XC_middlebutton 82
52#define XC_mouse 84
53#define XC_pencil 86
54#define XC_pirate 88
55#define XC_plus 90
56#define XC_question_arrow 92
57#define XC_right_ptr 94
58#define XC_right_side 96
59#define XC_right_tee 98
60#define XC_rightbutton 100
61#define XC_rtl_logo 102
62#define XC_sailboat 104
63#define XC_sb_down_arrow 106
64#define XC_sb_h_double_arrow 108
65#define XC_sb_left_arrow 110
66#define XC_sb_right_arrow 112
67#define XC_sb_up_arrow 114
68#define XC_sb_v_double_arrow 116
69#define XC_shuttle 118
70#define XC_sizing 120
71#define XC_spider 122
72#define XC_spraycan 124
73#define XC_star 126
74#define XC_target 128
75#define XC_tcross 130
76#define XC_top_left_arrow 132
77#define XC_top_left_corner 134
78#define XC_top_right_corner 136
79#define XC_top_side 138
80#define XC_top_tee 140
81#define XC_trek 142
82#define XC_ul_angle 144
83#define XC_umbrella 146
84#define XC_ur_angle 148
85#define XC_watch 150
86#define XC_xterm 152
void updateContext()
void changeCursor(QCursor *cursor, QWindow *window) override
This method is called by Qt whenever the cursor graphic should be changed.
QPoint pos() const override
QXcbCursor(QXcbConnection *conn, QXcbScreen *screen)
void setPos(const QPoint &pos) override
QSize size() const override
Returns the size of the cursor, in native pixels.
xcb_connection_t * xcb_connection() const
Definition qxcbobject.h:20
QXcbObject(QXcbConnection *connection=nullptr)
Definition qxcbobject.h:14
xcb_window_t root() const
Definition qxcbscreen.h:43
void removeCallbackForHandle(const QByteArray &property, void *handle)
void removeCallbackForHandle(void *handle)
void registerCallbackForProperty(const QByteArray &property, PropertyChangeFunc func, void *handle)
QVariant setting(const QByteArray &property) const
bool initialized() const
void(* PropertyChangeFunc)(QXcbVirtualDesktop *screen, const QByteArray &name, const QVariant &property, void *handle)
void handlePropertyNotifyEvent(const xcb_property_notify_event_t *event) override
#define Q_XCB_REPLY(call,...)
static const uint8_t mcur_ver_bits[]
static const uint8_t * cursor_bits16[]
static const uint8_t mcur_bdiag_bits[]
static xcb_font_t cursorFont
static const uint8_t busy_bits[]
static const uint8_t closedhand_bits[]
static const uint8_t whatsthism_bits[]
static int cursorIdForShape(int cshape)
static const uint8_t openhandm_bits[]
static const uint8_t forbiddenm_bits[]
static const uint8_t cur_fdiag_bits[]
static const uint8_t cur_ver_bits[]
static uint8_t cur_blank_bits[]
static int cursorCount
static const std::vector< const char * > cursorNames[]
static const uint8_t openhand_bits[]
static const uint8_t mcur_fdiag_bits[]
static const uint8_t cur_bdiag_bits[]
static const uint8_t closedhandm_bits[]
static const uint8_t cur_hor_bits[]
static const uint8_t mcur_hor_bits[]
static const uint8_t vsplitm_bits[]
static const uint8_t *const cursor_bits32[]
static const uint8_t whatsthis_bits[]
static const uint8_t busym_bits[]
static const uint8_t hsplitm_bits[]
static const uint8_t *const cursor_bits20[]
static const uint8_t vsplit_bits[]
static const uint8_t hsplit_bits[]
static const uint8_t forbidden_bits[]
#define XC_circle
#define XC_hand2
#define XC_xterm
#define XC_crosshair
#define XC_watch
#define XC_bottom_right_corner
#define XC_fleur
#define XC_center_ptr
#define XC_sb_h_double_arrow
#define XC_left_ptr
#define XC_question_arrow
#define XC_sb_v_double_arrow
#define XC_top_right_corner
xcb_pixmap_t qt_xcb_XPixmapFromBitmap(QXcbScreen *screen, const QImage &image)
QT_BEGIN_NAMESPACE bool qt_xcb_imageFormatForVisual(QXcbConnection *connection, uint8_t depth, const xcb_visualtype_t *visual, QImage::Format *imageFormat, bool *needsRgbSwap=nullptr)
Definition qxcbimage.cpp:69
xcb_cursor_t qt_xcb_createCursorXRender(QXcbScreen *screen, const QImage &image, const QPoint &spot)
QPixmap qt_xcb_pixmapFromXPixmap(QXcbConnection *connection, xcb_pixmap_t pixmap, int width, int height, int depth, const xcb_visualtype_t *visual)