-
Notifications
You must be signed in to change notification settings - Fork 102
Add GetMouseCursor, SetConfigFlags and SetBackendFlags functions #39
Add GetMouseCursor, SetConfigFlags and SetBackendFlags functions #39
Conversation
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.
Thank you again for your contribution.
This time I have a few comments, please update the request.
ConfigFlags.go
Outdated
ConfigFlagNoMouseCursorChange | ||
|
||
// User storage (to allow your back-end/engine to communicate to code that may be shared between multiple projects. Those flags are not used by core ImGui) | ||
ConfigFlagIsSRGB = 1 << 20 // Application is SRGB-aware. |
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.
Please set the comments above the constants
MouseCursorFlags.go
Outdated
// User code may request binding to display given cursor by calling SetMouseCursor(), which is why we have some cursors that are marked unused here | ||
MouseCursorNone = iota - 1 | ||
MouseCursorArrow | ||
MouseCursorTextInput // When hovering over InputText, etc. |
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.
Please set the comments above the constants
imgui.go
Outdated
|
||
// GetMouseCursor returns desired cursor type, reset in imgui.NewFrame(), this is updated during the frame. | ||
// Valid before Render(). If you use software rendering by setting io.MouseDrawCursor ImGui will render those for you. | ||
func GetMouseCursor() int { |
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.
Getters in Go are without the prefix Get
- please remove.
Thank you for your contribution! |
No description provided.