libui 0.1.0.pre.0-x86_64-darwin → 0.1.1.pre.0-x86_64-darwin
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 +12 -22
- data/lib/libui/ffi.rb +16 -0
- data/lib/libui/version.rb +1 -1
- data/lib/libui.rb +7 -2
- data/vendor/libui.dylib +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: 21722d881585a6a4d84a655ccb26285bc0d315f694945bdd9633e46e8f5974f5
         | 
| 4 | 
            +
              data.tar.gz: f37cb86af3e0a5f41be85b46f5377148e5b759592d00ea9108658b2deebba84b
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 77d7f5df2b49c0cbe3bd0ab20ad8f2fab600886a385af32370df2c337d2b0f33ce0e6e9c9c66f5b9176f254848c1f0822c540399180a4e76cfa591d6b4e30baf
         | 
| 7 | 
            +
              data.tar.gz: 3d15f351a7f3e47b27d245978170cd31d759eb4fda4897101c75cc1657a91fd36b971850ee38fef646ab19ec2ded1981b4b74f1e9702bfe7377fda3e4e735d95
         | 
    
        data/README.md
    CHANGED
    
    | @@ -177,16 +177,17 @@ You can use the following rake tasks to download the shared library required for | |
| 177 177 | 
             
            `rake -T`
         | 
| 178 178 |  | 
| 179 179 | 
             
            ```
         | 
| 180 | 
            -
            rake vendor: | 
| 181 | 
            -
            rake vendor: | 
| 182 | 
            -
            rake vendor: | 
| 183 | 
            -
            rake vendor: | 
| 184 | 
            -
            rake vendor: | 
| 185 | 
            -
            rake vendor: | 
| 186 | 
            -
            rake vendor: | 
| 180 | 
            +
            rake vendor:kojix2:auto           # Download kojix2 pre-build for your platform to vendor directory
         | 
| 181 | 
            +
            rake vendor:kojix2:mac            # Download kojix2 pre-build for Mac to vendor directory
         | 
| 182 | 
            +
            rake vendor:kojix2:ubuntu_x64     # Download kojix2 pre-build for Ubuntu to vendor directory
         | 
| 183 | 
            +
            rake vendor:kojix2:windows_x64    # Download kojix2 pre-build for Windows to vendor directory
         | 
| 184 | 
            +
            rake vendor:kojix2:windows_x86    # Download kojix2 pre-build for Windows to vendor directory
         | 
| 185 | 
            +
            rake vendor:libui-ng:build[hash]  # Build libui-ng latest master [commit hash]
         | 
| 186 | 
            +
            rake vendor:libui-ng:mac          # Download latest dev build for Mac to vendor directory
         | 
| 187 | 
            +
            rake vendor:libui-ng:ubuntu_x64   # Download latest dev build for Ubuntu to vendor directory
         | 
| 187 188 | 
             
            ```
         | 
| 188 189 |  | 
| 189 | 
            -
            For example, If you are using a 32-bit (x86) version of Ruby on Windows, type ` | 
| 190 | 
            +
            For example, If you are using a 32-bit (x86) version of Ruby on Windows, type `vendor:kojix2:windows_x86`.
         | 
| 190 191 |  | 
| 191 192 | 
             
            ### Use C libui compiled from source code
         | 
| 192 193 |  | 
| @@ -194,21 +195,10 @@ You can compile C libui from source code on your platform and tell ruby LibUI wh | |
| 194 195 |  | 
| 195 196 | 
             
            Another simple approach is to replace the shared libraries in the gem vendor directory with the ones you have compiled.
         | 
| 196 197 |  | 
| 197 | 
            -
            ### libui-ng
         | 
| 198 | 
            +
            ### libui or libui-ng
         | 
| 198 199 |  | 
| 199 | 
            -
             | 
| 200 | 
            -
             | 
| 201 | 
            -
            [libui-ng](https://github.com/libui-ng/libui-ng) is the successor project to libui. Rake tasks are available to build or download libui-ng shared libraries.
         | 
| 202 | 
            -
             | 
| 203 | 
            -
            ```
         | 
| 204 | 
            -
            rake libui-ng:build[hash]  # Build libui-ng latest master [commit hash]
         | 
| 205 | 
            -
            rake libui-ng:mac          # Download latest dev build for Mac to vendor directory
         | 
| 206 | 
            -
            rake libui-ng:ubuntu_x64   # Download latest dev build for Ubuntu to vendor directory
         | 
| 207 | 
            -
            ```
         | 
| 208 | 
            -
             | 
| 209 | 
            -
            ```
         | 
| 210 | 
            -
            rake install
         | 
