Class: Shoes::Mock::Progress

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

Instance Method Summary collapse

Methods included from CommonMethods

#update_fill, #update_position, #update_stroke, #update_visibility

Constructor Details

#initialize(*_) ⇒ Progress

Returns a new instance of Progress


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

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

Instance Method Details

#fraction=(_fraction) ⇒ Object


14
15
# File 'shoes-core/lib/shoes/mock/progress.rb', line 14

def fraction=(_fraction)
end