1
/* Cairo.c generated by valac 0.30.0, the Vala compiler
2
* generated from Cairo.vala, do not modify */
4
/* -*- Mode: vala; indent-tabs-mode: nil; tab-width: 4 -*-*/
6
* Copyright (c) 2013-2016 Birdie Developers (http://birdieapp.github.io)
8
* This software is licensed under the GNU General Public License
9
* (version 3 or later). See the COPYING file in this distribution.
11
* You should have received a copy of the GNU Library General Public
12
* License along with this software; if not, write to the
13
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
14
* Boston, MA 02111-1307, USA.
16
* Authored by: Ivo Nunes <ivoavnunes@gmail.com>
17
* Vasco Nunes <vascomfnunes@gmail.com>
18
* Nathan Dyer <mail@nathandyer.me>
22
#include <glib-object.h>
30
void birdie_media_draw_rounded_path (cairo_t* ctx, gdouble x, gdouble y, gdouble width, gdouble height, gdouble radius);
33
void birdie_media_draw_rounded_path (cairo_t* ctx, gdouble x, gdouble y, gdouble width, gdouble height, gdouble radius) {
34
gdouble degrees = 0.0;
35
cairo_t* _tmp0_ = NULL;
36
cairo_t* _tmp1_ = NULL;
43
cairo_t* _tmp8_ = NULL;
45
gdouble _tmp10_ = 0.0;
46
gdouble _tmp11_ = 0.0;
47
gdouble _tmp12_ = 0.0;
48
gdouble _tmp13_ = 0.0;
49
gdouble _tmp14_ = 0.0;
50
gdouble _tmp15_ = 0.0;
51
cairo_t* _tmp16_ = NULL;
52
gdouble _tmp17_ = 0.0;
53
gdouble _tmp18_ = 0.0;
54
gdouble _tmp19_ = 0.0;
55
gdouble _tmp20_ = 0.0;
56
gdouble _tmp21_ = 0.0;
57
gdouble _tmp22_ = 0.0;
58
cairo_t* _tmp23_ = NULL;
59
gdouble _tmp24_ = 0.0;
60
gdouble _tmp25_ = 0.0;
61
gdouble _tmp26_ = 0.0;
62
gdouble _tmp27_ = 0.0;
63
gdouble _tmp28_ = 0.0;
64
cairo_t* _tmp29_ = NULL;
65
g_return_if_fail (ctx != NULL);
66
degrees = 3.14 / 180.0;
68
cairo_new_sub_path (_tmp0_);
76
cairo_arc (_tmp1_, (_tmp2_ + _tmp3_) - _tmp4_, _tmp5_ + _tmp6_, _tmp7_, -90 * degrees, 0 * degrees);
85
cairo_arc (_tmp8_, (_tmp9_ + _tmp10_) - _tmp11_, (_tmp12_ + _tmp13_) - _tmp14_, _tmp15_, 0 * degrees, 90 * degrees);
93
cairo_arc (_tmp16_, _tmp17_ + _tmp18_, (_tmp19_ + _tmp20_) - _tmp21_, _tmp22_, 90 * degrees, 180 * degrees);
100
cairo_arc (_tmp23_, _tmp24_ + _tmp25_, _tmp26_ + _tmp27_, _tmp28_, 180 * degrees, 270 * degrees);
102
cairo_close_path (_tmp29_);