How to get size of master ( or current window ) in loop function #578
-
How can I get current size of the master window within my I tried the following
|
Beta Was this translation helpful? Give feedback.
Answered by
AllenDang
Nov 1, 2022
Replies: 2 comments 1 reply
-
I think it was just a misunderstanding of imgui / giu on my part. The following seems to work for a simple loop function content:
The trick is to evaluate the size of the current window within the window code, not outside. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@manuel-koch MasterWindow has a method named "GetSize". wnd := giu.NewMasterWindow("Hello world", 200, 200, 0)
width, height := wnd.GetSize() |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
manuel-koch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@manuel-koch MasterWindow has a method named "GetSize".