ScalaFXJavaFX 的 Scala 绑定
ScalaFX 是用 Scala 语言编写的UI DSL,位于JavaFX 2和JavaFX 8之上。每个ScalaFX应用程序也是有效的Scala应用程序。它支持与Java的完全互操作性,并且可以在支持Java虚拟机(JVM)和JavaFX2或JavaFX8的任何地方运行。
ScalaFX使用简单的分层模式创建新对象并构建场景图。
主要特性如下:
1)对程序员友好的层次结构式的对象创建语法。
stage = new Stage { title.value = "Hello Stage" width = 600 height = 450 scene = new Scene { fill = Color.LIGHTGREEN content = new Rectangle { x = 25 y = 40 width = 100 height = 100 fill <== when (hover) then Color.GREEN otherwise Color.RED } } }
2)易于理解的属性绑定(Binding)语法。
height <== rect1.height + rect2.height
width <== max(rect1.width, rect2.width, rect3.width)
color <== when (hover) then Color.GREEN otherwise Color.RED
text <== when (rect.hover || circle.hover && !disabled) then textField.text + " is enabled" otherwise "disabled"
rect.hover onInvalidate { needsRepaint = true }
3)精心设计的动画语法。
Seq( at(0 s) {circle.centerX -> random * 800}, at(0 s) {circle.centerY -> random * 600}, at(40 s) {circle.centerX -> random * 800}, at(40 s) {circle.centerY -> random * 600} )
4)类型安全的API。
5)无缝的JavaFX/ScalaFX互操作。
评论
Scala IDEEclipse的Scala插件
ScalaIDE是一个Eclipse插件,提供Scala集成开发工具。主要的功能包括:同一个项目中混合编辑Scala/Java文件;Scala编辑器支持语法高亮显示,代码自动完成,错误标记,链到定义处
Scala IDEEclipse的Scala插件
0
angularSailsAngularJS 的 Sails 绑定
angularSails 是 AngularJS 的 Sails 绑定。
angularSailsAngularJS 的 Sails 绑定
0
gotk3GTK+3 的 Go 绑定
gotk3提供Go绑定GTK+3和依赖的其他项目。每个组件都给出了用来导入包路径的子目录。以下是部分已经实施的支持库:GTK+3(3.6andlater)GDK3(3.6andlater)GLib2(
gotk3GTK+3 的 Go 绑定
0
TensorFlowSharpTensorFlow 的 .NET 绑定
TensorFlowSharp 是对 TensorFlow C 语言版 API 的封装,绑定为 .N
TensorFlowSharpTensorFlow 的 .NET 绑定
0
TensorFlowSharpTensorFlow 的 .NET 绑定
TensorFlowSharp是对TensorFlowC语言版API的封装,绑定为.NETAPI,也是TensorFlow的C#语言表述,以此来方便C#和F#开发人员使用 TensorFlow。目前它
TensorFlowSharpTensorFlow 的 .NET 绑定
0