-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #750 from spatocode/selectentry/cursor
Handle window cursor
- Loading branch information
Showing
9 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package desktop | ||
|
||
// Cursor represents a standard fyne cursor | ||
type Cursor int | ||
|
||
const ( | ||
// DefaultCursor is the default cursor typically an arrow | ||
DefaultCursor Cursor = iota | ||
// TextCursor is the cursor often used to indicate text selection | ||
TextCursor | ||
// CrosshairCursor is the cursor often used to indicate bitmaps | ||
CrosshairCursor | ||
// PointerCursor is the cursor often used to indicate a link | ||
PointerCursor | ||
// HResizeCursor is the cursor often used to indicate horizontal resize | ||
HResizeCursor | ||
// VResizeCursor is the cursor often used to indicate vertical resize | ||
VResizeCursor | ||
) | ||
|
||
// Cursorable describes any CanvasObject that needs a cursor change | ||
type Cursorable interface { | ||
Cursor() Cursor | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters