Canvas GUI API: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
No edit summary
mNo edit summary
Line 44: Line 44:
=== _windowFocus: func ===
=== _windowFocus: func ===
'''returns:''' bool, focused
'''returns:''' bool, focused
== Config ==
Trivial container class to store (key,value) pairs
=== new: func(cfg) ===
'''cfg:''' hash, used to initialize the config object data
'''returns:''' object
=== get: func(key, default = nil) ===
'''returns:''' the value for key or default if that one is nil
=== set: func(key, value) ===
'''returns:''' me


== DefaultStyle ==
== DefaultStyle ==
Line 69: Line 82:


Aparently this method is called on events like mouse move/click so each widget can show an appropriate reaction.
Aparently this method is called on events like mouse move/click so each widget can show an appropriate reaction.
== Config ==
Trivial container class to store (key,value) pairs
=== new: func(cfg) ===
'''cfg:''' hash, used to initialize the config object data
'''returns:''' object
=== get: func(key, default = nil) ===
'''returns:''' the value for key or default if that one is nil
=== set: func(key, value) ===
'''returns:''' me


== DefaultStyle.widgets.button  ==
== DefaultStyle.widgets.button  ==
252

edits

Navigation menu