Class: MG::Slider

Inherits:
Widget show all
Defined in:
doc/API_reference.rb

Properties collapse

Attributes inherited from Widget

#enabled?, #highlighted?, #touch_enabled?

Attributes inherited from Node

#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #visible?, #z_index

Constructors collapse

Methods inherited from Widget

#on_touch

Methods inherited from Node

#add, #children, #clear, #delete, #delete_from_parent, #intersects?, #parent, #run_action, #stop_action, #stop_all_actions

Constructor Details

#initializeSlider

Creates a new Slider widget.



1253
# File 'doc/API_reference.rb', line 1253

def initialize; end

Instance Attribute Details

#progressInteger

Returns the progress direction of the slider, as a percentage value from 1 to 100.

Returns:

  • (Integer)

    the progress direction of the slider, as a percentage value from 1 to 100.



1260
1261
1262
# File 'doc/API_reference.rb', line 1260

def progress
  @progress
end