Implementing initial layout functionality
This commit is contained in:
@@ -4,6 +4,7 @@ module Squib
|
||||
# :nodoc:
|
||||
# @api private
|
||||
def rect(x, y, width, height, x_radius, y_radius, fill_color, stroke_color, stroke_width)
|
||||
width=@width if width==:native; height=@height if height==:native
|
||||
cc = cairo_context
|
||||
cc.rounded_rectangle(x, y, width, height, x_radius, y_radius)
|
||||
cc.set_source_color(stroke_color)
|
||||
|
||||
Reference in New Issue
Block a user