Implementing initial layout functionality

This commit is contained in:
Andy Meneely
2014-07-29 14:17:38 -04:00
parent 20bd850bb7
commit b0e65d3783
10 changed files with 99 additions and 9 deletions
+1
View File
@@ -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)