Module: Conquer::Dzen::Graphics
- Included in:
- Helpers
- Defined in:
- lib/conquer/dzen/graphics.rb,
lib/conquer/dzen/graphics/icon.rb,
lib/conquer/dzen/graphics/circle.rb,
lib/conquer/dzen/graphics/battery.rb,
lib/conquer/dzen/graphics/graphic.rb,
lib/conquer/dzen/graphics/rectangle.rb,
lib/conquer/dzen/graphics/progress_bar.rb,
lib/conquer/dzen/graphics/circle_outline.rb,
lib/conquer/dzen/graphics/rectangle_outline.rb
Defined Under Namespace
Classes: Battery, Circle, CircleOutline, Graphic, Icon, ProgressBar, Rectangle, RectangleOutline
Instance Method Summary
collapse
Instance Method Details
#battery(percentage, width, height, orientation = :horizontal) ⇒ Object
37
38
39
|
# File 'lib/conquer/dzen/graphics.rb', line 37
def battery(percentage, width, height, orientation = :horizontal)
Battery.new(percentage, width, height, orientation)
end
|
#circle(radius) ⇒ Object
25
26
27
|
# File 'lib/conquer/dzen/graphics.rb', line 25
def circle(radius)
Circle.new(radius)
end
|
#circle_outline(radius) ⇒ Object
29
30
31
|
# File 'lib/conquer/dzen/graphics.rb', line 29
def circle_outline(radius)
CircleOutline.new(radius)
end
|
#icon(path) ⇒ Object
13
14
15
|
# File 'lib/conquer/dzen/graphics.rb', line 13
def icon(path)
Icon.new(path)
end
|
#progress_bar(progress, width, height, orientation = :horizontal) ⇒ Object
33
34
35
|
# File 'lib/conquer/dzen/graphics.rb', line 33
def progress_bar(progress, width, height, orientation = :horizontal)
ProgressBar.new(progress, width, height, orientation)
end
|
#rectangle(width, height) ⇒ Object
17
18
19
|
# File 'lib/conquer/dzen/graphics.rb', line 17
def rectangle(width, height)
Rectangle.new(width, height)
end
|
#rectangle_outline(width, height) ⇒ Object
21
22
23
|
# File 'lib/conquer/dzen/graphics.rb', line 21
def rectangle_outline(width, height)
RectangleOutline.new(width, height)
end
|