Stay organized with collections
Save and categorize content based on your preferences.
blockly > WorkspaceSvg > getCursor
WorkspaceSvg.getCursor() method
The cursor for this workspace.
Signature:
getCursor(): LineCursor;
Returns:
LineCursor
The cursor for the workspace.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-24 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egetCursor()\u003c/code\u003e method retrieves the cursor associated with the WorkspaceSvg.\u003c/p\u003e\n"],["\u003cp\u003eThis method returns a Cursor object if a cursor is present or null if there isn't one.\u003c/p\u003e\n"],["\u003cp\u003eThe Cursor object provides information about the current position and state of the workspace's cursor.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [WorkspaceSvg](./blockly.workspacesvg_class.md) \\\u003e [getCursor](./blockly.workspacesvg_class.getcursor_1_method.md)\n\nWorkspaceSvg.getCursor() method\n-------------------------------\n\nThe cursor for this workspace.\n\n**Signature:** \n\n getCursor(): LineCursor;\n\n**Returns:**\n\n[LineCursor](./blockly.linecursor_class.md)\n\nThe cursor for the workspace."]]