@@ -32,12 +32,17 @@ You can find all the supported functions and overloads below.
32
32
## Child Windows
33
33
``` lua
34
34
-- ImGui.BeginChild(...)
35
- -- Parameters: text (name), float (size_x) [O], float (size_y) [O], bool (border ) [O], ImGuiWindowFlags (flags ) [O]
35
+ -- Parameters: text (name), float (size_x) [O], float (size_y) [O], ImGuiChildFlags (child_flags ) [O], ImGuiWindowFlags (window_flags ) [O]
36
36
-- Returns: bool (shouldDraw)
37
37
-- Overloads
38
38
shouldDraw = ImGui .BeginChild (" Name" )
39
39
shouldDraw = ImGui .BeginChild (" Name" , 100 )
40
40
shouldDraw = ImGui .BeginChild (" Name" , 100 , 200 )
41
+ shouldDraw = ImGui .BeginChild (" Name" , 100 , 200 , ImGuiChildFlags .Border )
42
+ shouldDraw = ImGui .BeginChild (" Name" , 100 , 200 , ImGuiChildFlags .Border , ImGuiWindowFlags .NoMove )
43
+
44
+ -- The following will still work, but are considered deprecated and the newer overloads above should be used.
45
+ -- Parameters: text (name), float (size_x) [O], float (size_y) [O], bool (border) [O], ImGuiWindowFlags (flags) [O]
41
46
shouldDraw = ImGui .BeginChild (" Name" , 100 , 200 , true )
42
47
shouldDraw = ImGui .BeginChild (" Name" , 100 , 200 , true , ImGuiWindowFlags .NoMove )
43
48
@@ -272,6 +277,13 @@ You can find all the supported functions and overloads below.
272
277
ImGui .PopStyleVar ()
273
278
ImGui .PopStyleVar (2 )
274
279
280
+ -- ImGui.PushItemFlag(...)
281
+ -- Parameters: int/ImGuiItemFlags (option), bool (enabled)
282
+ ImGui .PushItemFlag (ImGuiItemFlags .NoTabStop , true )
283
+
284
+ -- ImGui.PopItemFlag()
285
+ ImGui .PopItemFlag ()
286
+
275
287
-- ImGui.GetStyleColorVec4(...)
276
288
-- Parameters: ImGuiCol (idx)
277
289
-- Returns: float (color_r), float (color_g), float (color_b), float (color_a)
@@ -321,19 +333,28 @@ You can find all the supported functions and overloads below.
321
333
-- ImGui.PopTextWrapPos()
322
334
ImGui .PopTextWrapPos ()
323
335
324
- -- ImGui.PushAllowKeyboardFocus (...)
325
- -- Parameters: bool (allow_keyboard_focus )
326
- ImGui .PushAllowKeyboardFocus (true )
336
+ -- ImGui.PushTabStop (...)
337
+ -- Parameters: bool (tab_stop )
338
+ ImGui .PushTabStop (true )
327
339
328
- -- ImGui.PopAllowKeyboardFocus ()
329
- ImGui .PopAllowKeyboardFocus ()
340
+ -- ImGui.PopTabStop ()
341
+ ImGui .PopTabStop ()
330
342
331
343
-- ImGui.PushButtonRepeat(...)
332
344
-- Parameters: bool (repeat)
333
345
ImGui .PushButtonRepeat (true )
334
346
335
347
-- ImGui.PopButtonRepeat()
336
348
ImGui .PopButtonRepeat ()
349
+
350
+ -- DEPRECATED
351
+ -- ImGui.PushAllowKeyboardFocus(...)
352
+ -- Parameters: bool (allow_keyboard_focus)
353
+ ImGui .PushAllowKeyboardFocus (true )
354
+
355
+ -- DEPRECATED
356
+ -- ImGui.PopAllowKeyboardFocus()
357
+ ImGui .PopAllowKeyboardFocus ()
337
358
```
338
359
339
360
## Cursor / Layout
@@ -1009,6 +1030,7 @@ selected, activated = ImGui.MenuItem("Label", "ALT+F4", selected, true)
1009
1030
1010
1031
## Tooltips
1011
1032
``` lua
1033
+ -- returns bool (n/a) [value will always be true in current implementations]
1012
1034
-- ImGui.BeginTooltip()
1013
1035
ImGui .BeginTooltip ()
1014
1036
@@ -1351,6 +1373,10 @@ selected, activated = ImGui.MenuItem("Label", "ALT+F4", selected, true)
1351
1373
-- Returns: float (x), float (y)
1352
1374
x , y = ImGui .GetItemRectSize ()
1353
1375
1376
+ -- ImGuiSetNextItemAllowOverlap()
1377
+ ImGui .ImGuiSetNextItemAllowOverlap ()
1378
+
1379
+ -- DEPRECATED
1354
1380
-- ImGui.SetItemAllowOverlap()
1355
1381
ImGui .SetItemAllowOverlap ()
1356
1382
```
@@ -1378,6 +1404,7 @@ selected, activated = ImGui.MenuItem("Label", "ALT+F4", selected, true)
1378
1404
-- Returns: text (style_color_name)
1379
1405
style_color_name = ImGui .GetStyleColorName (ImGuiCol .Text )
1380
1406
1407
+ -- DEPRECATED (use BeginChild() with ImGuiChildFlags.FrameStyle!)
1381
1408
-- ImGui.BeginChildFrame(...)
1382
1409
-- Parameters: unsigned int (id), float (size_x), float (size_y), ImGuiWindowFlags (flags) [O]
1383
1410
-- Returns: bool (open)
@@ -1426,33 +1453,38 @@ selected, activated = ImGui.MenuItem("Label", "ALT+F4", selected, true)
1426
1453
1427
1454
## Inputs Utilities: Keyboard
1428
1455
``` lua
1429
- -- ImGui.GetKeyIndex(...)
1430
- -- Parameters: ImGuiKey (key)
1431
- -- Returns: int (index)
1432
- index = ImGui .GetKeyIndex (ImGuiKey .Tab )
1433
-
1434
1456
-- ImGui.IsKeyDown(...)
1435
- -- Parameters: int (key_index)
1457
+ -- Parameters: int/ImGuiKey (key_index)
1436
1458
-- Returns: bool (down)
1437
1459
down = ImGui .IsKeyDown (0 )
1460
+ down = ImGui .IsKeyDown (ImGuiKey .Z )
1438
1461
1439
1462
-- ImGui.IsKeyPressed(...)
1440
- -- Parameters: int (key_index), bool (repeat) [O]
1463
+ -- Parameters: int/ImGuiKey (key_index), bool (repeat) [O]
1441
1464
-- Returns: bool (pressed)
1442
1465
-- Overloads
1443
1466
pressed = ImGui .IsKeyPressed (0 )
1467
+ pressed = ImGui .IsKeyPressed (ImGuiKey .Z )
1444
1468
pressed = ImGui .IsKeyPressed (0 , true )
1469
+ pressed = ImGui .IsKeyPressed (ImGuiKey .Z , true )
1445
1470
1446
1471
-- ImGui.IsKeyReleased(...)
1447
- -- Parameters: int (key_index)
1472
+ -- Parameters: int/ImGuiKey (key_index)
1448
1473
-- Returns: bool (released)
1449
1474
released = ImGui .IsKeyReleased (0 )
1475
+ released = ImGui .IsKeyReleased (ImGuiKey .Z )
1450
1476
1451
1477
-- ImGui.GetKeyPressedAmount(...)
1452
- -- Parameters: int (key_index), float (repeat_delay), float (rate)
1478
+ -- Parameters: int/ImGuiKey (key_index), float (repeat_delay), float (rate)
1453
1479
-- Returns: int (pressed_amount)
1454
1480
pressed_amount = ImGui .GetKeyPressedAmount (0 , 0.5 , 5 )
1455
-
1481
+ pressed_amount = ImGui .GetKeyPressedAmount (ImGuiKey .Z , 0.5 , 5 )
1482
+
1483
+ -- ImGui.SetNextFrameWantCaptureKeyboard(...)
1484
+ -- Parameters bool (want_capture_keyboard_valvue)
1485
+ ImGui .SetNextFrameWantCaptureKeyboard (true )
1486
+
1487
+ -- DEPRECATED (use ImGui.SetNextFrameWantCaptureKeyboard())
1456
1488
-- ImGui.CaptureKeyboardFromApp(...)
1457
1489
-- Parameters: bool (want_capture_keyboard_value) [O]
1458
1490
-- Overloads
@@ -1530,7 +1562,12 @@ selected, activated = ImGui.MenuItem("Label", "ALT+F4", selected, true)
1530
1562
-- ImGui.SetMouseCursor(...)
1531
1563
-- Parameters: ImGuiMouseCursor (cursor_type)
1532
1564
ImGui .SetMouseCursor (ImGuiMouseCursor .Hand )
1533
-
1565
+
1566
+ -- ImGui.SetNextFrameWantCaptureMouse(...)
1567
+ -- Parameters: bool (want_capture_mouse_value)
1568
+ ImGui .SetNextFrameWantCaptureMouse (true )
1569
+
1570
+ -- DEPRECATED (Use ImGui.SetNextFrameWantCaptureMouse())
1534
1571
-- ImGui.CaptureMouseFromApp()
1535
1572
-- Parameters: bool (want_capture_mouse_value) [O]
1536
1573
-- Overloads
0 commit comments