Sha256: c44913efc8b3db49724e79244ea909b64ad6e25a4405c52abb4b491b173fdaea
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
class Shoes class Button include Common::UIElement include Common::Style include Common::Clickable style_with :click, :common_styles, :dimensions, :state, :text def before_initialize(styles, text) styles[:text] = text || 'Button' end def focus @gui.focus end def state=(value) style(state: value) @gui.enabled value.nil? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoes-core-4.0.0.pre4 | lib/shoes/button.rb |