Blender V5.0
BCursor Struct Reference

Public Attributes

const char * svg_source
blender::float2 hotspot
bool can_invert

Detailed Description

Blender custom cursor.

Definition at line 62 of file wm_cursors.cc.

Member Data Documentation

◆ can_invert

bool BCursor::can_invert

By default cursors are "light", allow dark themes to invert.

Definition at line 75 of file wm_cursors.cc.

Referenced by window_set_custom_cursor_generator(), and window_set_custom_cursor_pixmap().

◆ hotspot

blender::float2 BCursor::hotspot

A factor (0-1) from the top-left corner of the image (not of the document size).

Definition at line 71 of file wm_cursors.cc.

Referenced by window_set_custom_cursor_generator(), and window_set_custom_cursor_pixmap().

◆ svg_source

const char* BCursor::svg_source

An SVG document size of 1600x1600 being the "normal" size, cropped to the image size and without any padding.

Definition at line 67 of file wm_cursors.cc.

Referenced by window_set_custom_cursor_generator(), window_set_custom_cursor_pixmap(), and WM_cursor_set().


The documentation for this struct was generated from the following file: