cursorRequested
Return the cursor the gui wants. Client code should cache this if switching the platform's cursor is expensive.
Parameters
- self:*const Self
- *const Self
Source
Implementation
pub fn cursorRequested(self: *const Self) dvui.enums.Cursor {
if (self.dragging.state == .dragging and self.dragging.cursor != null) {
return self.dragging.cursor.?;
} else {
return self.cursor_requested orelse .arrow;
}
}