Class: Conquer::Dzen::Graphics::Battery

Inherits:
ProgressBar show all
Defined in:
lib/conquer/dzen/graphics/battery.rb

Instance Attribute Summary

Attributes inherited from ProgressBar

#height, #orientation, #progress, #width

Instance Method Summary collapse

Methods inherited from Graphic

#move, #to_s

Methods included from Positioning

#ignore_bg, #lock_x, #shift, #unlock_x

Constructor Details

#initialize(percentage, width, height, orientation = :horizontal) ⇒ Battery

Returns a new instance of Battery.



8
9
10
11
12
# File 'lib/conquer/dzen/graphics/battery.rb', line 8

def initialize(percentage, width, height, orientation = :horizontal)
  super
  @template << '%s'
  @template_args = [outline, fill, plus_pole]
end