-
Notifications
You must be signed in to change notification settings - Fork 4
/
imgui_log.txt
523 lines (518 loc) · 17 KB
/
imgui_log.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
(?)
[ Copy "Hello, world!" to clipboard ]
### Window options ###
| [ ] No titlebar | [ ] No scrollbar | [ ] No menu |
| [ ] No move | [ ] No resize | [ ] No collapse |
| [ ] No close | [ ] No nav | [ ] No background |
| [ ] No bring to front | [ ] No docking | [ ] Unsaved document |
### Widgets ###
> Basic
[ Button ]
[x] checkbox
(x) radio a ( ) radio b ( ) radio c
[ Click ] [ Click ] [ Click ] [ Click ] [ Click ] [ Click ] [ Click ]
Hold to repeat: 0
Hover over me - or me
--------------------------------
Value label
{ AAAA } combo (?)
{ Hello, world! } input text (?)
{ enter text here } input text (w/ hint)
{ 123 } [ - ] [ + ] input int
{ 0.001 } [ - ] [ + ] input float
{ 999999.00000001 } [ - ] [ + ] input double
{ 1.000000e+10 } input scientific (?)
{ 0.100 } { 0.200 } { 0.300 } input float3
{ 50 } drag int (?)
{ 42% } drag int 0..100
{ 1.000 } drag float
{ 0.006700 ns } drag small float
{ 0 } slider int (?)
{ ratio = 0.123 } slider float
{ 0.0000 } slider float (log)
{ 0 deg } slider angle
{ Fire } slider enum (?)
{ R:255 } { G: 0 } { B: 51 } color 1
(?)
{ R:102 } { G:179 } { B: 0 } { A:128 } color 2
(?)
> Trees
> Basic trees
> Child 0
blah blah [ button ]
> Child 1
> Child 2
> Child 3
> Child 4
> Advanced, with Selectable nodes
(?)
[x] ImGuiTreeNodeFlags_OpenOnArrow
[x] ImGuiTreeNodeFlags_OpenOnDoubleClick
[x] ImGuiTreeNodeFlags_SpanAvailWidth (?)
[ ] ImGuiTreeNodeFlags_SpanFullWidth
[ ] Align label with current X position
[ ] Test tree node as drag source
Hello!
> Selectable Node 0
> Selectable Node 1
> Selectable Node 2
> Selectable Leaf 3
> Selectable Leaf 4
> Selectable Leaf 5
> Collapsing Headers
[x] Show 2nd header
### Header ###
### Header with a close button ###
> Bullets
Bullet point 1
Bullet point 2
On multiple lines
> Tree node
Another bullet point
Bullet point 3 (two calls)
[ Button ]
> Text
> Colorful Text
Pink
Yellow
Disabled (?)
> Word Wrapping
This text should automatically wrap on the edge of the window. The current implementation for text wrapping follows simple rules suitable for English and possibly other languages.
{ 200 } Wrap width
Test paragraph 0:
The lazy dog is a good dog. This paragraph should fit within 200 pixels. Testing a 1 character word. The quick brown fox jumps over the lazy dog.
Test paragraph 1:
aaaaaaaa bbbbbbbb, c cccccccc,dddddddd. d eeeeeeee ffffffff. gggggggg!hhhhhhhh
> UTF-8 Text
CJK text will only appears if the font was loaded with the appropriate CJK character ranges. Call io.Fonts->AddFontFromFileTTF() manually to load extra character ranges. Read docs/FONTS.md for details.
Hiragana: かきくけこ (kakikukeko)
Kanjis: 日本語 (nihongo)
{ 日本語 } UTF-8 input
> Images
Below we are displaying the font texture (which is the only texture we have access to in this demo). Use the 'ImTextureID' type as storage to pass pointers or identifier to your own texture data. Hover the texture for a zoomed view!
512x64
And now some textured buttons..
Pressed 0 times.
> Combo
[ ] ImGuiComboFlags_PopupAlignLeft (?)
[ ] ImGuiComboFlags_NoArrowButton
[ ] ImGuiComboFlags_NoPreview
{ AAAA } combo 1
{ aaaa } combo 2 (one-liner)
combo 3 (array)
{ AAAA } combo 4 (function)
> List boxes
Full-width:
> Selectables
> Basic
1. I am selectable
2. I am selectable
(I am not selectable)
4. I am selectable
5. I am double clickable
> Selection State: Single Selection
Object 0
Object 1
Object 2
Object 3
Object 4
> Selection State: Multiple Selection
(?)
Object 0
Object 1
Object 2
Object 3
Object 4
> Rendering more text into the same line
main.c 2,345 bytes
Hello.cpp 12,345 bytes
Hello.h 2,345 bytes
> In columns
| Item 0 | Item 1 | Item 2 |
| Item 3 | Item 4 | Item 5 |
| Item 6 | Item 7 | Item 8 |
| Item 9 |
| Item 0 | Some other contents | 123456 |
| Item 1 | Some other contents | 123456 |
| Item 2 | Some other contents | 123456 |
| Item 3 | Some other contents | 123456 |
| Item 4 | Some other contents | 123456 |
| Item 5 | Some other contents | 123456 |
| Item 6 | Some other contents | 123456 |
| Item 7 | Some other contents | 123456 |
| Item 8 | Some other contents | 123456 |
| Item 9 | Some other contents | 123456 |
> Grid
Sailor Sailor Sailor Sailor
Sailor Sailor Sailor Sailor
Sailor Sailor Sailor Sailor
Sailor Sailor Sailor Sailor
> Alignment
(?)
(0.0,0.0) (0.5,0.0) (1.0,0.0)
(0.0,0.5) (0.5,0.5) (1.0,0.5)
(0.0,1.0) (0.5,1.0) (1.0,1.0)
> Text Input
> Multi-line Text Input
(?)
[ ] ImGuiInputTextFlags_ReadOnly
[x] ImGuiInputTextFlags_AllowTabInput
[ ] ImGuiInputTextFlags_CtrlEnterForNewLine
{ /*
The Pentium F00F bug, shorthand for F0 0F C7 C8,
the hexadecimal encoding of one offending instruction,
more formally, the invalid operand with locked CMPXCHG8B
instruction bug, is a design flaw in the majority of
Intel Pentium, Pentium MMX, and Pentium OverDrive
processors (all in the P5 microarchitecture).
*/
label:
lock cmpxchg8b eax
}
> Filtered Text Input
{ } default
{ } decimal
{ } hexadecimal
{ } uppercase
{ } no blank
{ } "imgui" letters
> Password Input
password (?)
password (w/ hint)
{ password123 } password (clear)
> Completion, History, Edit Callbacks
{ } Completion (?)
{ } History (?)
{ } Edit (?) (0)
> Resize Callback
(?)
{ }
Data: 000002030CD7F2D0
Size: 1
Capacity: 8
> Tabs
> Basic
Avocado
This is the Avocado tab!
blah blah blah blah blah Broccoli Cucumber
--------------------------------
> Advanced & Close Button
[x] ImGuiTabBarFlags_Reorderable
[ ] ImGuiTabBarFlags_AutoSelectNewTabs
[ ] ImGuiTabBarFlags_TabListPopupButton
[ ] ImGuiTabBarFlags_NoCloseWithMiddleMouseButton
[x] ImGuiTabBarFlags_FittingPolicyResizeDown
[ ] ImGuiTabBarFlags_FittingPolicyScroll
[x] Artichoke [x] Beetroot [x] Celery [x] Daikon
Artichoke
This is the Artichoke tab! Beetroot Celery Daikon
--------------------------------
> TabItemButton & Leading/Trailing flags
[x] Show Leading TabItemButton()
[x] Show Trailing TabItemButton()
[ ] ImGuiTabBarFlags_TabListPopupButton
[x] ImGuiTabBarFlags_FittingPolicyResizeDown
[ ] ImGuiTabBarFlags_FittingPolicyScroll
? + 0000
This is the 0000 tab! 0001 0002
--------------------------------
> Plotting
[x] Animate
Frame Times
Histogram
avg -0.042054 Lines
--------------------------------
{ Sin } func { 70 } Sample count
Lines
Histogram
--------------------------------
3% Progress Bar
58/1753
> Color/Picker Widgets
[x] With Alpha Preview
[ ] With Half Alpha Preview
[x] With Drag and Drop
[x] With Options Menu (?)
[ ] With HDR (?)
Color widget: (?)
{ R:114 } { G:144 } { B:154 } MyColor
Color widget HSV with Alpha:
{ H:138 } { S: 66 } { V:154 } { A:200 } MyColor
Color widget with Float Display:
{ R:0.447 } { G:0.565 } { B:0.604 } { A:0.784 } MyColor
Color button with Picker: (?)
Color button with Custom Picker Popup:
[ Palette ]
Color button only:
[ ] ImGuiColorEditFlags_NoBorder
Color picker:
[x] With Alpha
[x] With Alpha Bar
[x] With Side Preview [ ] With Ref Color
{ Auto/Current } Display Mode (?)
{ Auto/Current } Picker Mode (?)
MyColor
{ R:114 } { G:144 } { B:154 } { A:200 }
{ H:138 } { S: 66 } { V:154 } { A:200 }
{ #72909AC8 }
Set defaults in code: (?)
[ Default: Uint8 + HSV + Hue Bar ]
[ Default: Float + HDR + Hue Wheel ]
HSV encoded colors (?)
Color widget with InputHSV:
{ R:0.620 } { G:1.000 } { B:0.000 } { A:1.000 } HSV shown as RGB
{ H:0.230 } { S:1.000 } { V:1.000 } { A:1.000 } HSV shown as HSV
{ 0.230 } { 1.000 } { 1.000 } { 1.000 } Raw HSV values
> Drag/Slider Flags
[ ] ImGuiSliderFlags_AlwaysClamp (?)
[ ] ImGuiSliderFlags_Logarithmic (?)
[ ] ImGuiSliderFlags_NoRoundToFormat (?)
[ ] ImGuiSliderFlags_NoInput (?)
Underlying float value: 0.500000
{ 0.500 } DragFloat (0 -> 1)
{ 0.500 } DragFloat (0 -> +inf)
{ 0.500 } DragFloat (-inf -> 1)
{ 0.500 } DragFloat (-inf -> +inf)
{ 50 } DragInt (0 -> 100)
Underlying float value: 0.500000
{ 0.500 } SliderFloat (0 -> 1)
{ 50 } SliderInt (0 -> 100)
> Range Widgets
{ Min: 10.0 % } { Max: 90.0 % } range float
{ Min: 100 units } { Max: 1000 units } range int
{ Min: 100 units } { Max: 1000 units } range int (no bounds)
> Data Types
Drags:
[ ] Clamp integers to 0..50 (?)
{ 127 } drag s8
{ 255 ms } drag u8
{ 32767 } drag s16
{ 65535 ms } drag u16
{ -1 } drag s32
{ 4294967295 ms } drag u32
{ -1 } drag s64
{ 18446744073709551615 } drag u64
{ 0.123000 } drag float
{ 0.123000 } drag float log
{ 90000.0123456789 grams } drag double
{ 0 < 90000.0123456789 < 1 } drag double log
Sliders
{ 127 } slider s8 full
{ 255 } slider u8 full
{ 32767 } slider s16 full
{ 65535 } slider u16 full
{ -1 } slider s32 low
{ -1 } slider s32 high
{ -1 } slider s32 full
{ 4294967295 } slider u32 low
{ 4294967295 } slider u32 high
{ 4294967295 } slider u32 full
{ -1 } slider s64 low
{ -1 } slider s64 high
{ -1 } slider s64 full
{ 18446744073709551615 ms } slider u64 low
{ 18446744073709551615 ms } slider u64 high
{ 18446744073709551615 ms } slider u64 full
{ 0.123 } slider float low
{ 0.1230000034 } slider float low log
{ 1.230000e-01 } slider float high
{ 90000.0123456789 grams } slider double low
{ 90000.0123456789 } slider double low log
{ 9.000001e+04 grams } slider double high
Sliders (reverse)
{ 127 } slider s8 reverse
{ 255 } slider u8 reverse
{ -1 } slider s32 reverse
{ 4294967295 } slider u32 reverse
{ -1 } slider s64 reverse
{ 18446744073709551615 ms } slider u64 reverse
Inputs
[x] Show step buttons
{ 127 } [ - ] [ + ] input s8
{ 255 } [ - ] [ + ] input u8
{ 32767 } [ - ] [ + ] input s16
{ 65535 } [ - ] [ + ] input u16
{ -1 } [ - ] [ + ] input s32
{ FFFFFFFF } [ - ] [ + ] input s32 hex
{ 4294967295 } [ - ] [ + ] input u32
{ FFFFFFFF } [ - ] [ + ] input u32 hex
{ -1 } [ - ] [ + ] input s64
{ 18446744073709551615 } [ - ] [ + ] input u64
{ 0.123 } [ - ] [ + ] input float
{ 90000.012346 } [ - ] [ + ] input double
> Multi-component Widgets
{ 0.100 } { 0.200 } input float2
{ 0.100 } { 0.200 } drag float2
{ 0.100 } { 0.200 } slider float2
{ 1 } { 5 } input int2
{ 1 } { 5 } drag int2
{ 1 } { 5 } slider int2
{ 0.100 } { 0.200 } { 0.300 } input float3
{ 0.100 } { 0.200 } { 0.300 } drag float3
{ 0.100 } { 0.200 } { 0.300 } slider float3
{ 1 } { 5 } { 100 } input int3
{ 1 } { 5 } { 100 } drag int3
{ 1 } { 5 } { 100 } slider int3
{ 0.100 } { 0.200 } { 0.300 } { 0.440 } input float4
{ 0.100 } { 0.200 } { 0.300 } { 0.440 } drag float4
{ 0.100 } { 0.200 } { 0.300 } { 0.440 } slider float4
{ 1 } { 5 } { 100 } { 255 } input int4
{ 1 } { 5 } { 100 } { 255 } drag int4
{ 1 } { 5 } { 100 } { 255 } slider int4
> Vertical Sliders
0
0.00
sec 0.60
sec 0.35
sec 0.90
sec
> Drag and Drop
> Drag and drop in standard widgets
(?)
{ R:255 } { G: 0 } { B: 51 } color 1
{ R:102 } { G:179 } { B: 0 } { A:128 } color 2
> Drag and drop to copy/swap items
(x) Copy ( ) Move ( ) Swap
[ Bobby ] [ Beatrice ] [ Betty ]
[ Brianna ] [ Barry ] [ Bernard ]
[ Bibi ] [ Blaine ] [ Bryn ]
> Drag to reorder items (simple)
(?)
Item One
Item Two
Item Three
Item Four
Item Five
> Querying Item Status (Edited/Active/Hovered etc.)
{ SliderFloat } Item Type (?)
[ ] Item Disabled
{ 1.000 } ITEM: SliderFloat
Return value = 0
IsItemFocused() = 0
IsItemHovered() = 0
IsItemHovered(_AllowWhenBlockedByPopup) = 0
IsItemHovered(_AllowWhenBlockedByActiveItem) = 0
IsItemHovered(_AllowWhenOverlapped) = 0
IsItemHovered(_AllowWhenDisabled) = 0
IsItemHovered(_RectOnly) = 0
IsItemActive() = 0
IsItemEdited() = 0
IsItemActivated() = 0
IsItemDeactivated() = 0
IsItemDeactivatedAfterEdit() = 0
IsItemVisible() = 0
IsItemClicked() = 0
IsItemToggledOpen() = 0
GetItemRectMin() = (489.0, 10221.0)
GetItemRectMax() = (955.0, 10240.0)
GetItemRectSize() = (466.0, 19.0)
{ } unused (?)
> Querying Window Status (Focused/Hovered etc.)
[ ] Embed everything inside a child window for testing _RootWindow flag.
IsWindowFocused() = 1
IsWindowFocused(_ChildWindows) = 1
IsWindowFocused(_ChildWindows|_NoPopupHierarchy) = 1
IsWindowFocused(_ChildWindows|_DockHierarchy) = 1
IsWindowFocused(_ChildWindows|_RootWindow) = 1
IsWindowFocused(_ChildWindows|_RootWindow|_NoPopupHierarchy) = 1
IsWindowFocused(_ChildWindows|_RootWindow|_DockHierarchy) = 1
IsWindowFocused(_RootWindow) = 1
IsWindowFocused(_RootWindow|_NoPopupHierarchy) = 1
IsWindowFocused(_RootWindow|_DockHierarchy) = 1
IsWindowFocused(_AnyWindow) = 1
IsWindowHovered() = 1
IsWindowHovered(_AllowWhenBlockedByPopup) = 1
IsWindowHovered(_AllowWhenBlockedByActiveItem) = 1
IsWindowHovered(_ChildWindows) = 1
IsWindowHovered(_ChildWindows|_NoPopupHierarchy) = 1
IsWindowHovered(_ChildWindows|_DockHierarchy) = 1
IsWindowHovered(_ChildWindows|_RootWindow) = 1
IsWindowHovered(_ChildWindows|_RootWindow|_NoPopupHierarchy) = 1
IsWindowHovered(_ChildWindows|_RootWindow|_DockHierarchy) = 1
IsWindowHovered(_RootWindow) = 1
IsWindowHovered(_RootWindow|_NoPopupHierarchy) = 1
IsWindowHovered(_RootWindow|_DockHierarchy) = 1
IsWindowHovered(_ChildWindows|_AllowWhenBlockedByPopup) = 1
IsWindowHovered(_AnyWindow) = 1
This is another child window for testing the _ChildWindows flag.
[ ] Hovered/Active tests after Begin() for title bar testing
> Disable block
[ ] Disable entire section above (?)
### Layout & Scrolling ###
### Popups & Modal windows ###
### Tables & Columns ###
### Filtering ###
### Inputs, Navigation & Focus ###
WantCaptureMouse: 1
WantCaptureMouseUnlessPopupClose: 1
WantCaptureKeyboard: 1
WantTextInput: 0
WantSetMousePos: 0
NavActive: 0, NavVisible: 0
> Mouse State
Mouse pos: (608, 453)
Mouse delta: (0, 0)
Mouse down:
Mouse clicked:
Mouse released: b0
Mouse wheel: 0.0
Pen Pressure: 0.0
> Keyboard, Gamepad & Navigation State
Keys down:
Keys pressed:
Keys released:
Keys mods:
Chars queue:
NavInputs down:
NavInputs pressed:
> Capture override
[ Hovering me sets the
keyboard capture flag ] [ Holding me clears the
the keyboard capture flag ]
> Tabbing
Use TAB/SHIFT+TAB to cycle through keyboard editable fields.
{ hello } 1
{ hello } 2
{ hello } 3
{ hello } 4 (tab skip) (?)
{ hello } 5
> Focus from code
[ Focus on 1 ] [ Focus on 2 ] [ Focus on 3 ]
{ click on a button to set focus } 1
{ click on a button to set focus } 2
{ click on a button to set focus } 3 (tab skip) (?)
Item with focus: <none>
[ Focus on X ] [ Focus on Y ] [ Focus on Z ]
{ 0.000 } { 0.000 } { 0.000 } Float3
NB: Cursor & selection are preserved when refocusing last used item in code.
> Dragging
You can use ImGui::GetMouseDragDelta(0) to query for the dragged amount on any widget.
IsMouseDragging(0):
w/ default threshold: 0,
w/ zero threshold: 0,
w/ large threshold: 0,
IsMouseDragging(1):
w/ default threshold: 0,
w/ zero threshold: 0,
w/ large threshold: 0,
IsMouseDragging(2):
w/ default threshold: 0,
w/ zero threshold: 0,
w/ large threshold: 0,
[ Drag Me ]
GetMouseDragDelta(0):
w/ default threshold: (0.0, 0.0)
w/ zero threshold: (0.0, 0.0)
io.MouseDelta: (0.0, 0.0)
> Mouse cursors
Current mouse cursor = 0: Arrow
Hover to see mouse cursors: (?)
Mouse cursor 0: Arrow
Mouse cursor 1: TextInput
Mouse cursor 2: ResizeAll
Mouse cursor 3: ResizeNS
Mouse cursor 4: ResizeEW
Mouse cursor 5: ResizeNESW
Mouse cursor 6: ResizeNWSE
Mouse cursor 7: Hand
Mouse cursor 8: NotAllowed