aboutsummaryrefslogtreecommitdiff
path: root/src/slide_render.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-11-07 22:07:59 +0100
committerThomas White <taw@bitwiz.org.uk>2011-11-07 22:07:59 +0100
commit38d030f301cc781a56cab5724175a127f2eb1230 (patch)
tree0877238a53a230455d1074d35bed9f37b30670a8 /src/slide_render.c
parent90a46fb55899b37d4dc91ee0da5c45eb90b8bf76 (diff)
Resize handles on all corners of text objects, as well
Diffstat (limited to 'src/slide_render.c')
-rw-r--r--src/slide_render.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/slide_render.c b/src/slide_render.c
index d686c77..07b57ec 100644
--- a/src/slide_render.c
+++ b/src/slide_render.c
@@ -112,6 +112,26 @@ void redraw_slide(struct slide *s)
}
+void draw_rubberband_box(cairo_t *cr, double x, double y,
+ double width, double height)
+{
+ cairo_new_path(cr);
+ cairo_rectangle(cr, x, y, width, height);
+ cairo_set_source_rgb(cr, 0.5, 0.5, 0.5);
+ cairo_set_line_width(cr, 0.5);
+ cairo_stroke(cr);
+}
+
+
+void draw_resize_handle(cairo_t *cr, double x, double y)
+{
+ cairo_new_path(cr);
+ cairo_rectangle(cr, x, y, 20.0, 20.0);
+ cairo_set_source_rgba(cr, 0.9, 0.9, 0.9, 0.5);
+ cairo_fill(cr);
+}
+
+
void draw_editing_box(cairo_t *cr, double xmin, double ymin,
double width, double height)
{