Skip to content
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

InputText(...) may have wrong arg types #9

Closed
lzytaro opened this issue Sep 21, 2022 · 2 comments
Closed

InputText(...) may have wrong arg types #9

lzytaro opened this issue Sep 21, 2022 · 2 comments

Comments

@lzytaro
Copy link
Contributor

lzytaro commented Sep 21, 2022

InputText may have wrong arguments with InputText(label string, buf string, buf_size uint64).
Should be InputText(label string, buf *string) ?

My demo now panic with following code:

var inputString string

func showImDemo() {
	cimgui.SetNextWindowPos(cimgui.GetMainViewport().GetPos())
	cimgui.SetNextWindowSize(cimgui.GetMainViewport().GetSize())

	cimgui.Begin("mainwindow")
	cimgui.InputText("input something", inputString, 100)
	cimgui.End()
}
@AllenDang
Copy link
Owner

@lzytaro Use InputTextWithHint instead, because InputText widgets need manual process, so I exlucde them all, just missed InputText. I add it into the exclude list, update to the newest code and this function will be gone.

@lzytaro
Copy link
Contributor Author

lzytaro commented Sep 21, 2022

Thanks for such a timely reply!

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

No branches or pull requests

2 participants