~nathandyer/birdie/manual-import

« back to all changes in this revision

Viewing changes to build/src/Media/Cairo.c

  • Committer: Nathan Dyer
  • Date: 2016-02-06 20:22:09 UTC
  • Revision ID: mail@nathandyer.me-20160206202209-qwhtqwi1j8feglds
Updated to git master

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Cairo.c generated by valac 0.30.0, the Vala compiler
2
 
 * generated from Cairo.vala, do not modify */
3
 
 
4
 
/* -*- Mode: vala; indent-tabs-mode: nil; tab-width: 4 -*-*/
5
 
/*-
6
 
 * Copyright (c) 2013-2016 Birdie Developers (http://birdieapp.github.io)
7
 
 *
8
 
 * This software is licensed under the GNU General Public License
9
 
 * (version 3 or later). See the COPYING file in this distribution.
10
 
 *
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.
15
 
 *
16
 
 * Authored by: Ivo Nunes <ivoavnunes@gmail.com>
17
 
 *              Vasco Nunes <vascomfnunes@gmail.com>
18
 
 *              Nathan Dyer <mail@nathandyer.me>
19
 
 */
20
 
 
21
 
#include <glib.h>
22
 
#include <glib-object.h>
23
 
#include <cairo.h>
24
 
#include <float.h>
25
 
#include <math.h>
26
 
 
27
 
 
28
 
 
29
 
 
30
 
void birdie_media_draw_rounded_path (cairo_t* ctx, gdouble x, gdouble y, gdouble width, gdouble height, gdouble radius);
31
 
 
32
 
 
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;
37
 
        gdouble _tmp2_ = 0.0;
38
 
        gdouble _tmp3_ = 0.0;
39
 
        gdouble _tmp4_ = 0.0;
40
 
        gdouble _tmp5_ = 0.0;
41
 
        gdouble _tmp6_ = 0.0;
42
 
        gdouble _tmp7_ = 0.0;
43
 
        cairo_t* _tmp8_ = NULL;
44
 
        gdouble _tmp9_ = 0.0;
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;
67
 
        _tmp0_ = ctx;
68
 
        cairo_new_sub_path (_tmp0_);
69
 
        _tmp1_ = ctx;
70
 
        _tmp2_ = x;
71
 
        _tmp3_ = width;
72
 
        _tmp4_ = radius;
73
 
        _tmp5_ = y;
74
 
        _tmp6_ = radius;
75
 
        _tmp7_ = radius;
76
 
        cairo_arc (_tmp1_, (_tmp2_ + _tmp3_) - _tmp4_, _tmp5_ + _tmp6_, _tmp7_, -90 * degrees, 0 * degrees);
77
 
        _tmp8_ = ctx;
78
 
        _tmp9_ = x;
79
 
        _tmp10_ = width;
80
 
        _tmp11_ = radius;
81
 
        _tmp12_ = y;
82
 
        _tmp13_ = height;
83
 
        _tmp14_ = radius;
84
 
        _tmp15_ = radius;
85
 
        cairo_arc (_tmp8_, (_tmp9_ + _tmp10_) - _tmp11_, (_tmp12_ + _tmp13_) - _tmp14_, _tmp15_, 0 * degrees, 90 * degrees);
86
 
        _tmp16_ = ctx;
87
 
        _tmp17_ = x;
88
 
        _tmp18_ = radius;
89
 
        _tmp19_ = y;
90
 
        _tmp20_ = height;
91
 
        _tmp21_ = radius;
92
 
        _tmp22_ = radius;
93
 
        cairo_arc (_tmp16_, _tmp17_ + _tmp18_, (_tmp19_ + _tmp20_) - _tmp21_, _tmp22_, 90 * degrees, 180 * degrees);
94
 
        _tmp23_ = ctx;
95
 
        _tmp24_ = x;
96
 
        _tmp25_ = radius;
97
 
        _tmp26_ = y;
98
 
        _tmp27_ = radius;
99
 
        _tmp28_ = radius;
100
 
        cairo_arc (_tmp23_, _tmp24_ + _tmp25_, _tmp26_ + _tmp27_, _tmp28_, 180 * degrees, 270 * degrees);
101
 
        _tmp29_ = ctx;
102
 
        cairo_close_path (_tmp29_);
103
 
}
104
 
 
105
 
 
106