-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SetCursor CefCursorType parameter #1044
Conversation
@@ -174,7 +174,7 @@ namespace CefSharp | |||
virtual DECL void OnCursorChange(CefRefPtr<CefBrowser> browser, CefCursorHandle cursor, CursorType type, | |||
const CefCursorInfo& custom_cursor_info) OVERRIDE | |||
{ | |||
_renderWebBrowser->SetCursor((IntPtr)cursor); | |||
_renderWebBrowser->SetCursor((IntPtr)cursor, (CefSharp::CefCursorType)type); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace tabs with spaces.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been using Intellij for so long. I had forgotten that the tab key inserts a tab character sometimes.
Thanks for the PR @cuddlyogre 👍 Just a few formatting and commit cleaning issues to sort out. |
Oh and when you do clean up the issues, remember to leave a new comment here. This ensures the project maintainers get an email notification. We don't get told about further commits alone. |
I have made the requested changes. |
{ | ||
public enum CefCursorType | ||
{ | ||
CT_POINTER = 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the CT_
prefix and make these proper case. Bring them inline with .Net
styling.
e.g. CT_POINTER
becomes Pointer
The changes to the CefCursorType names has been made. |
SetCursor CefCursorType parameter
Great, thanks 👍 |
You're very welcome! |
SetCursor now receives the cursor type. The enums for the types come directly from CEF.