8000 Added CalcTextSize by TehGoat · Pull Request #54 · 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.

Added CalcTextSize #54

Merged
merged 2 commits into from
Nov 30, 2019
Merged

Added CalcTextSize #54

merged 2 commits into from
Nov 30, 2019

Conversation

TehGoat
Copy link
Contributor
@TehGoat TehGoat commented Nov 25, 2019

No description provided.

imgui.go Outdated
@@ -257,6 +257,20 @@ func FontSize() float32 {
return float32(C.iggGetFontSize())
}

// CalcTextSize calculate the size of the text
func CalcTextSize(text string, hide_text_after_double_hash bool, wrap_width float32) Vec2 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't use underscores in Go names; func parameter hide_text_after_double_hash should be hideTextAfterDoubleHash (from golint)

@dertseha dertseha merged commit 1961e5e into inkyblackness:master Nov 30, 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