--- Button widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onHit}(), @{yui.Widget.WidgetCallbacks|onLeave}().
-- Button widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onHit}(), @{yui.Widget.WidgetCallbacks|onLeave}().
localBASE=(...):gsub('button$','')
@ -16,7 +16,9 @@ local core = require(BASE..'core')
localshadowtext=require'lib.gear.shadowtext'
localT=require('lib.moonspeak').translate
localButton=setmetatable({},Widget)
localButton=setmetatable({
__call=function(cls,args)returncls:new(args)end
},Widget)
Button.__index=Button
--- Attributes accepted by the @{Button} widget beyond the standard @{yui.Widget.WidgetAttributes|attributes}
--- Checkbox widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onChange}(), @{yui.Widget.WidgetCallbacks|onLeave}().
-- Checkbox widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onChange}(), @{yui.Widget.WidgetCallbacks|onLeave}().
localBASE=(...):gsub('checkbox$','')
@ -14,7 +14,9 @@ local core = require(BASE..'core')
localshadowtext=require'lib.gear.shadowtext'
localT=require('lib.moonspeak').translate
localCheckbox=setmetatable({},Widget)
localCheckbox=setmetatable({
__call=function(cls,args)returncls:new(args)end
},Widget)
Checkbox.__index=Checkbox
@ -25,15 +27,15 @@ Checkbox.__index = Checkbox
-- @field text (string) text displayed inside the Checkbox
--- Multi-choice widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onChange}(), @{yui.Widget.WidgetCallbacks|onLeave}().
-- Multi-choice widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onChange}(), @{yui.Widget.WidgetCallbacks|onLeave}().
--- Input widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onChange}(), @{yui.Widget.WidgetCallbacks|onLeave}().
-- Input widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onChange}(), @{yui.Widget.WidgetCallbacks|onLeave}().
--- Slider widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onChange}(), @{yui.Widget.WidgetCallbacks|onLeave}().
-- Slider widget receives the following callbacks: @{yui.Widget.WidgetCallbacks|onEnter}(), @{yui.Widget.WidgetCallbacks|onChange}(), @{yui.Widget.WidgetCallbacks|onLeave}().
localBASE=(...):gsub('slider$','')
localWidget=require(BASE..'widget')
localcore=require(BASE..'core')
localSlider=setmetatable({},Widget)
localSlider=setmetatable({
__call=function(cls,args)returncls:new(args)end
},Widget)
Slider.__index=Slider
--- Attributes accepted by the @{Slider} widget beyond the standard @{yui.Widget.WidgetAttributes|attributes}
@ -21,15 +23,15 @@ Slider.__index = Slider
-- @field max (number) max value of the slider
-- @field vertical (boolean) true for vertical slider, false or nil for horizontal slider
-- @field value (number) default value
-- @field step (number) number of slider's steps
-- @field step (number) number of slider's steps
-- @field cornerRadius (number) radius for rounded corners