Class: ShenmeGUI::Control::Progress

Inherits:
Base
  • Object
show all
Defined in:
lib/shenmegui/controls.rb

Instance Attribute Summary

Attributes inherited from Base

#children, #events, #id, #parent, #properties

Instance Method Summary collapse

Methods inherited from Base

default, default_properties, #focus, #initialize, property, #render, shortcut, #sync, #sync_events, #update_properties

Constructor Details

This class inherits a constructor from ShenmeGUI::Control::Base

Instance Method Details

#before_syncObject



173
174
175
176
# File 'lib/shenmegui/controls.rb', line 173

def before_sync
  @properties[:percent] = 0 if @properties[:percent] < 0
  @properties[:percent] = 100 if @properties[:percent] > 100
end