This repository was archived by the owner on Dec 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -330,6 +330,16 @@ func PopTextWrapPos() {
330
330
C .iggPopTextWrapPos ()
331
331
}
332
332
333
+ // PushAllowKeyboardFocus allow the next window to take focus of the keyboard.
334
+ func PushAllowKeyboardFocus (allow bool ) {
335
+ C .iggPushAllowKeyboardFocus (castBool (allow ))
336
+ }
337
+
338
+ //PopAllowKeyboardFocus pops most recent allow keyboard focus setting.
339
+ func PopAllowKeyboardFocus () {
340
+ C .iggPopAllowKeyboardFocus ()
341
+ }
342
+
333
343
// PushButtonRepeat enables button to repeat press if held.
334
344
func PushButtonRepeat (repeat bool ) {
335
345
C .iggPushButtonRepeat (castBool (repeat ))
Original file line number Diff line number Diff line change @@ -166,6 +166,16 @@ void iggPopTextWrapPos(void)
166
166
ImGui::PopTextWrapPos ();
167
167
}
168
168
169
+ void iggPushAllowKeyboardFocus (IggBool allow)
170
+ {
171
+ ImGui::PushAllowKeyboardFocus (allow);
172
+ }
173
+
174
+ void iggPopAllowKeyboardFocus ()
175
+ {
176
+ ImGui::PopAllowKeyboardFocus ();
177
+ }
178
+
169
179
void iggPushButtonRepeat (IggBool repeat)
170
180
{
171
181
ImGui::PushButtonRepeat (repeat);
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ extern void iggPopItemFlag(void);
40
40
extern float iggCalcItemWidth (void );
41
41
extern void iggPushTextWrapPos (float wrapPosX );
42
42
extern void iggPopTextWrapPos (void );
43
+ extern void iggPushAllowKeyboardFocus (IggBool allow );
44
+ extern void iggPopAllowKeyboardFocus ();
43
45
extern void iggPushButtonRepeat (IggBool repeat );
44
46
extern void iggPopButtonRepeat (void );
45
47
You can’t perform that action at this time.
0 commit comments