libui 0.2.2-x64-mingw-ucrt → 0.3.0.pre-x64-mingw-ucrt

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 670fe477f3e39ededef9e4205dff516b91904b46076748ab98704a85921ece4d
4
- data.tar.gz: dca331db4c2d79322f6d6ec2a0ae9f82a2b1dee2028c0cccb3d350c1c5359a4e
3
+ metadata.gz: '095ed68118e00665149dc43251bcfeba15b55a45f694b43aaa7530c2c9f35de3'
4
+ data.tar.gz: a5bd048b4ce12f5f8f222f985da4079403a754fdc4fccee32b42d59361528a4a
5
5
  SHA512:
6
- metadata.gz: 55ce24f74cee91291a3acbf7f83da6aa896a0b2b7b8a48a05535d09213cf0bdd70ad0f45fd1105b4ac57f842def5eecbbefd5d087048f4f8b133b592cf3183c1
7
- data.tar.gz: 5eb449b63e8067e49f343bea98ce89798531994e58444661c7a219e6639f666d8c0ec4dadbce6be2011eda823317617530b20b7ce3e65b94b805bad0d4f9d9ec
6
+ metadata.gz: f1d4b63ea24624c58e6d06587d8d1a2e2ea9ffafa01dcae57b70e5a11bb17585d3f086b550ad7ff7377c1b2b855409d3280389fae62ee90a30b62363c6537977
7
+ data.tar.gz: 4ca733ca8d136712a770e5ae0492b43d39f8ea7a8f5b24b9460503ff27ddcd40fc9188a555a6552f6420044df6eb2d9a70afce7222e20a6d3ed9014b6ff8bbe0
data/README.md CHANGED
@@ -8,11 +8,7 @@
8
8
 
9
9
  LibUI is a Ruby wrapper for libui family.
10
10
 
11
- :rocket: [libui-ng](https://github.com/libui-ng/libui-ng) - A cross-platform portable GUI library
12
-
13
- :wrench: [libui-dev](https://github.com/petabyt/libui-dev) - Native UI library for C - with some extras
14
-
15
- :radio_button: [libui](https://github.com/andlabs/libui) - Original version by andlabs.
11
+ :rocket: [libui-ng](https://github.com/kojix2/libui-ng) - A cross-platform portable GUI library
16
12
 
17
13
  ## Installation
18
14
 
data/lib/libui/ffi.rb CHANGED
@@ -418,6 +418,7 @@ module LibUI
418
418
  try_extern 'void uiDrawClip(uiDrawContext *c, uiDrawPath *path)'
419
419
  try_extern 'void uiDrawSave(uiDrawContext *c)'
420
420
  try_extern 'void uiDrawRestore(uiDrawContext *c)'
421
+ try_extern 'void uiDrawImage(uiDrawContext *c, uiImage *img, double x, double y, double width, double height)'
421
422
 
422
423
  # uiAttribute
423
424
  try_extern 'void uiFreeAttribute(uiAttribute *a)'
@@ -581,6 +582,14 @@ module LibUI
581
582
  try_extern 'void uiFreeImage(uiImage *i)'
582
583
  try_extern 'void uiImageAppend(uiImage *i, void *pixels, int pixelWidth, int pixelHeight, int byteStride)'
583
584
 
585
+ # uiImageView
586
+ try_extern 'uiImageView *uiNewImageView(void)'
587
+ try_extern 'void uiImageViewSetImage(uiImageView *iv, const uiImage *image)'
588
+
589
+ typealias 'uiImageViewContentMode', 'int'
590
+
591
+ try_extern 'void uiImageViewSetContentMode(uiImageView *iv, uiImageViewContentMode mode)'
592
+
584
593
  # uiTable
585
594
  try_extern 'void uiFreeTableValue(uiTableValue *v)'
586
595
 
data/lib/libui/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module LibUI
2
- VERSION = '0.2.2'
2
+ VERSION = '0.3.0.pre'
3
3
  end
data/lib/libui.rb CHANGED
@@ -351,6 +351,10 @@ module LibUI
351
351
  AtTrailing = 2
352
352
  AtBottom = 3
353
353
 
354
+ # ImageViewContentMode
355
+ ImageViewContentCenter = 0
356
+ ImageViewContentFit = 1
357
+
354
358
  # TableValueType
355
359
  TableValueTypeString = 0
356
360
  TableValueTypeImage = 1
data/vendor/libui.x64.dll 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.2.2
4
+ version: 0.3.0.pre
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - kojix2