| 211 | 
            -
            ```
         | 
| 200 | 
            +
            * From version 0.1.X, we plan to support only libui-ng/libui-ng.
         | 
| 201 | 
            +
            * Version 0.0.X only supports andlabs/libui. 
         | 
| 212 202 |  | 
| 213 203 | 
             
            ## Contributing
         | 
| 214 204 |  | 
    
        data/lib/libui/ffi.rb
    CHANGED
    
    | @@ -616,6 +616,8 @@ module LibUI | |
| 616 616 | 
             
                try_extern 'int uiTableHeaderVisible(uiTable *t)'
         | 
| 617 617 | 
             
                try_extern 'void uiTableHeaderSetVisible(uiTable *t, int visible)'
         | 
| 618 618 | 
             
                try_extern 'uiTable *uiNewTable(uiTableParams *params)'
         | 
| 619 | 
            +
                try_extern 'void uiTableOnRowClicked(uiTable *t, void (*f)(uiTable *t, int row, void *data), void *data)'
         | 
| 620 | 
            +
                try_extern 'void uiTableOnRowDoubleClicked(uiTable *t, void (*f)(uiTable *t, int row, void *data), void *data)'
         | 
| 619 621 |  | 
| 620 622 | 
             
                typealias 'uiSortIndicator', 'int'
         | 
| 621 623 |  | 
| @@ -624,5 +626,19 @@ module LibUI | |
| 624 626 | 
             
                try_extern 'void uiTableHeaderOnClicked(uiTable *t, void (*f)(uiTable *sender, int column, void *senderData), void *data)'
         | 
| 625 627 | 
             
                try_extern 'int uiTableColumnWidth(uiTable *t, int column)'
         | 
| 626 628 | 
             
                try_extern 'void uiTableColumnSetWidth(uiTable *t, int column, int width)'
         | 
| 629 | 
            +
                try_extern 'uiTableSelectionMode uiTableGetSelectionMode(uiTable *t)'
         | 
| 630 | 
            +
             | 
| 631 | 
            +
                typealias 'uiTableSelectionMode', 'int'
         | 
| 632 | 
            +
             | 
| 633 | 
            +
                try_extern 'void uiTableSetSelectionMode(uiTable *t, uiTableSelectionMode mode)'
         | 
| 634 | 
            +
                try_extern 'void uiTableOnSelectionChanged(uiTable *t, void (*f)(uiTable *t, void *data), void *data)'
         | 
| 635 | 
            +
                try_extern 'uiTableSelection* uiTableGetSelection(uiTable *t)'
         | 
| 636 | 
            +
                try_extern 'void uiTableSetSelection(uiTable *t, uiTableSelection *sel)'
         | 
| 637 | 
            +
                try_extern 'void uiFreeTableSelection(uiTableSelection* s)'
         | 
| 638 | 
            +
             | 
| 639 | 
            +
                TableSelection = struct [
         | 
| 640 | 
            +
                  'int NumRows',
         | 
| 641 | 
            +
                  'int *Rows'
         | 
| 642 | 
            +
                ]
         | 
| 627 643 | 
             
              end
         | 
| 628 644 | 
             
            end
         | 
    
        data/lib/libui/version.rb
    CHANGED
    
    
    
        data/lib/libui.rb
    CHANGED
    
    | @@ -51,8 +51,7 @@ module LibUI | |
| 51 51 | 
             
                end
         | 
| 52 52 | 
             
              end
         | 
| 53 53 |  | 
| 54 | 
            -
               | 
| 55 | 
            -
              # https://github.com/andlabs/libui/blob/master/ui.h
         | 
| 54 | 
            +
              ## UI_ENUM https://github.com/libui-ng/libui-ng/blob/master/ui.h
         | 
| 56 55 |  | 
| 57 56 | 
             
              # ForEach
         | 
| 58 57 | 
             
              ForEachContinue    =    0
         | 
| @@ -223,4 +222,10 @@ module LibUI | |
| 223 222 | 
             
              # editable
         | 
| 224 223 | 
             
              TableModelColumnNeverEditable  = -1
         | 
| 225 224 | 
             
              TableModelColumnAlwaysEditable = -2
         | 
| 225 | 
            +
             | 
| 226 | 
            +
              # TableSelectionMode
         | 
| 227 | 
            +
              TableSelectionModeNone       = 0
         | 
| 228 | 
            +
              TableSelectionModeZeroOrOne  = 1
         | 
| 229 | 
            +
              TableSelectionModeOne        = 2
         | 
| 230 | 
            +
              TableSelectionModeZeroOrMany = 3
         | 
| 226 231 | 
             
            end
         | 
    
        data/vendor/libui.dylib
    CHANGED
    
    | Binary file | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: libui
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.1.pre.0
         | 
| 5 5 | 
             
            platform: x86_64-darwin
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - kojix2
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date:  | 
| 11 | 
            +
            date: 2023-03-05 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies: []
         | 
| 13 13 | 
             
            description: 
         | 
| 14 14 | 
             
            email:
         | 
| @@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 47 47 | 
             
                - !ruby/object:Gem::Version
         | 
| 48 48 | 
             
                  version: 1.3.1
         | 
| 49 49 | 
             
            requirements: []
         | 
| 50 | 
            -
            rubygems_version: 3. | 
| 50 | 
            +
            rubygems_version: 3.4.6
         | 
| 51 51 | 
             
            signing_key: 
         | 
| 52 52 | 
             
            specification_version: 4
         | 
| 53 53 | 
             
            summary: Ruby bindings to libui
         |