Blender V5.3
blender::BCursor Struct Reference

Public Attributes

const char * svg_source
float2 hotspot
bool can_invert

Detailed Description

Blender custom cursor.

Definition at line 65 of file wm_cursors.cc.

Member Data Documentation

◆ can_invert

bool blender::BCursor::can_invert

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

Definition at line 78 of file wm_cursors.cc.

Referenced by blender::window_set_custom_cursor_generator(), blender::window_set_custom_cursor_pixmap(), and blender::wm_add_cursor().

◆ hotspot

float2 blender::BCursor::hotspot

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

Definition at line 74 of file wm_cursors.cc.

Referenced by blender::window_set_custom_cursor_generator(), blender::window_set_custom_cursor_pixmap(), and blender::wm_add_cursor().

◆ svg_source

const char* blender::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 70 of file wm_cursors.cc.

Referenced by blender::window_set_custom_cursor_generator(), blender::window_set_custom_cursor_pixmap(), blender::wm_add_cursor(), and blender::WM_cursor_set().


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