Widget
Class
constructor
name
apply
Style
long
Press
paint
Background
NODE-GTK API Reference
Mx-1.0
Mx
WidgetClass
Class WidgetClass
Base class for stylable actors.
record
Hierarchy
WidgetClass
Index
Constructors
constructor
Properties
name
Methods
apply
Style
long
Press
paint
Background
Constructors
constructor
new
Widget
Class
(
)
:
Mx
.
WidgetClass
Returns
Mx
.
WidgetClass
Properties
Static
name
name
:
string
Methods
apply
Style
apply
Style
(
widget
:
Mx
.
Widget
, style
:
Mx
.
Style
)
:
void
Parameters
widget:
Mx
.
Widget
style:
Mx
.
Style
Returns
void
long
Press
long
Press
(
widget
:
Mx
.
Widget
, action
:
Mx
.
LongPressAction
, x
:
number
, y
:
number
)
:
boolean
Parameters
widget:
Mx
.
Widget
action:
Mx
.
LongPressAction
x:
number
y:
number
Returns
boolean
paint
Background
paint
Background
(
self
:
Mx
.
Widget
, background
:
Clutter
.
Actor
, color
:
Clutter
.
Color
)
:
void
Parameters
self:
Mx
.
Widget
background:
Clutter
.
Actor
color:
Clutter
.
Color
Returns
void
Widget
Class
constructor
name
apply
Style
long
Press
paint
Background
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJNeF8xXzAuTXguV2lkZ2V0Q2xhc3MuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIHRzZC1pcy1zdGF0aWMiLCJocmVmIjoiTXhfMV8wLk14LldpZGdldENsYXNzLmh0bWwjbmFtZSIsIm5hbWUiOiJuYW1lIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJ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