lib/glimmer/libui/arc.rb in glimmer-dsl-libui-0.1.3 vs lib/glimmer/libui/arc.rb in glimmer-dsl-libui-0.1.4
- old
+ new
@@ -23,9 +23,10 @@
module Glimmer
module LibUI
class Arc < Shape
parameters :x_center, :y_center, :radius, :start_angle, :sweep, :is_negative
+ parameter_defaults 0, 0, 0, 0, 360, false
def draw(area_draw_params)
@args[5] ||= ControlProxy.boolean_to_integer(@args[5], allow_nil: false)
if parent.is_a?(Figure) && parent.x.nil? && parent.y.nil?
::LibUI.draw_path_new_figure_with_arc(path_proxy.libui, *@args)