glimmer-dsl-swt 4.18.7.4 → 4.18.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +109 -17
- data/VERSION +1 -1
- data/docs/reference/GLIMMER_COMMAND.md +35 -2
- data/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md +2 -4
- data/glimmer-dsl-swt.gemspec +3 -3
- data/lib/glimmer/swt/image_proxy.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 624d10930b3ed1e17b60131a6e42825b58c8b997e04ec3169099bc10f994e3e4
|
4
|
+
data.tar.gz: d05163b01c26b519866d831cd54d849632367270582c25e8237455cb18e2ed69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 424f2c3aeecef6728ea5b2cfe1c00c6afda10b11f04bd14fa59150bc6e2fb07f4738c3deb681882431f13a2b0a8d6cbf292ef1f00ac2b5732f253830e13f00df
|
7
|
+
data.tar.gz: b0e44958872f55f23301191105dce94b4b59ecd60a4349a07caf0b4191bd37ba075d0f9dc1ff988598cfb922ebf5e133c589a3c693368e6d656c5ecf37691d57
|
data/CHANGELOG.md
CHANGED
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 SWT 4.18.7.
|
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 SWT 4.18.7.5
|
2
2
|
## JRuby Desktop Development GUI Framework
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
|
4
4
|
[![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-swt.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-swt)
|
@@ -8,12 +8,14 @@
|
|
8
8
|
|
9
9
|
**[Contributors Wanted! (Submit a Glimmer App Sample to Get Started)](#contributing)**
|
10
10
|
|
11
|
-
|
11
|
+
**(The Original Glimmer Library Handling the World’s Ruby GUI Needs Since 2007. Beware of Imitators!)**
|
12
|
+
|
13
|
+
[Glimmer](https://github.com/AndyObtiva/glimmer) DSL for SWT is a native-GUI cross-platform desktop development library written in [JRuby](https://www.jruby.org/), an OS-threaded faster JVM version of [Ruby](https://www.ruby-lang.org/en/). [Glimmer](https://github.com/AndyObtiva/glimmer) was the [first Ruby gem](https://rubygems.org/gems/glimmer) to bring [SWT](https://www.eclipse.org/swt/) (Standard Widget Toolkit) to [Ruby](https://www.ruby-lang.org/en/), thanks to its creator [Andy Maleh](https://andymaleh.blogspot.com/), an EclipseCon/EclipseWorld/RubyConf speaker and expert. [Glimmer](https://github.com/AndyObtiva/glimmer)'s main innovation is a declarative [Ruby DSL](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#glimmer-dsl-syntax) that enables productive and efficient authoring of desktop application user-interfaces by relying on the robust [Eclipse SWT library](https://www.eclipse.org/swt/). [Glimmer](https://rubygems.org/gems/glimmer) additionally innovates by having built-in [data-binding](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#data-binding) support, which greatly facilitates synchronizing the GUI with domain models, thus achieving true decoupling of object oriented components and enabling developers to solve business problems (test-first) without worrying about GUI concerns, or alternatively drive development GUI-first, and then write clean business models (test-first) afterwards. Not only does Glimmer provide a large set of GUI [widgets](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#widgets), but it also supports drawing Canvas Graphics like [Shapes](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#canvas-shape-dsl) and [Animations](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#canvas-animation-dsl). To get started quickly, [Glimmer](https://rubygems.org/gems/glimmer) offers [scaffolding](docs/reference/GLIMMER_COMMAND.md#scaffolding) options for [Apps](#in-production), [Gems](docs/reference/GLIMMER_COMMAND.md#custom-shell-gem), and [Custom Widgets](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#custom-widgets). [Glimmer](https://rubygems.org/gems/glimmer) also includes native-executable [packaging](docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md) support, sorely lacking in other libraries, thus enabling the delivery of desktop apps written in [Ruby](https://www.ruby-lang.org/en/) as truly native DMG/PKG/APP files on the [Mac](https://www.apple.com/ca/macos) + [App Store](https://developer.apple.com/macos/distribution/), MSI/EXE files on [Windows](https://www.microsoft.com/en-ca/windows), and [Gem Packaged Shell Scripts](docs/reference/GLIMMER_COMMAND.md#packaging) on [Linux](https://www.linux.org/).
|
12
14
|
|
13
15
|
[<img src="https://covers.oreillystatic.com/images/9780596519650/lrg.jpg" width=105 /><br />
|
14
16
|
Featured in JRuby Cookbook](http://shop.oreilly.com/product/9780596519650.do) and [Chalmers/Gothenburg University Software Engineering Master's Lecture Material](http://www.cse.chalmers.se/~bergert/slides/guest_lecture_DSLs.pdf)
|
15
17
|
|
16
|
-
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.18.7.
|
18
|
+
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.18.7.5 includes [SWT 4.18](https://download.eclipse.org/eclipse/downloads/drops4/R-4.18-202012021800/), which was released on December 2, 2020. Gem version numbers are in sync with the SWT library versions. The first two digits represent the SWT version number. The last two digits represent the minor and patch versions of Glimmer DSL for SWT.
|
17
19
|
|
18
20
|
[Glimmer DSL for SWT receives two updates per month](https://rubygems.org/gems/glimmer-dsl-swt/versions). You can trust [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) with your Ruby desktop GUI development needs! [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) brings great ideas to the table, such as declarative programming via domain specific languages, currently under-utilized in the GUI domain. That said, it may not be feature complete enough for everybody's needs, so please help make [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) even better by providing feedback and [contributing](#contributing) when possible. The project is very active, so any feature suggestions that are accepted could be implemented within weeks if not days. Also, you are welcome to [hire me](#hire-me) full-time if you want long-term development of [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) for your project needs.
|
19
21
|
|
@@ -340,7 +342,7 @@ jgem install glimmer-dsl-swt
|
|
340
342
|
|
341
343
|
Or this command if you want a specific version:
|
342
344
|
```
|
343
|
-
jgem install glimmer-dsl-swt -v 4.18.7.
|
345
|
+
jgem install glimmer-dsl-swt -v 4.18.7.5
|
344
346
|
```
|
345
347
|
|
346
348
|
`jgem` is JRuby's version of `gem` command.
|
@@ -358,7 +360,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
|
|
358
360
|
|
359
361
|
Add the following to `Gemfile`:
|
360
362
|
```
|
361
|
-
gem 'glimmer-dsl-swt', '~> 4.18.7.
|
363
|
+
gem 'glimmer-dsl-swt', '~> 4.18.7.5'
|
362
364
|
```
|
363
365
|
|
364
366
|
And, then run:
|
@@ -374,27 +376,115 @@ You may learn more about other Glimmer related gems ([`glimmer-dsl-opal`](https:
|
|
374
376
|
|
375
377
|
You can use the glimmer command to scaffold new apps, run apps & samples, package native executables, and list Glimmer community gems.
|
376
378
|
|
377
|
-
|
379
|
+
```
|
380
|
+
glimmer
|
381
|
+
```
|
382
|
+
|
383
|
+
```
|
384
|
+
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.18.7.5
|
385
|
+
|
386
|
+
Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
|
387
|
+
|
388
|
+
Runs Glimmer applications and tasks.
|
389
|
+
|
390
|
+
When applications are specified, they are run using JRuby,
|
391
|
+
automatically preloading the glimmer Ruby gem and SWT jar dependency.
|
392
|
+
|
393
|
+
Optionally, extra Glimmer options, JRuby options, and/or environment variables may be passed in.
|
394
|
+
|
395
|
+
Glimmer options:
|
396
|
+
- "--bundler=GROUP" : Activates gems in Bundler default group in Gemfile
|
397
|
+
- "--pd=BOOLEAN" : Requires puts_debuggerer to enable pd method
|
398
|
+
- "--quiet=BOOLEAN" : Does not announce file path of Glimmer application being launched
|
399
|
+
- "--debug" : Displays extra debugging information, passes "--debug" to JRuby, and enables debug logging
|
400
|
+
- "--log-level=VALUE" : Sets Glimmer's Ruby logger level ("ERROR" / "WARN" / "INFO" / "DEBUG"; default is none)
|
401
|
+
|
402
|
+
Tasks are run via rake. Some tasks take arguments in square brackets.
|
403
|
+
|
404
|
+
Available tasks are below (if you do not see any, please add `require 'glimmer/rake_task'` to Rakefile and rerun or run rake -T):
|
405
|
+
|
406
|
+
Select a Glimmer task to run: (Press ↑/↓ arrow to move, Enter to select and letters to filter)
|
407
|
+
glimmer list:gems:customshape[query] # List Glimmer custom shape gems available at rubygems.org (query is optional) [alt: list:gems:cp]
|
408
|
+
‣ glimmer list:gems:customshell[query] # List Glimmer custom shell gems available at rubygems.org (query is optional) [alt: list:gems:cs]
|
409
|
+
glimmer list:gems:customwidget[query] # List Glimmer custom widget gems available at rubygems.org (query is optional) [alt: list:gems:cw]
|
410
|
+
glimmer list:gems:dsl[query] # List Glimmer DSL gems available at rubygems.org (query is optional)
|
411
|
+
glimmer package[type] # Package app for distribution (generating config, jar, and native files) (type is optional)
|
412
|
+
glimmer package:clean # Clean by removing "dist" and "packages" directories
|
413
|
+
glimmer package:config # Generate JAR config file
|
414
|
+
glimmer package:gem # Generate gem under pkg directory
|
415
|
+
glimmer package:gemspec # Generate gemspec
|
416
|
+
glimmer package:jar # Generate JAR file
|
417
|
+
glimmer package:lock_jars # Lock JARs
|
418
|
+
glimmer package:native[type] # Generate Native files
|
419
|
+
glimmer run[app_path] # Runs Glimmer app or custom shell gem in the current directory, unless app_path is specified, then runs it instead (app_path is optional)
|
420
|
+
glimmer samples # Brings up the Glimmer Meta-Sample app to allow browsing, running, and viewing code of Glimmer samples
|
421
|
+
glimmer scaffold[app_name] # Scaffold Glimmer application directory structure to build a new app
|
422
|
+
glimmer scaffold:customshape[name,namespace] # Scaffold Glimmer::UI::CustomShape subclass (part of a view) under app/views (namespace is optional) [alt: scaffold:cp]
|
423
|
+
glimmer scaffold:customshell[name,namespace] # Scaffold Glimmer::UI::CustomShell subclass (full window view) under app/views (namespace is optional) [alt: scaffold:cs]
|
424
|
+
glimmer scaffold:customwidget[name,namespace] # Scaffold Glimmer::UI::CustomWidget subclass (part of a view) under app/views (namespace is optional) [alt: scaffold:cw]
|
425
|
+
glimmer scaffold:desktopify[app_name,website] # Desktopify a web app
|
426
|
+
glimmer scaffold:gem:customshape[name,namespace] # Scaffold Glimmer::UI::CustomShape subclass (part of a view) under its own Ruby gem project (namespace is required) [alt: scaffold:gem:cp]
|
427
|
+
glimmer scaffold:gem:customshell[name,namespace] # Scaffold Glimmer::UI::CustomShell subclass (full window view) under its own Ruby gem + app project (namespace is required) [alt: scaffold:ge...
|
428
|
+
glimmer scaffold:gem:customwidget[name,namespace] # Scaffold Glimmer::UI::CustomWidget subclass (part of a view) under its own Ruby gem project (namespace is required) [alt: scaffold:gem:cw]
|
429
|
+
```
|
430
|
+
|
431
|
+
Learn more at: [docs/reference/GLIMMER_COMMAND.md](docs/reference/GLIMMER_COMMAND.md)
|
378
432
|
|
379
433
|
## Girb (Glimmer irb) Command
|
380
434
|
|
381
435
|
You can use `girb` as an alternative to `irb` when prototyping Glimmer DSL for SWT GUI DSL code.
|
382
436
|
|
383
|
-
|
437
|
+
```
|
438
|
+
girb
|
439
|
+
```
|
440
|
+
|
441
|
+
![GIRB](/images/glimmer-girb.png)
|
442
|
+
|
443
|
+
Learn more at: [docs/reference/GLIMMER_GIRB.md](docs/reference/GLIMMER_GIRB.md)
|
384
444
|
|
385
445
|
## Glimmer GUI DSL Syntax
|
386
446
|
|
387
|
-
|
447
|
+
Here is a listing of supported widgets taken from the [SWT website](https://www.eclipse.org/swt/widgets/):
|
448
|
+
|
449
|
+
[![SWT Widgets](/images/glimmer-swt-widgets.png)](https://www.eclipse.org/swt/widgets/)
|
450
|
+
|
451
|
+
In a nutshell, the Glimmer GUI DSL syntax consists mainly of:
|
452
|
+
|
453
|
+
1. Keywords
|
454
|
+
|
455
|
+
Example of a keyword representing a table widget:
|
456
|
+
|
457
|
+
```ruby
|
458
|
+
table
|
459
|
+
```
|
388
460
|
|
389
|
-
|
461
|
+
2. Style/Args
|
390
462
|
|
391
|
-
|
463
|
+
Example of a multi-line selection table widget:
|
464
|
+
|
465
|
+
```ruby
|
466
|
+
table(:multi)
|
467
|
+
```
|
468
|
+
|
469
|
+
3. Content/Properties
|
470
|
+
|
471
|
+
Example of a multi-line selection table widget with a table column as content that has a header `text` property as 'Name'.
|
472
|
+
|
473
|
+
```ruby
|
474
|
+
table(:multi) {
|
475
|
+
table_column {
|
476
|
+
text 'Name'
|
477
|
+
}
|
478
|
+
}
|
479
|
+
```
|
480
|
+
|
481
|
+
Learn more at: [docs/reference/GLIMMER_GUI_DSL_SYNTAX.md](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md)
|
392
482
|
|
393
483
|
## Glimmer Configuration
|
394
484
|
|
395
485
|
Glimmer configuration may be done via the `Glimmer::Config` module.
|
396
486
|
|
397
|
-
[docs/reference/GLIMMER_CONFIGURATION.md](docs/reference/GLIMMER_CONFIGURATION.md)
|
487
|
+
Learn more at: [docs/reference/GLIMMER_CONFIGURATION.md](docs/reference/GLIMMER_CONFIGURATION.md)
|
398
488
|
|
399
489
|
## Glimmer Style Guide
|
400
490
|
|
@@ -402,10 +492,6 @@ Glimmer configuration may be done via the `Glimmer::Config` module.
|
|
402
492
|
|
403
493
|
## Samples
|
404
494
|
|
405
|
-
See a listing of samples over here, including screenshots and explanations of what each sample demonstrates:
|
406
|
-
|
407
|
-
[docs/reference/GLIMMER_SAMPLES.md](docs/reference/GLIMMER_SAMPLES.md)
|
408
|
-
|
409
495
|
Check the [samples](samples) directory in [glimmer-dsl-swt](https://github.com/AndyObtiva/glimmer-dsl-swt) for examples on how to write Glimmer applications. To run a sample, make sure to install the `glimmer-dsl-swt` gem first and then run:
|
410
496
|
```
|
411
497
|
glimmer samples
|
@@ -415,6 +501,8 @@ glimmer samples
|
|
415
501
|
|
416
502
|
![Glimmer Meta-Sample](/images/glimmer-meta-sample.png)
|
417
503
|
|
504
|
+
See a listing of samples including screenshots and explanations at: [docs/reference/GLIMMER_SAMPLES.md](docs/reference/GLIMMER_SAMPLES.md)
|
505
|
+
|
418
506
|
## In Production
|
419
507
|
|
420
508
|
The following production apps have been built with Glimmer.
|
@@ -443,9 +531,13 @@ If you have a Glimmer app you would like referenced here, please mention in a Pu
|
|
443
531
|
|
444
532
|
## Packaging & Distribution
|
445
533
|
|
446
|
-
Glimmer simplifies the process of native-executable packaging and distribution on Mac and Windows via a single
|
534
|
+
Glimmer simplifies the process of native-executable packaging and distribution on Mac and Windows via a single command:
|
535
|
+
|
536
|
+
```
|
537
|
+
glimmer package
|
538
|
+
```
|
447
539
|
|
448
|
-
[docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md](docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md)
|
540
|
+
Learn more at: [docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md](docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md)
|
449
541
|
|
450
542
|
## App Updates
|
451
543
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.18.7.
|
1
|
+
4.18.7.5
|
@@ -44,7 +44,7 @@ bin/glimmer samples
|
|
44
44
|
Below are the full usage instructions that come up when running `glimmer` without args.
|
45
45
|
|
46
46
|
```
|
47
|
-
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.18.
|
47
|
+
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.18.7.4
|
48
48
|
|
49
49
|
Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
|
50
50
|
|
@@ -422,7 +422,8 @@ Only official Glimmer gems created by the Glimmer project committers will have n
|
|
422
422
|
Examples:
|
423
423
|
|
424
424
|
- [glimmer-cw-video](https://github.com/AndyObtiva/glimmer-cw-video): Video Widget
|
425
|
-
- [glimmer-cw-
|
425
|
+
- [glimmer-cw-nebula](https://github.com/AndyObtiva/glimmer-cw-nebula): The Nebula Project 50+ enterprise-grade high quality custom widgets for SWT
|
426
|
+
- [glimmer-cw-cdatetime-nebula](https://github.com/AndyObtiva/glimmer-cw-cdatetime-nebula): Nebula CDateTime Widget (piecemeal)
|
426
427
|
|
427
428
|
#### Custom Shape Gem
|
428
429
|
|
@@ -543,6 +544,38 @@ Output:
|
|
543
544
|
|
544
545
|
```
|
545
546
|
|
547
|
+
#### Listing Custom Shape Gems
|
548
|
+
|
549
|
+
The following command lists available Glimmer [Custom Shape Gems](#custom-shape-gem) (prefixed with "glimmer-cp-" by scaffolding convention) created by the the Glimmer community and published on [rubygems.org](http://www.rubygems.org):
|
550
|
+
|
551
|
+
```
|
552
|
+
glimmer list:gems:customshape[query]
|
553
|
+
```
|
554
|
+
|
555
|
+
Or the following alternative abbreviation:
|
556
|
+
|
557
|
+
```
|
558
|
+
glimmer list:gems:cp[query]
|
559
|
+
```
|
560
|
+
|
561
|
+
Example:
|
562
|
+
|
563
|
+
```
|
564
|
+
glimmer list:gems:customshape
|
565
|
+
```
|
566
|
+
|
567
|
+
Output:
|
568
|
+
|
569
|
+
```
|
570
|
+
|
571
|
+
Glimmer Custom Shape Gems at rubygems.org:
|
572
|
+
|
573
|
+
Name Gem Version Author Description
|
574
|
+
|
575
|
+
Bevel glimmer-cp-bevel 0.1.0 Andy Maleh Bevel - Glimmer Custom Shape
|
576
|
+
|
577
|
+
```
|
578
|
+
|
546
579
|
#### Listing DSL Gems
|
547
580
|
|
548
581
|
The following command lists available Glimmer [DSL Gems](#multi-dsl-support) (prefixed with "glimmer-dsl-" by convention) created by the the Glimmer community and published on [rubygems.org](http://www.rubygems.org):
|
@@ -163,7 +163,7 @@ Dynamic keywords are dynamically figured out from currently imported (aka requir
|
|
163
163
|
|
164
164
|
The only reason to distinguish between the two is to realize that importing new Glimmer [custom widgets](#custom-widgets) and Java SWT custom widget libraries automatically expands Glimmer's DSL vocabulary with new dynamic keywords.
|
165
165
|
|
166
|
-
For example, if a project adds this custom Java SWT library from the [Nebula Project](https://
|
166
|
+
For example, if a project adds this custom Java SWT library from the [Nebula Project](https://github.com/AndyObtiva/glimmer-cw-nebula):
|
167
167
|
|
168
168
|
https://www.eclipse.org/nebula/widgets/gallery/gallery.php
|
169
169
|
|
@@ -284,9 +284,7 @@ shell {
|
|
284
284
|
|
285
285
|
If you are new to Glimmer, you have learned enough to start running some [samples](#samples) directly or by reading through [Glimmer GUI DSL Keywords](#glimmer-gui-dsl-keywords) (which list each keyword's samples). Go ahead and run all Glimmer [samples](#samples), and come back to read the rest in any order you like since this material is more organized like a reference.
|
286
286
|
|
287
|
-
If you are advanced and need more widgets, check out the [Nebula Project](https://
|
288
|
-
|
289
|
-
https://www.eclipse.org/nebula/
|
287
|
+
If you are an advanced user of Glimmer DSL for SWT and need more widgets, check out the [Nebula Project](https://github.com/AndyObtiva/glimmer-cw-nebula) for an extensive list (50+) of high quality custom widgets.
|
290
288
|
|
291
289
|
#### Glimmer GUI DSL Keywords
|
292
290
|
|
data/glimmer-dsl-swt.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: glimmer-dsl-swt 4.18.7.
|
5
|
+
# stub: glimmer-dsl-swt 4.18.7.5 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "glimmer-dsl-swt".freeze
|
9
|
-
s.version = "4.18.7.
|
9
|
+
s.version = "4.18.7.5"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["AndyMaleh".freeze]
|
14
|
-
s.date = "2021-03-
|
14
|
+
s.date = "2021-03-13"
|
15
15
|
s.description = "Glimmer DSL for SWT (JRuby Desktop Development GUI Framework) is a native-GUI cross-platform desktop development library written in JRuby, an OS-threaded faster JVM version of Ruby. Glimmer's main innovation is a declarative Ruby DSL that enables productive and efficient authoring of desktop application user-interfaces by relying on the robust Eclipse SWT library. Glimmer additionally innovates by having built-in data-binding support, which greatly facilitates synchronizing the GUI with domain models, thus achieving true decoupling of object oriented components and enabling developers to solve business problems (test-first) without worrying about GUI concerns, or alternatively drive development GUI-first, and then write clean business models (test-first) afterwards. Not only does Glimmer provide a large set of GUI widgets, but it also supports drawing Canvas Graphics like Shapes and Animations. To get started quickly, Glimmer offers scaffolding options for Apps, Gems, and Custom Widgets. Glimmer also includes native-executable packaging support, sorely lacking in other libraries, thus enabling the delivery of desktop apps written in Ruby as truly native DMG/PKG/APP files on the Mac + App Store, MSI/EXE files on Windows, and Gem Packaged Shell Scripts on Linux.".freeze
|
16
16
|
s.email = "andy.am@gmail.com".freeze
|
17
17
|
s.executables = ["glimmer".freeze, "girb".freeze]
|
@@ -57,7 +57,7 @@ module Glimmer
|
|
57
57
|
include_package 'org.eclipse.swt.widgets'
|
58
58
|
include_package 'org.eclipse.swt.graphics'
|
59
59
|
|
60
|
-
attr_reader :file_path, :jar_file_path, :image_data, :swt_image
|
60
|
+
attr_reader :file_path, :jar_file_path, :image_data, :swt_image, :parent_proxy, :parent
|
61
61
|
|
62
62
|
# Initializes a proxy for an SWT Image object
|
63
63
|
#
|
@@ -141,6 +141,10 @@ module Glimmer
|
|
141
141
|
self
|
142
142
|
end
|
143
143
|
|
144
|
+
def size
|
145
|
+
org.eclipse.swt.graphics.Point.new(bounds.width, bounds.height)
|
146
|
+
end
|
147
|
+
|
144
148
|
def gc
|
145
149
|
@gc ||= reset_gc
|
146
150
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-dsl-swt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.18.7.
|
4
|
+
version: 4.18.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|