lua.wetgenes.gamecake.widgets.data
local master=oven.rebake("wetgenes.gamecake.widgets").setup()
local data=master.new_data{}
A number or string that can be shared between multiple widgets given basic limits and watched for changes.
This alows the same data to be linked and displayed in multiple widgets simultaneously.
lua.wetgenes.gamecake.widgets.data.data_dec
adjust number (may trigger hook)
lua.wetgenes.gamecake.widgets.data.data_get_pos
get display pos, given the size of the parent and our size?
lua.wetgenes.gamecake.widgets.data.data_get_size
how wide or tall should the handle be given the size of the parent?
lua.wetgenes.gamecake.widgets.data.data_inc
adjust number (may trigger hook)
lua.wetgenes.gamecake.widgets.data.data_set
set a number value and min/max range probably without any triggers
lua.wetgenes.gamecake.widgets.data.data_snap
given the parents size and our relative position/size within it update dat.num and return a new position (for snapping)
lua.wetgenes.gamecake.widgets.data.data_tonumber
get a number from the string
lua.wetgenes.gamecake.widgets.data.data_tostring
get a string from the number
lua.wetgenes.gamecake.widgets.data.data_value
set number (may trigger hook unless nohook is set)