libui 0.2.5-aarch64-linux → 0.3.0.pre2-aarch64-linux
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/README.md +11 -14
- data/lib/libui/ffi.rb +10 -5
- data/lib/libui/platform.rb +12 -12
- data/lib/libui/version.rb +1 -1
- data/lib/libui.rb +4 -4
- data/vendor/libui.aarch64.so +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb99f028c6ea94f1e01d7ef52dd593391b5aa9bf6f72b06320d2c93a84562058
|
|
4
|
+
data.tar.gz: 691be0f713a43859737f50b7a6a577e339228667eab7fa21c886a9db218db8e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbc55c6cdf97b814ea6274cfc93f6674251c3559d8d47858a4795958a69989fcd3aa0771da01ec28a338c1f62d5d4ee0c1553fbd5a8265832567adf32c73cb8e
|
|
7
|
+
data.tar.gz: 721a7205bcd96eef3e00fb14648962bad8a23ec9a6bfda82939f5c45002d2cf69b6381e4df1bd4b02181bbb30e12453d35275424e19c437a67ef08bbb31b70ba
|
data/README.md
CHANGED
|
@@ -94,9 +94,6 @@ Text getter methods such as `label_text`, `entry_text`, and `window_title`
|
|
|
94
94
|
return `Fiddle::Pointer` objects for strings allocated by libui. Convert the
|
|
95
95
|
pointer to a Ruby string, then release it with `free_text`.
|
|
96
96
|
|
|
97
|
-
`LibUI.version` returns the loaded libui-ng build identifier as a Ruby string.
|
|
98
|
-
`LibUI::VERSION` is the gem version.
|
|
99
|
-
|
|
100
97
|
```ruby
|
|
101
98
|
label = UI.new_label("Ruby")
|
|
102
99
|
pointer = UI.label_text(label) # #<Fiddle::Pointer>
|
|
@@ -222,36 +219,36 @@ If you build libui-ng yourself, set `LIBUIDIR` to the directory containing the c
|
|
|
222
219
|
|
|
223
220
|
#### Automated Publishing
|
|
224
221
|
|
|
225
|
-
|
|
226
|
-
pass, then push the new version tag to publish platform-specific and generic gems:
|
|
222
|
+
Push a version tag to automatically publish platform-specific gems:
|
|
227
223
|
|
|
228
224
|
```sh
|
|
229
|
-
git tag v0.2.
|
|
230
|
-
git push origin v0.2.
|
|
225
|
+
git tag v0.2.0
|
|
226
|
+
git push origin v0.2.0
|
|
231
227
|
```
|
|
232
228
|
|
|
233
|
-
|
|
234
|
-
`release-rubygems` GitHub environment.
|
|
229
|
+
Requires `RUBYGEMS_API_KEY` repository secret with scoped API key.
|
|
235
230
|
|
|
236
231
|
#### Manual Publishing
|
|
237
232
|
|
|
238
233
|
```sh
|
|
239
|
-
|
|
240
|
-
|
|
234
|
+
ls vendor # check the vendor directory
|
|
235
|
+
rm -rf pkg # remove previously built gems
|
|
236
|
+
rake build_platform # build gems
|
|
241
237
|
|
|
242
238
|
# Check the contents of the gem
|
|
243
239
|
find pkg -name *.gem -exec sh -c "echo; echo \# {}; tar -O -f {} -x data.tar.gz | tar zt" \;
|
|
244
240
|
|
|
245
|
-
|
|
241
|
+
rake release_platform # publish gems
|
|
246
242
|
```
|
|
247
243
|
|
|
248
|
-
Windows Ruby (
|
|
244
|
+
Windows Ruby (x64-mingw32 or x64-mingw-ucrt)
|
|
249
245
|
|
|
250
246
|
```sh
|
|
251
247
|
gem install rake rubyzip
|
|
248
|
+
GEM_PLATFORM=x64-mingw32 rake vendor:clean
|
|
252
249
|
GEM_PLATFORM=x64-mingw32 rake vendor:auto
|
|
253
250
|
GEM_PLATFORM=x64-mingw32 gem build libui.gemspec
|
|
254
|
-
gem push libui-0.2.
|
|
251
|
+
gem push libui-0.2.0-x64-mingw32.gem
|
|
255
252
|
```
|
|
256
253
|
|
|
257
254
|
### libui or libui-ng
|
data/lib/libui/ffi.rb
CHANGED
|
@@ -45,7 +45,6 @@ module LibUI
|
|
|
45
45
|
# https://github.com/andlabs/libui/blob/master/ui.h
|
|
46
46
|
# keep same order
|
|
47
47
|
|
|
48
|
-
try_extern 'const char *uiVersion(void)'
|
|
49
48
|
try_extern 'const char *uiInit(uiInitOptions *options)'
|
|
50
49
|
try_extern 'void uiUninit(void)'
|
|
51
50
|
try_extern 'void uiFreeInitError(const char *err)'
|
|
@@ -77,7 +76,6 @@ module LibUI
|
|
|
77
76
|
]
|
|
78
77
|
|
|
79
78
|
try_extern 'void uiControlDestroy(uiControl *c)'
|
|
80
|
-
try_extern 'void uiControlOnDestroyed(uiControl *c, void (*f)(uiControl *c, void *data), void *data)'
|
|
81
79
|
try_extern 'uintptr_t uiControlHandle(uiControl *c)'
|
|
82
80
|
try_extern 'uiControl *uiControlParent(uiControl *c)'
|
|
83
81
|
try_extern 'void uiControlSetParent(uiControl *c, uiControl *parent)'
|
|
@@ -88,7 +86,6 @@ module LibUI
|
|
|
88
86
|
try_extern 'int uiControlEnabled(uiControl *c)'
|
|
89
87
|
try_extern 'void uiControlEnable(uiControl *c)'
|
|
90
88
|
try_extern 'void uiControlDisable(uiControl *c)'
|
|
91
|
-
try_extern 'void uiControlSetMinimumSize(uiControl *c, int width, int height)'
|
|
92
89
|
|
|
93
90
|
try_extern 'uiControl *uiAllocControl(size_t n, uint32_t OSsig, uint32_t typesig, const char *typenamestr)'
|
|
94
91
|
try_extern 'void uiFreeControl(uiControl *c)'
|
|
@@ -424,6 +421,7 @@ module LibUI
|
|
|
424
421
|
try_extern 'void uiDrawClip(uiDrawContext *c, uiDrawPath *path)'
|
|
425
422
|
try_extern 'void uiDrawSave(uiDrawContext *c)'
|
|
426
423
|
try_extern 'void uiDrawRestore(uiDrawContext *c)'
|
|
424
|
+
try_extern 'void uiDrawImage(uiDrawContext *c, uiImage *img, double x, double y, double width, double height)'
|
|
427
425
|
|
|
428
426
|
# uiAttribute
|
|
429
427
|
try_extern 'void uiFreeAttribute(uiAttribute *a)'
|
|
@@ -577,7 +575,6 @@ module LibUI
|
|
|
577
575
|
|
|
578
576
|
try_extern 'void uiGridAppend(uiGrid *g, uiControl *c, int left, int top, int xspan, int yspan, int hexpand, uiAlign halign, int vexpand, uiAlign valign)'
|
|
579
577
|
try_extern 'void uiGridInsertAt(uiGrid *g, uiControl *c, uiControl *existing, uiAt at, int xspan, int yspan, int hexpand, uiAlign halign, int vexpand, uiAlign valign)'
|
|
580
|
-
try_extern 'void uiGridDelete(uiGrid *g, uiControl *c)'
|
|
581
578
|
try_extern 'int uiGridPadded(uiGrid *g)'
|
|
582
579
|
try_extern 'void uiGridSetPadded(uiGrid *g, int padded)'
|
|
583
580
|
try_extern 'uiGrid *uiNewGrid(void)'
|
|
@@ -586,7 +583,15 @@ module LibUI
|
|
|
586
583
|
|
|
587
584
|
try_extern 'uiImage *uiNewImage(double width, double height)'
|
|
588
585
|
try_extern 'void uiFreeImage(uiImage *i)'
|
|
589
|
-
try_extern 'void uiImageAppend(uiImage *i,
|
|
586
|
+
try_extern 'void uiImageAppend(uiImage *i, void *pixels, int pixelWidth, int pixelHeight, int byteStride)'
|
|
587
|
+
|
|
588
|
+
# uiImageView
|
|
589
|
+
try_extern 'uiImageView *uiNewImageView(void)'
|
|
590
|
+
try_extern 'void uiImageViewSetImage(uiImageView *iv, const uiImage *image)'
|
|
591
|
+
|
|
592
|
+
typealias 'uiImageViewContentMode', 'int'
|
|
593
|
+
|
|
594
|
+
try_extern 'void uiImageViewSetContentMode(uiImageView *iv, uiImageViewContentMode mode)'
|
|
590
595
|
|
|
591
596
|
# uiTable
|
|
592
597
|
try_extern 'void uiFreeTableValue(uiTableValue *v)'
|
data/lib/libui/platform.rb
CHANGED
|
@@ -6,38 +6,38 @@ module LibUI
|
|
|
6
6
|
'arm64-darwin' => {
|
|
7
7
|
vendor: 'vendor/libui.arm64.dylib',
|
|
8
8
|
lib_names: ['libui.arm64.dylib', 'libui.dylib'],
|
|
9
|
-
release_zip: '
|
|
10
|
-
release_src: '
|
|
9
|
+
release_zip: 'macOS-arm64-shared-release.zip',
|
|
10
|
+
release_src: 'builddir/meson-out/libui.dylib'
|
|
11
11
|
},
|
|
12
12
|
'x86_64-darwin' => {
|
|
13
13
|
vendor: 'vendor/libui.x86_64.dylib',
|
|
14
14
|
lib_names: ['libui.x86_64.dylib', 'libui.dylib'],
|
|
15
|
-
release_zip: '
|
|
16
|
-
release_src: '
|
|
15
|
+
release_zip: 'macOS-x64-shared-release.zip',
|
|
16
|
+
release_src: 'builddir/meson-out/libui.dylib'
|
|
17
17
|
},
|
|
18
18
|
'x86_64-linux' => {
|
|
19
19
|
vendor: 'vendor/libui.x86_64.so',
|
|
20
20
|
lib_names: ['libui.x86_64.so', 'libui.so'],
|
|
21
|
-
release_zip: '
|
|
22
|
-
release_src: '
|
|
21
|
+
release_zip: 'Ubuntu-x64-shared-release.zip',
|
|
22
|
+
release_src: 'builddir/meson-out/libui.so'
|
|
23
23
|
},
|
|
24
24
|
'aarch64-linux' => {
|
|
25
25
|
vendor: 'vendor/libui.aarch64.so',
|
|
26
26
|
lib_names: ['libui.aarch64.so', 'libui.so'],
|
|
27
|
-
release_zip: '
|
|
28
|
-
release_src: '
|
|
27
|
+
release_zip: 'Ubuntu-arm64-shared-release.zip',
|
|
28
|
+
release_src: 'builddir/meson-out/libui.so'
|
|
29
29
|
},
|
|
30
30
|
'x64-mingw32' => {
|
|
31
31
|
vendor: 'vendor/libui.x64.dll',
|
|
32
32
|
lib_names: ['libui.x64.dll', 'libui.dll'],
|
|
33
|
-
release_zip: '
|
|
34
|
-
release_src: '
|
|
33
|
+
release_zip: 'Windows-x64-msvc-shared-release.zip',
|
|
34
|
+
release_src: 'builddir/meson-out/libui.dll'
|
|
35
35
|
},
|
|
36
36
|
'x86-mingw32' => {
|
|
37
37
|
vendor: 'vendor/libui.x86.dll',
|
|
38
38
|
lib_names: ['libui.x86.dll', 'libui.dll'],
|
|
39
|
-
release_zip: '
|
|
40
|
-
release_src: '
|
|
39
|
+
release_zip: 'Windows-x86-msvc-shared-release.zip',
|
|
40
|
+
release_src: 'builddir/meson-out/libui.dll'
|
|
41
41
|
}
|
|
42
42
|
}.freeze
|
|
43
43
|
|
data/lib/libui/version.rb
CHANGED
data/lib/libui.rb
CHANGED
|
@@ -25,10 +25,6 @@ module LibUI
|
|
|
25
25
|
extend LibUIBase
|
|
26
26
|
|
|
27
27
|
class << self
|
|
28
|
-
def version
|
|
29
|
-
super.to_s
|
|
30
|
-
end
|
|
31
|
-
|
|
32
28
|
def init(opt = nil)
|
|
33
29
|
# Allocate uiInitOptions if not provided
|
|
34
30
|
unless opt
|
|
@@ -339,6 +335,10 @@ module LibUI
|
|
|
339
335
|
AtTrailing = 2
|
|
340
336
|
AtBottom = 3
|
|
341
337
|
|
|
338
|
+
# ImageViewContentMode
|
|
339
|
+
ImageViewContentCenter = 0
|
|
340
|
+
ImageViewContentFit = 1
|
|
341
|
+
|
|
342
342
|
# TableValueType
|
|
343
343
|
TableValueTypeString = 0
|
|
344
344
|
TableValueTypeImage = 1
|
data/vendor/libui.aarch64.so
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: libui
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0.pre2
|
|
5
5
|
platform: aarch64-linux
|
|
6
6
|
authors:
|
|
7
7
|
- kojix2
|
|
@@ -53,14 +53,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
53
53
|
requirements:
|
|
54
54
|
- - ">="
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: '2.
|
|
56
|
+
version: '2.6'
|
|
57
57
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
59
|
- - ">="
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
61
|
version: '0'
|
|
62
62
|
requirements: []
|
|
63
|
-
rubygems_version:
|
|
63
|
+
rubygems_version: 3.6.9
|
|
64
64
|
specification_version: 4
|
|
65
65
|
summary: Ruby bindings to libui
|
|
66
66
|
test_files: []
|