/
__.scala
48 lines (39 loc) · 2.62 KB
/
__.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package scalqa; package fx; import language.implicitConversions
trait Control extends base.`abstract`.Region:
protected type REAL <: javafx.scene.control.Control
def tooltipPro : Pro.OM[Control.Tooltip] = Fx.JavaFx.To.pro_OM(real.tooltipProperty).mutableMapView[Control.Tooltip]
def tooltip : Control.Tooltip = Control.Tooltip(real.getTooltip)
def tooltip_=(t: Control.Tooltip) : Unit = real.setTooltip(t.?.map(_.real) or null)
def tooltip_=(s: String) : Unit = tooltip = Control.Tooltip(s)
object Control:
transparent inline def Button = control.Button; type Button = control.Button
transparent inline def Cell = control.Cell; type Cell = control.Cell
transparent inline def CheckBox = control.CheckBox; type CheckBox = control.CheckBox
transparent inline def ComboBox = control.ComboBox; type ComboBox[A] = control.ComboBox[A]
transparent inline def Label = control.Label; type Label = control.Label
transparent inline def List = control.List; type List[A] = control.List[A]
transparent inline def Menu = control.Menu; type Menu = control.Menu
transparent inline def Popup = control.Popup; type Popup = control.Popup
transparent inline def Table = control.Table; type Table[A] = control.Table[A]
transparent inline def Text = control.Text; type Text = control.Text
transparent inline def Tooltip = control.Tooltip; type Tooltip = control.Tooltip
transparent inline def Toggle = control.Toggle; type Toggle = control.Toggle
/*___________________________________________________________________________
__________ ____ __ ______ ____
/ __/ ___// _ | / / / __ / / _ | Scala Quick API
__\ \/ /___/ __ |/ /__/ /_/ /_/ __ | (c) 2021, Scalqa.org Inc
/_____/\____/_/ |_/____/\______/_/ |_| github.com/scalqa
___________________________________________________________________________*/
/**
@trait Control -> ### GUI Widgets
[[Control]] object also contains most of the available controls, which are aliased in [[Fx]] root and can be called without `Control.` prefix
For example:
```
val b: Fx.Control.Button = ?_?_?
// is usually defined as
val b: Fx.Button = ?_?_?
val c: Fx.Control.CheckBox = ?_?_?
// is usually defined as
val c: Fx.CheckBox = ?_?_?
```
*/