@@ -265,7 +265,7 @@ styleColorsClassic = liftIO do
265
265
begin :: MonadIO m => String -> m Bool
266
266
begin name = liftIO do
267
267
withCString name \ namePtr ->
268
- (1 = = ) <$> [C. exp | bool { ImGui::Begin($(char* namePtr)) } |]
268
+ (0 / = ) <$> [C. exp | bool { ImGui::Begin($(char* namePtr)) } |]
269
269
270
270
271
271
-- | Pop window from the stack.
@@ -308,7 +308,7 @@ text t = liftIO do
308
308
button :: MonadIO m => String -> m Bool
309
309
button label = liftIO do
310
310
withCString label \ labelPtr ->
311
- (1 = = ) <$> [C. exp | bool { Button($(char* labelPtr)) } |]
311
+ (0 / = ) <$> [C. exp | bool { Button($(char* labelPtr)) } |]
312
312
313
313
314
314
-- | Button with @FramePadding=(0,0)@ to easily embed within text.
@@ -317,7 +317,7 @@ button label = liftIO do
317
317
smallButton :: MonadIO m => String -> m Bool
318
318
smallButton label = liftIO do
319
319
withCString label \ labelPtr ->
320
- (1 = = ) <$> [C. exp | bool { SmallButton($(char* labelPtr)) } |]
320
+ (0 / = ) <$> [C. exp | bool { SmallButton($(char* labelPtr)) } |]
321
321
322
322
323
323
-- | Square button with an arrow shape.
@@ -326,7 +326,7 @@ smallButton label = liftIO do
326
326
arrowButton :: MonadIO m => String -> ImGuiDir -> m Bool
327
327
arrowButton strId (ImGuiDir dir) = liftIO do
328
328
withCString strId \ strIdPtr ->
329
- (1 = = ) <$> [C. exp | bool { ArrowButton($(char* strIdPtr), $(int dir)) } |]
329
+ (0 / = ) <$> [C. exp | bool { ArrowButton($(char* strIdPtr), $(int dir)) } |]
330
330
331
331
332
332
-- | Wraps @ImGui::Checkbox()@.
@@ -335,7 +335,7 @@ checkbox label ref = liftIO do
335
335
currentValue <- get ref
336
336
with (bool 0 1 currentValue :: CBool ) \ boolPtr -> do
337
337
changed <- withCString label \ labelPtr ->
338
- (1 = = ) <$> [C. exp | bool { Checkbox($(char* labelPtr), $(bool* boolPtr)) } |]
338
+ (0 / = ) <$> [C. exp | bool { Checkbox($(char* labelPtr), $(bool* boolPtr)) } |]
339
339
340
340
newValue <- peek boolPtr
341
341
ref $=! (newValue == 1 )
@@ -369,7 +369,7 @@ beginCombo :: MonadIO m => String -> String -> m Bool
369
369
beginCombo label previewValue = liftIO $
370
370
withCString label \ labelPtr ->
371
371
withCString previewValue \ previewValuePtr ->
372
- (1 = = ) <$> [C. exp | bool { BeginCombo($(char* labelPtr), $(char* previewValuePtr)) } |]
372
+ (0 / = ) <$> [C. exp | bool { BeginCombo($(char* labelPtr), $(char* previewValuePtr)) } |]
373
373
374
374
375
375
-- | Only call 'endCombo' if 'beginCombon' returns 'True'!
@@ -386,7 +386,7 @@ colorPicker3 desc ref = liftIO do
386
386
ImVec3 {x, y, z} <- get ref
387
387
withArray (realToFrac <$> [x, y, z]) \ refPtr -> do
388
388
changed <- withCString desc \ descPtr ->
389
- (1 = = ) <$> [C. exp | bool { ColorPicker3( $(char* descPtr), $(float *refPtr) ) } |]
389
+ (0 / = ) <$> [C. exp | bool { ColorPicker3( $(char* descPtr), $(float *refPtr) ) } |]
390
390
391
391
[x', y', z'] <- peekArray 3 refPtr
392
392
ref $=! ImVec3 (realToFrac x') (realToFrac y') (realToFrac z')
@@ -399,7 +399,7 @@ sliderFloat desc ref minValue maxValue = liftIO do
399
399
currentValue <- get ref
400
400
with (realToFrac currentValue) \ floatPtr -> do
401
401
changed <- withCString desc \ descPtr ->
402
- (1 = = ) <$> [C. exp | bool { SliderFloat( $(char* descPtr), $(float *floatPtr), $(float min'), $(float max')) } |]
402
+ (0 / = ) <$> [C. exp | bool { SliderFloat( $(char* descPtr), $(float *floatPtr), $(float min'), $(float max')) } |]
403
403
404
404
newValue <- peek floatPtr
405
405
ref $=! realToFrac newValue
@@ -418,7 +418,7 @@ colorButton desc ref = liftIO do
418
418
currentValue <- get ref
419
419
with currentValue \ refPtr -> do
420
420
changed <- withCString desc \ descPtr ->
421
- (1 == ) <$> [C. exp | bool { ColorButton( $(char* descPtr), *$(ImVec4 *refPtr) ) } |]
421
+ (0 /= ) <$> [C. exp | bool { ColorButton( $(char* descPtr), *$(ImVec4 *refPtr) ) } |]
422
422
423
423
newValue <- peek refPtr
424
424
ref $=! newValue
@@ -430,7 +430,7 @@ colorButton desc ref = liftIO do
430
430
selectable :: MonadIO m => String -> m Bool
431
431
selectable label = liftIO do
432
432
withCString label \ labelPtr ->
433
- (1 == ) <$> [C. exp | bool { Selectable($(char* labelPtr)) } |]
433
+ (0 /= ) <$> [C. exp | bool { Selectable($(char* labelPtr)) } |]
434
434
435
435
436
436
-- | Wraps @ImGui::PlotHistogram()@.
@@ -448,7 +448,7 @@ plotHistogram label values = liftIO $
448
448
-- Wraps @ImGui::BeginMenuBar()@.
449
449
beginMenuBar :: MonadIO m => m Bool
450
450
beginMenuBar = liftIO do
451
- (1 == ) <$> [C. exp | bool { BeginMenuBar() } |]
451
+ (0 /= ) <$> [C. exp | bool { BeginMenuBar() } |]
452
452
453
453
454
454
-- | Only call 'endMenuBar' if 'beginMenuBar' returns true!
@@ -464,7 +464,7 @@ endMenuBar = liftIO do
464
464
-- Wraps @ImGui::BeginMainMenuBar()@.
465
465
beginMainMenuBar :: MonadIO m => m Bool
466
466
beginMainMenuBar = liftIO do
467
- (1 == ) <$> [C. exp | bool { BeginMainMenuBar() } |]
467
+ (0 /= ) <$> [C. exp | bool { BeginMainMenuBar() } |]
468
468
469
469
470
470
-- | Only call 'endMainMenuBar' if 'beginMainMenuBar' returns true!
@@ -481,7 +481,7 @@ endMainMenuBar = liftIO do
481
481
beginMenu :: MonadIO m => String -> m Bool
482
482
beginMenu label = liftIO do
483
483
withCString label \ labelPtr ->
484
- (1 == ) <$> [C. exp | bool { BeginMenu($(char* labelPtr)) } |]
484
+ (0 /= ) <$> [C. exp | bool { BeginMenu($(char* labelPtr)) } |]
485
485
486
486
487
487
-- | Only call 'endMenu' if 'beginMenu' returns true!
@@ -499,7 +499,7 @@ endMenu = liftIO do
499
499
menuItem :: MonadIO m => String -> m Bool
500
500
menuItem label = liftIO do
501
501
withCString label \ labelPtr ->
502
- (1 = = ) <$> [C. exp | bool { MenuItem($(char* labelPtr)) } |]
502
+ (0 / = ) <$> [C. exp | bool { MenuItem($(char* labelPtr)) } |]
503
503
504
504
505
505
-- | Begin/append a tooltip window to create full-featured tooltip (with any
@@ -523,7 +523,7 @@ endTooltip = liftIO do
523
523
beginPopup :: MonadIO m => String -> m Bool
524
524
beginPopup popupId = liftIO do
525
525
withCString popupId \ popupIdPtr ->
526
- (1 = = ) <$> [C. exp | bool { BeginPopup($(char* popupIdPtr)) } |]
526
+ (0 / = ) <$> [C. exp | bool { BeginPopup($(char* popupIdPtr)) } |]
527
527
528
528
529
529
-- | Returns 'True' if the modal is open, and you can start outputting to it.
@@ -532,7 +532,7 @@ beginPopup popupId = liftIO do
532
532
beginPopupModal :: MonadIO m => String -> m Bool
533
533
beginPopupModal popupId = liftIO do
534
534
withCString popupId \ popupIdPtr ->
535
- (1 = = ) <$> [C. exp | bool { BeginPopupModal($(char* popupIdPtr)) } |]
535
+ (0 / = ) <$> [C. exp | bool { BeginPopupModal($(char* popupIdPtr)) } |]
536
536
537
537
538
538
-- | Only call 'endPopup' if 'beginPopup' or 'beginPopupModal' returns 'True'!
@@ -565,7 +565,7 @@ closeCurrentPopup = liftIO do
565
565
-- Wraps @ImGui::IsItemHovered()@
566
566
isItemHovered :: MonadIO m => m Bool
567
567
isItemHovered = liftIO do
568
- (1 = = ) <$> [C. exp | bool { IsItemHovered() } |]
568
+ (0 / = ) <$> [C. exp | bool { IsItemHovered() } |]
569
569
570
570
571
571
-- | A cardinal direction.
0 commit comments