8000 Add GetMouseCursor, SetConfigFlags and SetBackendFlags functions by the-goodies · Pull Request #39 · inkyblackness/imgui-go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Add GetMouseCursor, SetConfigFlags and SetBackendFlags functions #39

Merged
merged 20 commits into from
May 25, 2019
Merged

Add GetMouseCursor, SetConfigFlags and SetBackendFlags functions #39

merged 20 commits into from
May 25, 2019

Conversation

the-goodies
Copy link
Contributor

No description provided.

Copy link
Member
@dertseha dertseha left a 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.
Copy link
Member

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

// 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.
Copy link
Member

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 {
Copy link
Member

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.

@dertseha dertseha merged commit 438fc9b into inkyblackness:master May 25, 2019
@dertseha
Copy link
Member

Thank you for your contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0