Widget
Class
constructor
name
apply_
style
long_
press
paint_
background
GJS 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:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJNeF8xXzAuTXguV2lkZ2V0Q2xhc3MuaHRtbCNjb25zdHJ1Y3RvciIsIm5hbWUiOiJjb25zdHJ1Y3RvciIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtcHJvcGVydHkgdHNkLXBhcmVudC1raW5kLWNsYXNzIHRzZC1pcy1zdGF0aWMiLCJocmVmIjoiTXhfMV8wLk14LldpZGdldENsYXNzLmh0bWwjbmFtZSIsIm5hbWUiOiJuYW1lIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp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