Class: UnderOs::UI::Spinner
Constant Summary
Constants included from Wrap
Wrap::INSTANCES_CACHE, Wrap::RAW_WRAPS_MAP, Wrap::WRAPS_TAGS_MAP
Instance Method Summary collapse
- #hidden ⇒ Object
- #hide ⇒ Object
-
#initialize(options = {}) ⇒ Spinner
constructor
A new instance of Spinner.
- #show ⇒ Object
Methods inherited from View
Methods included from Manipulation
#append, #clear, #insert, #insertTo, #prepend, #remove
Methods included from Traversing
#children, #empty?, #find, #first, #matches, #parent, #siblings
Methods included from Dimensions
#position, #position=, #size, #size=
Methods included from Animation
#animate, #fade_in, #fade_out, #highlight
Methods included from Commons
#data, #data=, #id, #id=, #page, #tagName, #toggle, #visible
Methods included from Styles
#addClass, #className, #className=, #classNames, #classNames=, #hasClass, #radioClass, #removeClass, #repaint, #style, #style=, #toggleClass
Methods included from Events
Methods included from Wrap
Constructor Details
#initialize(options = {}) ⇒ Spinner
Returns a new instance of Spinner.
4 5 6 7 |
# File 'lib/under_os/ui/spinner.rb', line 4 def initialize(={}) super show end |
Instance Method Details
#hidden ⇒ Object
19 20 21 |
# File 'lib/under_os/ui/spinner.rb', line 19 def hidden @_.isAnimating == 0 end |
#hide ⇒ Object
14 15 16 17 |
# File 'lib/under_os/ui/spinner.rb', line 14 def hide @_.stopAnimating self end |
#show ⇒ Object
9 10 11 12 |
# File 'lib/under_os/ui/spinner.rb', line 9 def show @_.startAnimating self end |