Class: Shoes::Mock::Radio

Inherits:
Object
  • Object
show all
Includes:
Clickable, CommonMethods
Defined in:
shoes-core/lib/shoes/mock/radio.rb

Instance Method Summary collapse

Methods included from Clickable

#click, #release

Methods included from CommonMethods

#update_fill, #update_position, #update_stroke, #update_visibility

Constructor Details

#initialize(*_opts) ⇒ Radio

Returns a new instance of Radio.



9
10
11
12
13
# File 'shoes-core/lib/shoes/mock/radio.rb', line 9

def initialize(*_opts)
  # SWT backend sets a size, so mimic that in the mock
  super
  @dsl.width ||= 22
end

Instance Method Details

#checked=(*_opts) ⇒ Object



19
20
# File 'shoes-core/lib/shoes/mock/radio.rb', line 19

def checked=(*_opts)
end

#checked?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'shoes-core/lib/shoes/mock/radio.rb', line 15

def checked?
  false
end

#enabled(_value) ⇒ Object



25
26
# File 'shoes-core/lib/shoes/mock/radio.rb', line 25

def enabled(_value)
end

#focusObject



22
23
# File 'shoes-core/lib/shoes/mock/radio.rb', line 22

def focus
end

#group=(_value) ⇒ Object



28
29
# File 'shoes-core/lib/shoes/mock/radio.rb', line 28

def group=(_value)
end