Class: Shoes::Mock::Check

Inherits:
Object
  • Object
show all
Includes:
Clickable, CommonMethods
Defined in:
shoes-core/lib/shoes/mock/check.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) ⇒ Check

Returns a new instance of Check.



9
10
11
12
13
# File 'shoes-core/lib/shoes/mock/check.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/check.rb', line 19

def checked=(*_opts)
end

#checked?Boolean

Returns:

  • (Boolean)


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

def checked?
  false
end

#enabled(_value) ⇒ Object



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

def enabled(_value)
end

#focusObject



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

def focus
end