glimmer-dsl-libui 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +186 -4
- data/VERSION +1 -1
- data/examples/basic_transform.rb +8 -2
- data/examples/color_button.rb +1 -1
- data/glimmer-dsl-libui.gemspec +0 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a31446583d7ac10399c0049f7735ad4de97be8142d71acb34bc97606e945754
|
4
|
+
data.tar.gz: d613addf5ba20feb610d43531288d9c50080d42f2873c14e5195d59b48735021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6bcfd1c455419275e95922115f8e82b9b0918834eab9ad1bf9b975d4ada823806c8822cc9b5f09b032673caca53f8084abed53d53e642d76b13deaa7ad11347
|
7
|
+
data.tar.gz: d149dc38cfa8456b4557d351ca25e0968daf20dc0a52b0faa9ee66ef2b1f046da8002bd7bf06dd154f1754730a2adc0b4796eb13172ef0cfa040bc1b0dd421a7
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.2.16
|
4
|
+
|
5
|
+
- Document all examples with Windows screenshots
|
6
|
+
- Fix examples/basic_transform.rb issue on Windows where it shows an uncentered different graphic than what is shown on Mac and Linux
|
7
|
+
|
3
8
|
## 0.2.15
|
4
9
|
|
5
10
|
- Make examples/meta_example.rb output catch up more quickly with event puts statements
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for LibUI 0.2.
|
1
|
+
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for LibUI 0.2.16
|
2
2
|
## Prerequisite-Free Ruby Desktop Development GUI Library
|
3
3
|
[](http://badge.fury.io/rb/glimmer-dsl-libui)
|
4
4
|
[](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
@@ -28,7 +28,16 @@ include Glimmer
|
|
28
28
|
window('hello world').show
|
29
29
|
```
|
30
30
|
|
31
|
+
Mac
|
32
|
+
|
31
33
|

|
34
|
+
|
35
|
+
Windows
|
36
|
+
|
37
|
+

|
38
|
+
|
39
|
+
Linux
|
40
|
+
|
32
41
|

|
33
42
|
|
34
43
|
Basic Table Progress Bar
|
@@ -68,7 +77,16 @@ window('Task Progress', 300, 200) {
|
|
68
77
|
}.show
|
69
78
|
```
|
70
79
|
|
80
|
+
Mac
|
81
|
+
|
71
82
|

|
83
|
+
|
84
|
+
Windows
|
85
|
+
|
86
|
+

|
87
|
+
|
88
|
+
Linux
|
89
|
+
|
72
90
|

|
73
91
|
|
74
92
|
Area Gallery
|
@@ -188,7 +206,16 @@ window('Area Gallery', 400, 400) {
|
|
188
206
|
}.show
|
189
207
|
```
|
190
208
|
|
209
|
+
Mac
|
210
|
+
|
191
211
|

|
212
|
+
|
213
|
+
Windows
|
214
|
+
|
215
|
+

|
216
|
+
|
217
|
+
Linux
|
218
|
+
|
192
219
|

|
193
220
|
|
194
221
|
[Check Out Many More Examples Over Here!](#examples)
|
@@ -349,7 +376,7 @@ gem install glimmer-dsl-libui
|
|
349
376
|
Or install via Bundler `Gemfile`:
|
350
377
|
|
351
378
|
```ruby
|
352
|
-
gem 'glimmer-dsl-libui', '~> 0.2.
|
379
|
+
gem 'glimmer-dsl-libui', '~> 0.2.16'
|
353
380
|
```
|
354
381
|
|
355
382
|
Add `require 'glimmer-dsl-libui'` at the top, and then `include Glimmer` into the top-level main object for testing or into an actual class for serious usage.
|
@@ -1046,7 +1073,6 @@ window('Method-Based Custom Keyword') {
|
|
1046
1073
|
- `table` `checkbox_column` and `checkbox_text_column` checkbox editing only works on Linux and Windows (not Mac) due to a current limitation in [libui](https://github.com/andlabs/ui/issues/357).
|
1047
1074
|
- `text` `align` property seems not to work on the Mac ([libui](https://github.com/andlabs/libui) has an [issue](https://github.com/andlabs/libui/pull/407) about it)
|
1048
1075
|
- `text` `string` `background` does not work on Windows due to an [issue in libui](https://github.com/andlabs/libui/issues/347).
|
1049
|
-
- `arc` shape does not work on Windows unless a figure is started due to implementation of [libui](https://github.com/andlabs/libui).
|
1050
1076
|
- `table` controls on Windows intentionally get an extra empty row at the end because if any row were to be deleted for the first time, double-deletion happens due to an issue in [libui](https://github.com/andlabs/libui) on Windows.
|
1051
1077
|
- `table` `progress_bar` column on Windows cannot be updated with a positive value if it started initially with `-1` (it ignores update to avoid crashing due to an issue in [libui](https://github.com/andlabs/libui) on Windows.
|
1052
1078
|
- It seems that [libui](https://github.com/andlabs/libui) does not support nesting multiple `area` controls under a `grid` as only the first one shows up in that scenario. To workaround that limitation, use a `vertical_box` with nested `horizontal_box`s instead to include multiple `area`s in a GUI.
|
@@ -1101,6 +1127,10 @@ Mac
|
|
1101
1127
|
|
1102
1128
|

|
1103
1129
|
|
1130
|
+
Windows
|
1131
|
+
|
1132
|
+

|
1133
|
+
|
1104
1134
|
Linux
|
1105
1135
|
|
1106
1136
|

|
@@ -1265,6 +1295,10 @@ Mac
|
|
1265
1295
|
|
1266
1296
|

|
1267
1297
|
|
1298
|
+
Windows
|
1299
|
+
|
1300
|
+

|
1301
|
+
|
1268
1302
|
Linux
|
1269
1303
|
|
1270
1304
|

|
@@ -1345,6 +1379,11 @@ Mac
|
|
1345
1379
|

|
1346
1380
|

|
1347
1381
|
|
1382
|
+
Windows
|
1383
|
+
|
1384
|
+

|
1385
|
+

|
1386
|
+
|
1348
1387
|
Linux
|
1349
1388
|
|
1350
1389
|

|
@@ -1422,6 +1461,11 @@ Mac
|
|
1422
1461
|

|
1423
1462
|

|
1424
1463
|
|
1464
|
+
Windows
|
1465
|
+
|
1466
|
+

|
1467
|
+

|
1468
|
+
|
1425
1469
|
Linux
|
1426
1470
|
|
1427
1471
|

|
@@ -1522,6 +1566,10 @@ Mac
|
|
1522
1566
|
|
1523
1567
|

|
1524
1568
|
|
1569
|
+
Windows
|
1570
|
+
|
1571
|
+

|
1572
|
+
|
1525
1573
|
Linux
|
1526
1574
|
|
1527
1575
|

|
@@ -1595,6 +1643,11 @@ Mac
|
|
1595
1643
|

|
1596
1644
|

|
1597
1645
|
|
1646
|
+
Windows
|
1647
|
+
|
1648
|
+

|
1649
|
+

|
1650
|
+
|
1598
1651
|
Linux
|
1599
1652
|
|
1600
1653
|

|
@@ -1812,6 +1865,10 @@ Mac
|
|
1812
1865
|
|
1813
1866
|

|
1814
1867
|
|
1868
|
+
Windows
|
1869
|
+
|
1870
|
+

|
1871
|
+
|
1815
1872
|
Linux
|
1816
1873
|
|
1817
1874
|

|
@@ -2203,6 +2260,11 @@ Mac
|
|
2203
2260
|

|
2204
2261
|

|
2205
2262
|
|
2263
|
+
Windows
|
2264
|
+
|
2265
|
+

|
2266
|
+

|
2267
|
+
|
2206
2268
|
Linux
|
2207
2269
|
|
2208
2270
|

|
@@ -2287,6 +2349,11 @@ Mac
|
|
2287
2349
|

|
2288
2350
|

|
2289
2351
|
|
2352
|
+
Windows
|
2353
|
+
|
2354
|
+

|
2355
|
+

|
2356
|
+
|
2290
2357
|
Linux
|
2291
2358
|
|
2292
2359
|

|
@@ -2299,7 +2366,7 @@ require 'glimmer-dsl-libui'
|
|
2299
2366
|
|
2300
2367
|
include Glimmer
|
2301
2368
|
|
2302
|
-
window('color button',
|
2369
|
+
window('color button', 240) {
|
2303
2370
|
color_button { |cb|
|
2304
2371
|
color :blue
|
2305
2372
|
|
@@ -2331,6 +2398,10 @@ Mac
|
|
2331
2398
|
|
2332
2399
|

|
2333
2400
|
|
2401
|
+
Windows
|
2402
|
+
|
2403
|
+

|
2404
|
+
|
2334
2405
|
Linux
|
2335
2406
|
|
2336
2407
|

|
@@ -2423,6 +2494,12 @@ Mac
|
|
2423
2494
|

|
2424
2495
|

|
2425
2496
|
|
2497
|
+
Windows
|
2498
|
+
|
2499
|
+

|
2500
|
+

|
2501
|
+

|
2502
|
+
|
2426
2503
|
Linux
|
2427
2504
|
|
2428
2505
|

|
@@ -2561,6 +2638,11 @@ Mac
|
|
2561
2638
|

|
2562
2639
|

|
2563
2640
|
|
2641
|
+
Windows
|
2642
|
+
|
2643
|
+

|
2644
|
+

|
2645
|
+
|
2564
2646
|
Linux
|
2565
2647
|
|
2566
2648
|

|
@@ -2626,6 +2708,10 @@ Mac
|
|
2626
2708
|
|
2627
2709
|

|
2628
2710
|
|
2711
|
+
Windows
|
2712
|
+
|
2713
|
+

|
2714
|
+
|
2629
2715
|
Linux
|
2630
2716
|
|
2631
2717
|

|
@@ -2748,6 +2834,12 @@ Mac
|
|
2748
2834
|

|
2749
2835
|

|
2750
2836
|
|
2837
|
+
Windows
|
2838
|
+
|
2839
|
+

|
2840
|
+

|
2841
|
+

|
2842
|
+
|
2751
2843
|
Linux
|
2752
2844
|
|
2753
2845
|

|
@@ -2815,6 +2907,11 @@ Mac
|
|
2815
2907
|

|
2816
2908
|

|
2817
2909
|
|
2910
|
+
Windows
|
2911
|
+
|
2912
|
+

|
2913
|
+

|
2914
|
+
|
2818
2915
|
Linux
|
2819
2916
|
|
2820
2917
|

|
@@ -2882,6 +2979,10 @@ Mac
|
|
2882
2979
|
|
2883
2980
|

|
2884
2981
|
|
2982
|
+
Windows
|
2983
|
+
|
2984
|
+

|
2985
|
+
|
2885
2986
|
Linux
|
2886
2987
|
|
2887
2988
|

|
@@ -3040,6 +3141,10 @@ Mac
|
|
3040
3141
|
|
3041
3142
|

|
3042
3143
|
|
3144
|
+
Windows
|
3145
|
+
|
3146
|
+

|
3147
|
+
|
3043
3148
|
Linux
|
3044
3149
|
|
3045
3150
|

|
@@ -3111,6 +3216,11 @@ Mac
|
|
3111
3216
|

|
3112
3217
|

|
3113
3218
|
|
3219
|
+
Windows
|
3220
|
+
|
3221
|
+

|
3222
|
+

|
3223
|
+
|
3114
3224
|
Linux
|
3115
3225
|
|
3116
3226
|

|
@@ -3172,6 +3282,10 @@ Mac
|
|
3172
3282
|
|
3173
3283
|

|
3174
3284
|
|
3285
|
+
Windows
|
3286
|
+
|
3287
|
+

|
3288
|
+
|
3175
3289
|
Linux
|
3176
3290
|
|
3177
3291
|

|
@@ -3224,6 +3338,10 @@ Mac
|
|
3224
3338
|
|
3225
3339
|

|
3226
3340
|
|
3341
|
+
Windows
|
3342
|
+
|
3343
|
+

|
3344
|
+
|
3227
3345
|
Linux
|
3228
3346
|
|
3229
3347
|

|
@@ -3276,6 +3394,10 @@ Mac
|
|
3276
3394
|
|
3277
3395
|

|
3278
3396
|
|
3397
|
+
Windows
|
3398
|
+
|
3399
|
+

|
3400
|
+
|
3279
3401
|
Linux
|
3280
3402
|
|
3281
3403
|

|
@@ -3343,6 +3465,10 @@ Mac
|
|
3343
3465
|
|
3344
3466
|

|
3345
3467
|
|
3468
|
+
Windows
|
3469
|
+
|
3470
|
+

|
3471
|
+
|
3346
3472
|
Linux
|
3347
3473
|
|
3348
3474
|

|
@@ -3411,6 +3537,12 @@ Mac
|
|
3411
3537
|

|
3412
3538
|

|
3413
3539
|
|
3540
|
+
Windows
|
3541
|
+
|
3542
|
+

|
3543
|
+

|
3544
|
+

|
3545
|
+
|
3414
3546
|
Linux
|
3415
3547
|
|
3416
3548
|

|
@@ -3531,6 +3663,10 @@ Mac
|
|
3531
3663
|
|
3532
3664
|

|
3533
3665
|
|
3666
|
+
Windows
|
3667
|
+
|
3668
|
+

|
3669
|
+
|
3534
3670
|
Linux
|
3535
3671
|
|
3536
3672
|

|
@@ -3654,6 +3790,11 @@ Mac
|
|
3654
3790
|

|
3655
3791
|

|
3656
3792
|
|
3793
|
+
Windows
|
3794
|
+
|
3795
|
+

|
3796
|
+

|
3797
|
+
|
3657
3798
|
Linux
|
3658
3799
|
|
3659
3800
|

|
@@ -3885,6 +4026,10 @@ Mac
|
|
3885
4026
|
|
3886
4027
|

|
3887
4028
|
|
4029
|
+
Windows
|
4030
|
+
|
4031
|
+

|
4032
|
+
|
3888
4033
|
Linux
|
3889
4034
|
|
3890
4035
|

|
@@ -4523,6 +4668,10 @@ Mac
|
|
4523
4668
|
|
4524
4669
|

|
4525
4670
|
|
4671
|
+
Windows
|
4672
|
+
|
4673
|
+

|
4674
|
+
|
4526
4675
|
Linux
|
4527
4676
|
|
4528
4677
|

|
@@ -4864,6 +5013,10 @@ Mac
|
|
4864
5013
|
|
4865
5014
|

|
4866
5015
|
|
5016
|
+
Windows
|
5017
|
+
|
5018
|
+

|
5019
|
+
|
4867
5020
|
Linux
|
4868
5021
|
|
4869
5022
|

|
@@ -4921,6 +5074,11 @@ Mac
|
|
4921
5074
|

|
4922
5075
|

|
4923
5076
|
|
5077
|
+
Windows
|
5078
|
+
|
5079
|
+

|
5080
|
+

|
5081
|
+
|
4924
5082
|
Linux
|
4925
5083
|
|
4926
5084
|

|
@@ -4997,6 +5155,11 @@ Mac
|
|
4997
5155
|

|
4998
5156
|

|
4999
5157
|
|
5158
|
+
Windows
|
5159
|
+
|
5160
|
+

|
5161
|
+

|
5162
|
+
|
5000
5163
|
Linux
|
5001
5164
|
|
5002
5165
|

|
@@ -5162,6 +5325,12 @@ Mac
|
|
5162
5325
|

|
5163
5326
|

|
5164
5327
|
|
5328
|
+
Windows
|
5329
|
+
|
5330
|
+

|
5331
|
+

|
5332
|
+

|
5333
|
+
|
5165
5334
|
Linux
|
5166
5335
|
|
5167
5336
|

|
@@ -5413,6 +5582,10 @@ Mac
|
|
5413
5582
|
|
5414
5583
|

|
5415
5584
|
|
5585
|
+
Windows
|
5586
|
+
|
5587
|
+

|
5588
|
+
|
5416
5589
|
Linux
|
5417
5590
|
|
5418
5591
|

|
@@ -5696,6 +5869,11 @@ Mac
|
|
5696
5869
|

|
5697
5870
|

|
5698
5871
|
|
5872
|
+
Windows
|
5873
|
+
|
5874
|
+

|
5875
|
+

|
5876
|
+
|
5699
5877
|
Linux
|
5700
5878
|
|
5701
5879
|

|
@@ -5910,6 +6088,10 @@ Mac
|
|
5910
6088
|
|
5911
6089
|

|
5912
6090
|
|
6091
|
+
Windows
|
6092
|
+
|
6093
|
+

|
6094
|
+
|
5913
6095
|
Linux
|
5914
6096
|
|
5915
6097
|

|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.16
|
data/examples/basic_transform.rb
CHANGED
@@ -16,10 +16,16 @@ window('Basic Transform', 350, 350) {
|
|
16
16
|
fill r: [255 - n*5, 0].max, g: [n*5, 255].min, b: 0, a: 0.5
|
17
17
|
stroke :black, thickness: 2
|
18
18
|
transform {
|
19
|
-
|
20
|
-
|
19
|
+
unless OS.windows?
|
20
|
+
skew 0.15, 0.15
|
21
|
+
translate 50, 50
|
22
|
+
end
|
21
23
|
rotate 100, 100, -9 * n
|
22
24
|
scale 1.1, 1.1
|
25
|
+
if OS.windows?
|
26
|
+
skew 0.15, 0.15
|
27
|
+
translate 50, 50
|
28
|
+
end
|
23
29
|
}
|
24
30
|
}
|
25
31
|
end
|
data/examples/color_button.rb
CHANGED
data/glimmer-dsl-libui.gemspec
CHANGED
Binary file
|