/* view.c generated by valac 0.30.0.16-6dbb1, the Vala compiler
 * generated from view.vala, do not modify */

/* Copyright (C) 2014-2015 Juan R. García Blanco
 *
 * This file is part of GNOME 2048.
 *
 * GNOME 2048 is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * GNOME 2048 is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GNOME 2048; if not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <cairo.h>
#include <clutter/clutter.h>
#include <float.h>
#include <math.h>
#include <string.h>
#include <pango/pango.h>
#include <pango/pangocairo.h>
#include <stdlib.h>
#include <gee.h>


#define TYPE_ROUNDED_RECTANGLE (rounded_rectangle_get_type ())
#define ROUNDED_RECTANGLE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_ROUNDED_RECTANGLE, RoundedRectangle))
#define ROUNDED_RECTANGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_ROUNDED_RECTANGLE, RoundedRectangleClass))
#define IS_ROUNDED_RECTANGLE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_ROUNDED_RECTANGLE))
#define IS_ROUNDED_RECTANGLE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_ROUNDED_RECTANGLE))
#define ROUNDED_RECTANGLE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_ROUNDED_RECTANGLE, RoundedRectangleClass))

typedef struct _RoundedRectangle RoundedRectangle;
typedef struct _RoundedRectangleClass RoundedRectangleClass;
typedef struct _RoundedRectanglePrivate RoundedRectanglePrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) ((var == NULL) ? NULL : (var = (g_free (var), NULL)))

#define TYPE_TILE_VIEW (tile_view_get_type ())
#define TILE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TILE_VIEW, TileView))
#define TILE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TILE_VIEW, TileViewClass))
#define IS_TILE_VIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TILE_VIEW))
#define IS_TILE_VIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TILE_VIEW))
#define TILE_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TILE_VIEW, TileViewClass))

typedef struct _TileView TileView;
typedef struct _TileViewClass TileViewClass;
typedef struct _TileViewPrivate TileViewPrivate;
#define __vala_PangoFontDescription_free0(var) ((var == NULL) ? NULL : (var = (_vala_PangoFontDescription_free (var), NULL)))

#define TYPE_COLOR_PALETTE (color_palette_get_type ())
#define COLOR_PALETTE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLOR_PALETTE, ColorPalette))
#define COLOR_PALETTE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLOR_PALETTE, ColorPaletteClass))
#define IS_COLOR_PALETTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLOR_PALETTE))
#define IS_COLOR_PALETTE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLOR_PALETTE))
#define COLOR_PALETTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLOR_PALETTE, ColorPaletteClass))

typedef struct _ColorPalette ColorPalette;
typedef struct _ColorPaletteClass ColorPaletteClass;
typedef struct _ColorPalettePrivate ColorPalettePrivate;

struct _RoundedRectangle {
	GObject parent_instance;
	RoundedRectanglePrivate * priv;
	ClutterActor* _actor;
	ClutterCanvas* _canvas;
	ClutterColor* _color;
};

struct _RoundedRectangleClass {
	GObjectClass parent_class;
	gboolean (*_draw) (RoundedRectangle* self, cairo_t* ctx, gint width, gint height);
};

struct _TileView {
	RoundedRectangle parent_instance;
	TileViewPrivate * priv;
};

struct _TileViewClass {
	RoundedRectangleClass parent_class;
};

struct _TileViewPrivate {
	guint _value;
};

struct _ColorPalette {
	GObject parent_instance;
	ColorPalettePrivate * priv;
};

struct _ColorPaletteClass {
	GObjectClass parent_class;
};

struct _ColorPalettePrivate {
	GeeHashMap* _palette;
};


static gpointer rounded_rectangle_parent_class = NULL;
static gpointer tile_view_parent_class = NULL;
static gpointer color_palette_parent_class = NULL;
static ColorPalette* color_palette__singleton;
static ColorPalette* color_palette__singleton = NULL;

GType rounded_rectangle_get_type (void) G_GNUC_CONST;
enum  {
	ROUNDED_RECTANGLE_DUMMY_PROPERTY,
	ROUNDED_RECTANGLE_ACTOR,
	ROUNDED_RECTANGLE_COLOR,
	ROUNDED_RECTANGLE_CANVAS
};
RoundedRectangle* rounded_rectangle_new (gfloat x, gfloat y, gfloat width, gfloat height, ClutterColor* color);
RoundedRectangle* rounded_rectangle_construct (GType object_type, gfloat x, gfloat y, gfloat width, gfloat height, ClutterColor* color);
static ClutterColor* _clutter_color_dup (ClutterColor* self);
gboolean _rounded_rectangle_draw (RoundedRectangle* self, cairo_t* ctx, gint width, gint height);
static gboolean __rounded_rectangle_draw_clutter_canvas_draw (ClutterCanvas* _sender, cairo_t* cr, gint width, gint height, gpointer self);
void rounded_rectangle_resize (RoundedRectangle* self, gfloat x, gfloat y, gfloat width, gfloat height);
void rounded_rectangle_idle_resize (RoundedRectangle* self);
static gboolean rounded_rectangle_real__draw (RoundedRectangle* self, cairo_t* ctx, gint width, gint height);
ClutterActor* rounded_rectangle_get_actor (RoundedRectangle* self);
void rounded_rectangle_get_color (RoundedRectangle* self, ClutterColor* result);
void rounded_rectangle_set_color (RoundedRectangle* self, ClutterColor* value);
ClutterCanvas* rounded_rectangle_get_canvas (RoundedRectangle* self);
static void rounded_rectangle_finalize (GObject* obj);
static void _vala_rounded_rectangle_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_rounded_rectangle_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType tile_view_get_type (void) G_GNUC_CONST;
#define TILE_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TILE_VIEW, TileViewPrivate))
enum  {
	TILE_VIEW_DUMMY_PROPERTY,
	TILE_VIEW_VALUE
};
TileView* tile_view_new (gfloat x, gfloat y, gfloat width, gfloat height, guint val);
TileView* tile_view_construct (GType object_type, gfloat x, gfloat y, gfloat width, gfloat height, guint val);
static void _tile_view_pick_color (TileView* self, ClutterColor* result);
static gboolean tile_view_real__draw (RoundedRectangle* base, cairo_t* ctx, gint width, gint height);
static void _vala_PangoFontDescription_free (PangoFontDescription* self);
guint tile_view_get_value (TileView* self);
GType color_palette_get_type (void) G_GNUC_CONST;
ColorPalette* color_palette_get_instance (void);
void color_palette_pick_color (ColorPalette* self, guint val, ClutterColor* result);
void tile_view_set_value (TileView* self, guint value);
static void tile_view_finalize (GObject* obj);
static void _vala_tile_view_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_tile_view_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
#define COLOR_PALETTE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_COLOR_PALETTE, ColorPalettePrivate))
enum  {
	COLOR_PALETTE_DUMMY_PROPERTY
};
ColorPalette* color_palette_new (void);
ColorPalette* color_palette_construct (GType object_type);
static void color_palette_finalize (GObject* obj);


static ClutterColor* _clutter_color_dup (ClutterColor* self) {
	ClutterColor* dup;
#line 29 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	dup = g_new0 (ClutterColor, 1);
#line 29 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	memcpy (dup, self, sizeof (ClutterColor));
#line 29 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return dup;
#line 176 "view.c"
}


static gpointer __clutter_color_dup0 (gpointer self) {
#line 29 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return self ? _clutter_color_dup (self) : NULL;
#line 183 "view.c"
}


static gboolean __rounded_rectangle_draw_clutter_canvas_draw (ClutterCanvas* _sender, cairo_t* cr, gint width, gint height, gpointer self) {
	gboolean result;
	result = _rounded_rectangle_draw ((RoundedRectangle*) self, cr, width, height);
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return result;
#line 192 "view.c"
}


RoundedRectangle* rounded_rectangle_construct (GType object_type, gfloat x, gfloat y, gfloat width, gfloat height, ClutterColor* color) {
	RoundedRectangle * self = NULL;
	ClutterColor* _tmp0_ = NULL;
	ClutterColor* _tmp1_ = NULL;
	ClutterCanvas* _tmp2_ = NULL;
	ClutterCanvas* _tmp3_ = NULL;
	gfloat _tmp4_ = 0.0F;
	gfloat _tmp5_ = 0.0F;
	gfloat _tmp6_ = 0.0F;
	gfloat _tmp7_ = 0.0F;
	ClutterActor* _tmp8_ = NULL;
	ClutterActor* _tmp9_ = NULL;
	gfloat _tmp10_ = 0.0F;
	gfloat _tmp11_ = 0.0F;
	ClutterActor* _tmp12_ = NULL;
	ClutterCanvas* _tmp13_ = NULL;
	ClutterActor* _tmp14_ = NULL;
	gfloat _tmp15_ = 0.0F;
	ClutterActor* _tmp16_ = NULL;
	gfloat _tmp17_ = 0.0F;
	ClutterActor* _tmp18_ = NULL;
	ClutterCanvas* _tmp19_ = NULL;
#line 27 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self = (RoundedRectangle*) g_object_new (object_type, NULL);
#line 29 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = color;
#line 29 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = __clutter_color_dup0 (_tmp0_);
#line 29 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_free0 (self->_color);
#line 29 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->_color = _tmp1_;
#line 31 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = clutter_canvas_new ();
#line 31 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (self->_canvas);
#line 31 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->_canvas = _tmp2_;
#line 32 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp3_ = self->_canvas;
#line 32 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp4_ = width;
#line 32 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp5_ = ceilf (_tmp4_);
#line 32 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp6_ = height;
#line 32 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp7_ = ceilf (_tmp6_);
#line 32 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_canvas_set_size (_tmp3_, (gint) _tmp5_, (gint) _tmp7_);
#line 34 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp8_ = clutter_actor_new ();
#line 34 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_object_ref_sink (_tmp8_);
#line 34 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (self->_actor);
#line 34 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->_actor = _tmp8_;
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp9_ = self->_actor;
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp10_ = width;
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp11_ = height;
#line 35 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_size (_tmp9_, _tmp10_, _tmp11_);
#line 36 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp12_ = self->_actor;
#line 36 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp13_ = self->_canvas;
#line 36 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_content (_tmp12_, (ClutterContent*) _tmp13_);
#line 37 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp14_ = self->_actor;
#line 37 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp15_ = x;
#line 37 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_x (_tmp14_, _tmp15_);
#line 38 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp16_ = self->_actor;
#line 38 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp17_ = y;
#line 38 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_y (_tmp16_, _tmp17_);
#line 39 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp18_ = self->_actor;
#line 39 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_pivot_point (_tmp18_, 0.5f, 0.5f);
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp19_ = self->_canvas;
#line 41 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_signal_connect_object (_tmp19_, "draw", (GCallback) __rounded_rectangle_draw_clutter_canvas_draw, self, 0);
#line 25 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return self;
#line 290 "view.c"
}


RoundedRectangle* rounded_rectangle_new (gfloat x, gfloat y, gfloat width, gfloat height, ClutterColor* color) {
#line 25 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return rounded_rectangle_construct (TYPE_ROUNDED_RECTANGLE, x, y, width, height, color);
#line 297 "view.c"
}


void rounded_rectangle_resize (RoundedRectangle* self, gfloat x, gfloat y, gfloat width, gfloat height) {
	ClutterActor* _tmp0_ = NULL;
	gfloat _tmp1_ = 0.0F;
	ClutterActor* _tmp2_ = NULL;
	gfloat _tmp3_ = 0.0F;
	ClutterActor* _tmp4_ = NULL;
	gfloat _tmp5_ = 0.0F;
	ClutterActor* _tmp6_ = NULL;
	gfloat _tmp7_ = 0.0F;
#line 60 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_if_fail (self != NULL);
#line 62 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = self->_actor;
#line 62 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = x;
#line 62 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_x (_tmp0_, _tmp1_);
#line 63 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = self->_actor;
#line 63 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp3_ = y;
#line 63 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_y (_tmp2_, _tmp3_);
#line 64 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp4_ = self->_actor;
#line 64 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp5_ = width;
#line 64 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_width (_tmp4_, _tmp5_);
#line 65 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp6_ = self->_actor;
#line 65 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp7_ = height;
#line 65 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_actor_set_height (_tmp6_, _tmp7_);
#line 336 "view.c"
}


void rounded_rectangle_idle_resize (RoundedRectangle* self) {
	ClutterCanvas* _tmp0_ = NULL;
	ClutterActor* _tmp1_ = NULL;
	gfloat _tmp2_ = 0.0F;
	gfloat _tmp3_ = 0.0F;
	gfloat _tmp4_ = 0.0F;
	ClutterActor* _tmp5_ = NULL;
	gfloat _tmp6_ = 0.0F;
	gfloat _tmp7_ = 0.0F;
	gfloat _tmp8_ = 0.0F;
	gboolean _tmp9_ = FALSE;
#line 68 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_if_fail (self != NULL);
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = self->_canvas;
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = self->_actor;
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = clutter_actor_get_width (_tmp1_);
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp3_ = _tmp2_;
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp4_ = ceilf (_tmp3_);
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp5_ = self->_actor;
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp6_ = clutter_actor_get_height (_tmp5_);
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp7_ = _tmp6_;
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp8_ = ceilf (_tmp7_);
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp9_ = clutter_canvas_set_size (_tmp0_, (gint) _tmp4_, (gint) _tmp8_);
#line 70 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	if (!_tmp9_) {
#line 375 "view.c"
		ClutterCanvas* _tmp10_ = NULL;
#line 71 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp10_ = self->_canvas;
#line 71 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		clutter_content_invalidate ((ClutterContent*) _tmp10_);
#line 381 "view.c"
	}
}


static gboolean rounded_rectangle_real__draw (RoundedRectangle* self, cairo_t* ctx, gint width, gint height) {
	gboolean result = FALSE;
	gdouble radius = 0.0;
	gint _tmp0_ = 0;
	gdouble degrees = 0.0;
	cairo_t* _tmp1_ = NULL;
	cairo_t* _tmp2_ = NULL;
	cairo_t* _tmp3_ = NULL;
	cairo_t* _tmp4_ = NULL;
	cairo_t* _tmp5_ = NULL;
	cairo_t* _tmp6_ = NULL;
	gint _tmp7_ = 0;
	gdouble _tmp8_ = 0.0;
	gdouble _tmp9_ = 0.0;
	gdouble _tmp10_ = 0.0;
	gdouble _tmp11_ = 0.0;
	gdouble _tmp12_ = 0.0;
	cairo_t* _tmp13_ = NULL;
	gint _tmp14_ = 0;
	gdouble _tmp15_ = 0.0;
	gint _tmp16_ = 0;
	gdouble _tmp17_ = 0.0;
	gdouble _tmp18_ = 0.0;
	gdouble _tmp19_ = 0.0;
	gdouble _tmp20_ = 0.0;
	cairo_t* _tmp21_ = NULL;
	gdouble _tmp22_ = 0.0;
	gint _tmp23_ = 0;
	gdouble _tmp24_ = 0.0;
	gdouble _tmp25_ = 0.0;
	gdouble _tmp26_ = 0.0;
	gdouble _tmp27_ = 0.0;
	cairo_t* _tmp28_ = NULL;
	gdouble _tmp29_ = 0.0;
	gdouble _tmp30_ = 0.0;
	gdouble _tmp31_ = 0.0;
	gdouble _tmp32_ = 0.0;
	gdouble _tmp33_ = 0.0;
	cairo_t* _tmp34_ = NULL;
	ClutterColor* _tmp35_ = NULL;
#line 74 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_val_if_fail (ctx != NULL, FALSE);
#line 76 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = height;
#line 76 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	radius = _tmp0_ / 20.0;
#line 77 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	degrees = G_PI / 180.0;
#line 79 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = ctx;
#line 79 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_save (_tmp1_);
#line 80 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = ctx;
#line 80 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_set_operator (_tmp2_, CAIRO_OPERATOR_CLEAR);
#line 81 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp3_ = ctx;
#line 81 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_paint (_tmp3_);
#line 82 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp4_ = ctx;
#line 82 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_restore (_tmp4_);
#line 84 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp5_ = ctx;
#line 84 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_new_sub_path (_tmp5_);
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp6_ = ctx;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp7_ = width;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp8_ = radius;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp9_ = radius;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp10_ = radius;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp11_ = degrees;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp12_ = degrees;
#line 85 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_arc (_tmp6_, _tmp7_ - _tmp8_, _tmp9_, _tmp10_, -90 * _tmp11_, 0 * _tmp12_);
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp13_ = ctx;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp14_ = width;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp15_ = radius;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp16_ = height;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp17_ = radius;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp18_ = radius;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp19_ = degrees;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp20_ = degrees;
#line 86 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_arc (_tmp13_, _tmp14_ - _tmp15_, _tmp16_ - _tmp17_, _tmp18_, 0 * _tmp19_, 90 * _tmp20_);
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp21_ = ctx;
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp22_ = radius;
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp23_ = height;
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp24_ = radius;
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp25_ = radius;
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp26_ = degrees;
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp27_ = degrees;
#line 87 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_arc (_tmp21_, _tmp22_, _tmp23_ - _tmp24_, _tmp25_, 90 * _tmp26_, 180 * _tmp27_);
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp28_ = ctx;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp29_ = radius;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp30_ = radius;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp31_ = radius;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp32_ = degrees;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp33_ = degrees;
#line 88 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_arc (_tmp28_, _tmp29_, _tmp30_, _tmp31_, 180 * _tmp32_, 270 * _tmp33_);
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp34_ = ctx;
#line 89 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_close_path (_tmp34_);
#line 91 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp35_ = self->_color;
#line 91 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	if (_tmp35_ != NULL) {
#line 526 "view.c"
		cairo_t* _tmp36_ = NULL;
		ClutterColor* _tmp37_ = NULL;
		ClutterColor _tmp38_ = {0};
		cairo_t* _tmp39_ = NULL;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp36_ = ctx;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp37_ = self->_color;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp38_ = *_tmp37_;
#line 92 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		clutter_cairo_set_source_color (_tmp36_, &_tmp38_);
#line 93 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp39_ = ctx;
#line 93 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		cairo_fill (_tmp39_);
#line 543 "view.c"
	}
#line 96 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	result = FALSE;
#line 96 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return result;
#line 549 "view.c"
}


gboolean _rounded_rectangle_draw (RoundedRectangle* self, cairo_t* ctx, gint width, gint height) {
#line 74 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 74 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return ROUNDED_RECTANGLE_GET_CLASS (self)->_draw (self, ctx, width, height);
#line 558 "view.c"
}


ClutterActor* rounded_rectangle_get_actor (RoundedRectangle* self) {
	ClutterActor* result;
	ClutterActor* _tmp0_ = NULL;
#line 45 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 45 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = self->_actor;
#line 45 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	result = _tmp0_;
#line 45 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return result;
#line 573 "view.c"
}


void rounded_rectangle_get_color (RoundedRectangle* self, ClutterColor* result) {
	ClutterColor* _tmp0_ = NULL;
#line 49 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_if_fail (self != NULL);
#line 49 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = self->_color;
#line 49 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	*result = *_tmp0_;
#line 49 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return;
#line 587 "view.c"
}


void rounded_rectangle_set_color (RoundedRectangle* self, ClutterColor* value) {
	ClutterColor _tmp0_ = {0};
	ClutterColor* _tmp1_ = NULL;
	ClutterCanvas* _tmp2_ = NULL;
#line 50 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_if_fail (self != NULL);
#line 51 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = *value;
#line 51 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = __clutter_color_dup0 (&_tmp0_);
#line 51 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_free0 (self->_color);
#line 51 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->_color = _tmp1_;
#line 52 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = self->_canvas;
#line 52 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_content_invalidate ((ClutterContent*) _tmp2_);
#line 50 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_object_notify ((GObject *) self, "color");
#line 611 "view.c"
}


ClutterCanvas* rounded_rectangle_get_canvas (RoundedRectangle* self) {
	ClutterCanvas* result;
	ClutterCanvas* _tmp0_ = NULL;
#line 57 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 57 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = self->_canvas;
#line 57 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	result = _tmp0_;
#line 57 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return result;
#line 626 "view.c"
}


static void rounded_rectangle_class_init (RoundedRectangleClass * klass) {
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	rounded_rectangle_parent_class = g_type_class_peek_parent (klass);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	((RoundedRectangleClass *) klass)->_draw = rounded_rectangle_real__draw;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_rounded_rectangle_get_property;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_rounded_rectangle_set_property;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (klass)->finalize = rounded_rectangle_finalize;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), ROUNDED_RECTANGLE_ACTOR, g_param_spec_object ("actor", "actor", "actor", clutter_actor_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), ROUNDED_RECTANGLE_COLOR, g_param_spec_boxed ("color", "color", "color", CLUTTER_TYPE_COLOR, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), ROUNDED_RECTANGLE_CANVAS, g_param_spec_object ("canvas", "canvas", "canvas", clutter_canvas_get_type (), G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 647 "view.c"
}


static void rounded_rectangle_instance_init (RoundedRectangle * self) {
}


static void rounded_rectangle_finalize (GObject* obj) {
	RoundedRectangle * self;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_ROUNDED_RECTANGLE, RoundedRectangle);
#line 21 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (self->_actor);
#line 22 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (self->_canvas);
#line 23 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_free0 (self->_color);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (rounded_rectangle_parent_class)->finalize (obj);
#line 667 "view.c"
}


GType rounded_rectangle_get_type (void) {
	static volatile gsize rounded_rectangle_type_id__volatile = 0;
	if (g_once_init_enter (&rounded_rectangle_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (RoundedRectangleClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) rounded_rectangle_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (RoundedRectangle), 0, (GInstanceInitFunc) rounded_rectangle_instance_init, NULL };
		GType rounded_rectangle_type_id;
		rounded_rectangle_type_id = g_type_register_static (G_TYPE_OBJECT, "RoundedRectangle", &g_define_type_info, 0);
		g_once_init_leave (&rounded_rectangle_type_id__volatile, rounded_rectangle_type_id);
	}
	return rounded_rectangle_type_id__volatile;
}


static void _vala_rounded_rectangle_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	RoundedRectangle * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_ROUNDED_RECTANGLE, RoundedRectangle);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	switch (property_id) {
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		case ROUNDED_RECTANGLE_ACTOR:
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		g_value_set_object (value, rounded_rectangle_get_actor (self));
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		case ROUNDED_RECTANGLE_COLOR:
#line 696 "view.c"
		{
			ClutterColor boxed;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
			rounded_rectangle_get_color (self, &boxed);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
			g_value_set_boxed (value, &boxed);
#line 703 "view.c"
		}
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		case ROUNDED_RECTANGLE_CANVAS:
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		g_value_set_object (value, rounded_rectangle_get_canvas (self));
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 713 "view.c"
		default:
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 719 "view.c"
	}
}


static void _vala_rounded_rectangle_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	RoundedRectangle * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_ROUNDED_RECTANGLE, RoundedRectangle);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	switch (property_id) {
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		case ROUNDED_RECTANGLE_COLOR:
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		rounded_rectangle_set_color (self, g_value_get_boxed (value));
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 735 "view.c"
		default:
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 19 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 741 "view.c"
	}
}


TileView* tile_view_construct (GType object_type, gfloat x, gfloat y, gfloat width, gfloat height, guint val) {
	TileView * self = NULL;
	gfloat _tmp0_ = 0.0F;
	gfloat _tmp1_ = 0.0F;
	gfloat _tmp2_ = 0.0F;
	gfloat _tmp3_ = 0.0F;
	guint _tmp4_ = 0U;
	ClutterColor _tmp5_ = {0};
	ClutterColor* _tmp6_ = NULL;
#line 104 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = x;
#line 104 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = y;
#line 104 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = width;
#line 104 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp3_ = height;
#line 104 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self = (TileView*) rounded_rectangle_construct (object_type, _tmp0_, _tmp1_, _tmp2_, _tmp3_, NULL);
#line 106 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp4_ = val;
#line 106 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->priv->_value = _tmp4_;
#line 107 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tile_view_pick_color (self, &_tmp5_);
#line 107 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp6_ = __clutter_color_dup0 (&_tmp5_);
#line 107 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_free0 (((RoundedRectangle*) self)->_color);
#line 107 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	((RoundedRectangle*) self)->_color = _tmp6_;
#line 102 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return self;
#line 779 "view.c"
}


TileView* tile_view_new (gfloat x, gfloat y, gfloat width, gfloat height, guint val) {
#line 102 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return tile_view_construct (TYPE_TILE_VIEW, x, y, width, height, val);
#line 786 "view.c"
}


static void _vala_PangoFontDescription_free (PangoFontDescription* self) {
#line 126 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_boxed_free (pango_font_description_get_type (), self);
#line 793 "view.c"
}


static gboolean tile_view_real__draw (RoundedRectangle* base, cairo_t* ctx, gint width, gint height) {
	TileView * self;
	gboolean result = FALSE;
	PangoRectangle logical_rect = {0};
	PangoLayout* layout = NULL;
	PangoFontDescription* font_desc = NULL;
	cairo_t* _tmp0_ = NULL;
	gint _tmp1_ = 0;
	gint _tmp2_ = 0;
	cairo_t* _tmp3_ = NULL;
	cairo_t* _tmp4_ = NULL;
	PangoLayout* _tmp5_ = NULL;
	gint _tmp6_ = 0;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	PangoFontDescription* _tmp9_ = NULL;
	guint _tmp10_ = 0U;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	PangoRectangle _tmp13_ = {0};
	cairo_t* _tmp14_ = NULL;
	gint _tmp15_ = 0;
	PangoRectangle _tmp16_ = {0};
	gint _tmp17_ = 0;
	gint _tmp18_ = 0;
	PangoRectangle _tmp19_ = {0};
	gint _tmp20_ = 0;
	cairo_t* _tmp21_ = NULL;
#line 115 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self = (TileView*) base;
#line 115 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_val_if_fail (ctx != NULL, FALSE);
#line 121 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = ctx;
#line 121 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = width;
#line 121 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = height;
#line 121 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	ROUNDED_RECTANGLE_CLASS (tile_view_parent_class)->_draw (G_TYPE_CHECK_INSTANCE_CAST (self, TYPE_ROUNDED_RECTANGLE, RoundedRectangle), _tmp0_, _tmp1_, _tmp2_);
#line 123 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp3_ = ctx;
#line 123 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_set_source_rgb (_tmp3_, (gdouble) 255, (gdouble) 255, (gdouble) 255);
#line 125 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp4_ = ctx;
#line 125 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp5_ = pango_cairo_create_layout (_tmp4_);
#line 125 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (layout);
#line 125 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	layout = _tmp5_;
#line 126 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp6_ = height;
#line 126 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp7_ = g_strdup_printf ("Sans Bold %dpx", _tmp6_ / 4);
#line 126 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp8_ = _tmp7_;
#line 126 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp9_ = pango_font_description_from_string (_tmp8_);
#line 126 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	__vala_PangoFontDescription_free0 (font_desc);
#line 126 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	font_desc = _tmp9_;
#line 126 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_free0 (_tmp8_);
#line 127 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	pango_layout_set_font_description (layout, font_desc);
#line 129 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp10_ = self->priv->_value;
#line 129 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp11_ = g_strdup_printf ("%u", _tmp10_);
#line 129 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp12_ = _tmp11_;
#line 129 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	pango_layout_set_text (layout, _tmp12_, -1);
#line 129 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_free0 (_tmp12_);
#line 131 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	pango_layout_get_extents (layout, NULL, &_tmp13_);
#line 131 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	logical_rect = _tmp13_;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp14_ = ctx;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp15_ = width;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp16_ = logical_rect;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp17_ = _tmp16_.width;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp18_ = height;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp19_ = logical_rect;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp20_ = _tmp19_.height;
#line 132 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	cairo_move_to (_tmp14_, (gdouble) ((_tmp15_ / 2) - ((_tmp17_ / 2) / PANGO_SCALE)), (gdouble) ((_tmp18_ / 2) - ((_tmp20_ / 2) / PANGO_SCALE)));
#line 134 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp21_ = ctx;
#line 134 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	pango_cairo_show_layout (_tmp21_, layout);
#line 136 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	result = FALSE;
#line 136 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	__vala_PangoFontDescription_free0 (font_desc);
#line 136 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (layout);
#line 136 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return result;
#line 907 "view.c"
}


static void _tile_view_pick_color (TileView* self, ClutterColor* result) {
	ColorPalette* _tmp0_ = NULL;
	ColorPalette* _tmp1_ = NULL;
	guint _tmp2_ = 0U;
	ClutterColor _tmp3_ = {0};
	ClutterColor _tmp4_ = {0};
#line 139 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_if_fail (self != NULL);
#line 141 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = color_palette_get_instance ();
#line 141 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = _tmp0_;
#line 141 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = self->priv->_value;
#line 141 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	color_palette_pick_color (_tmp1_, _tmp2_, &_tmp3_);
#line 141 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp4_ = _tmp3_;
#line 141 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (_tmp1_);
#line 141 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	*result = _tmp4_;
#line 141 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return;
#line 935 "view.c"
}


guint tile_view_get_value (TileView* self) {
	guint result;
	guint _tmp0_ = 0U;
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = self->priv->_value;
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	result = _tmp0_;
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return result;
#line 950 "view.c"
}


void tile_view_set_value (TileView* self, guint value) {
	guint _tmp0_ = 0U;
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_if_fail (self != NULL);
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = value;
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->priv->_value = _tmp0_;
#line 111 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_object_notify ((GObject *) self, "value");
#line 964 "view.c"
}


static void tile_view_class_init (TileViewClass * klass) {
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	tile_view_parent_class = g_type_class_peek_parent (klass);
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_type_class_add_private (klass, sizeof (TileViewPrivate));
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	((RoundedRectangleClass *) klass)->_draw = tile_view_real__draw;
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_tile_view_get_property;
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_tile_view_set_property;
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (klass)->finalize = tile_view_finalize;
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), TILE_VIEW_VALUE, g_param_spec_uint ("value", "value", "value", 0, G_MAXUINT, (guint) 2, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 983 "view.c"
}


static void tile_view_instance_init (TileView * self) {
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->priv = TILE_VIEW_GET_PRIVATE (self);
#line 110 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->priv->_value = (guint) 2;
#line 992 "view.c"
}


static void tile_view_finalize (GObject* obj) {
	TileView * self;
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TILE_VIEW, TileView);
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (tile_view_parent_class)->finalize (obj);
#line 1002 "view.c"
}


GType tile_view_get_type (void) {
	static volatile gsize tile_view_type_id__volatile = 0;
	if (g_once_init_enter (&tile_view_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TileViewClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tile_view_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TileView), 0, (GInstanceInitFunc) tile_view_instance_init, NULL };
		GType tile_view_type_id;
		tile_view_type_id = g_type_register_static (TYPE_ROUNDED_RECTANGLE, "TileView", &g_define_type_info, 0);
		g_once_init_leave (&tile_view_type_id__volatile, tile_view_type_id);
	}
	return tile_view_type_id__volatile;
}


static void _vala_tile_view_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	TileView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_TILE_VIEW, TileView);
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	switch (property_id) {
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		case TILE_VIEW_VALUE:
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		g_value_set_uint (value, tile_view_get_value (self));
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 1029 "view.c"
		default:
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 1035 "view.c"
	}
}


static void _vala_tile_view_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	TileView * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, TYPE_TILE_VIEW, TileView);
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	switch (property_id) {
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		case TILE_VIEW_VALUE:
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		tile_view_set_value (self, g_value_get_uint (value));
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 1051 "view.c"
		default:
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 100 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		break;
#line 1057 "view.c"
	}
}


ColorPalette* color_palette_construct (GType object_type) {
	ColorPalette * self = NULL;
	GeeHashMap* _tmp0_ = NULL;
	GeeHashMap* _tmp1_ = NULL;
	ClutterColor _tmp2_ = {0};
	GeeHashMap* _tmp3_ = NULL;
	ClutterColor _tmp4_ = {0};
	GeeHashMap* _tmp5_ = NULL;
	ClutterColor _tmp6_ = {0};
	GeeHashMap* _tmp7_ = NULL;
	ClutterColor _tmp8_ = {0};
	GeeHashMap* _tmp9_ = NULL;
	ClutterColor _tmp10_ = {0};
	GeeHashMap* _tmp11_ = NULL;
	ClutterColor _tmp12_ = {0};
	GeeHashMap* _tmp13_ = NULL;
	ClutterColor _tmp14_ = {0};
	GeeHashMap* _tmp15_ = NULL;
	ClutterColor _tmp16_ = {0};
	GeeHashMap* _tmp17_ = NULL;
	ClutterColor _tmp18_ = {0};
	GeeHashMap* _tmp19_ = NULL;
	ClutterColor _tmp20_ = {0};
	GeeHashMap* _tmp21_ = NULL;
	ClutterColor _tmp22_ = {0};
#line 152 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self = (ColorPalette*) g_object_new (object_type, NULL);
#line 154 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = gee_hash_map_new (G_TYPE_UINT, NULL, NULL, CLUTTER_TYPE_COLOR, (GBoxedCopyFunc) _clutter_color_dup, g_free, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
#line 154 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (self->priv->_palette);
#line 154 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->priv->_palette = _tmp0_;
#line 156 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = self->priv->_palette;
#line 156 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp2_, "#fce94f");
#line 156 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp1_, (gpointer) ((guintptr) ((guint) 2)), &_tmp2_);
#line 157 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp3_ = self->priv->_palette;
#line 157 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp4_, "#8ae234");
#line 157 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp3_, (gpointer) ((guintptr) ((guint) 4)), &_tmp4_);
#line 158 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp5_ = self->priv->_palette;
#line 158 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp6_, "#fcaf3e");
#line 158 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp5_, (gpointer) ((guintptr) ((guint) 8)), &_tmp6_);
#line 159 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp7_ = self->priv->_palette;
#line 159 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp8_, "#729fcf");
#line 159 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp7_, (gpointer) ((guintptr) ((guint) 16)), &_tmp8_);
#line 160 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp9_ = self->priv->_palette;
#line 160 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp10_, "#ad7fa8");
#line 160 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp9_, (gpointer) ((guintptr) ((guint) 32)), &_tmp10_);
#line 161 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp11_ = self->priv->_palette;
#line 161 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp12_, "#c17d11");
#line 161 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp11_, (gpointer) ((guintptr) ((guint) 64)), &_tmp12_);
#line 162 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp13_ = self->priv->_palette;
#line 162 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp14_, "#ef2929");
#line 162 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp13_, (gpointer) ((guintptr) ((guint) 128)), &_tmp14_);
#line 163 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp15_ = self->priv->_palette;
#line 163 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp16_, "#c4a000");
#line 163 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp15_, (gpointer) ((guintptr) ((guint) 256)), &_tmp16_);
#line 164 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp17_ = self->priv->_palette;
#line 164 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp18_, "#4e9a06");
#line 164 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp17_, (gpointer) ((guintptr) ((guint) 512)), &_tmp18_);
#line 165 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp19_ = self->priv->_palette;
#line 165 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp20_, "#ce5c00");
#line 165 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp19_, (gpointer) ((guintptr) ((guint) 1024)), &_tmp20_);
#line 166 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp21_ = self->priv->_palette;
#line 166 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	clutter_color_from_string (&_tmp22_, "#204a87");
#line 166 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	gee_abstract_map_set ((GeeAbstractMap*) _tmp21_, (gpointer) ((guintptr) ((guint) 2048)), &_tmp22_);
#line 150 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return self;
#line 1163 "view.c"
}


ColorPalette* color_palette_new (void) {
#line 150 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return color_palette_construct (TYPE_COLOR_PALETTE);
#line 1170 "view.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 175 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return self ? g_object_ref (self) : NULL;
#line 1177 "view.c"
}


ColorPalette* color_palette_get_instance (void) {
	ColorPalette* result = NULL;
	ColorPalette* _tmp0_ = NULL;
	ColorPalette* _tmp2_ = NULL;
	ColorPalette* _tmp3_ = NULL;
#line 171 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = color_palette__singleton;
#line 171 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	if (_tmp0_ == NULL) {
#line 1190 "view.c"
		ColorPalette* _tmp1_ = NULL;
#line 172 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp1_ = color_palette_new ();
#line 172 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_g_object_unref0 (color_palette__singleton);
#line 172 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		color_palette__singleton = _tmp1_;
#line 1198 "view.c"
	}
#line 175 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = color_palette__singleton;
#line 175 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 175 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	result = _tmp3_;
#line 175 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return result;
#line 1208 "view.c"
}


void color_palette_pick_color (ColorPalette* self, guint val, ClutterColor* result) {
	ClutterColor color = {0};
	GeeHashMap* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
	gboolean _tmp2_ = FALSE;
#line 178 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_return_if_fail (self != NULL);
#line 182 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp0_ = self->priv->_palette;
#line 182 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp1_ = val;
#line 182 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_tmp2_ = gee_abstract_map_has_key ((GeeAbstractMap*) _tmp0_, (gpointer) ((guintptr) _tmp1_));
#line 182 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	if (_tmp2_) {
#line 1227 "view.c"
		GeeHashMap* _tmp3_ = NULL;
		guint _tmp4_ = 0U;
		gpointer _tmp5_ = NULL;
		ClutterColor* _tmp6_ = NULL;
#line 183 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp3_ = self->priv->_palette;
#line 183 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp4_ = val;
#line 183 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp5_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp3_, (gpointer) ((guintptr) _tmp4_));
#line 183 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp6_ = (ClutterColor*) _tmp5_;
#line 183 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		color = *_tmp6_;
#line 183 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_g_free0 (_tmp6_);
#line 1244 "view.c"
	} else {
		guint norm_val = 0U;
		guint8 sbits = 0U;
		guint _tmp7_ = 0U;
		GeeHashMap* _tmp8_ = NULL;
		guint _tmp9_ = 0U;
		gpointer _tmp10_ = NULL;
		ClutterColor* _tmp11_ = NULL;
		guint _tmp12_ = 0U;
		guint8 _tmp13_ = 0U;
		guint8 _tmp14_ = 0U;
		guint8 _tmp15_ = 0U;
		guint8 _tmp16_ = 0U;
		guint8 _tmp17_ = 0U;
		guint8 _tmp18_ = 0U;
#line 188 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp7_ = val;
#line 188 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		norm_val = _tmp7_ / 2048;
#line 189 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp8_ = self->priv->_palette;
#line 189 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp9_ = norm_val;
#line 189 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp10_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp8_, (gpointer) ((guintptr) _tmp9_));
#line 189 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp11_ = (ClutterColor*) _tmp10_;
#line 189 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		color = *_tmp11_;
#line 189 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_g_free0 (_tmp11_);
#line 191 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp12_ = val;
#line 191 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		sbits = (guint8) (_tmp12_ % 7);
#line 192 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp13_ = color.red;
#line 192 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp14_ = sbits;
#line 192 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		color.red = _tmp13_ << _tmp14_;
#line 193 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp15_ = color.green;
#line 193 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp16_ = sbits;
#line 193 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		color.green = _tmp15_ << _tmp16_;
#line 194 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp17_ = color.blue;
#line 194 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		_tmp18_ = sbits;
#line 194 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
		color.blue = _tmp17_ << _tmp18_;
#line 1298 "view.c"
	}
#line 197 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	*result = color;
#line 197 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	return;
#line 1304 "view.c"
}


static void color_palette_class_init (ColorPaletteClass * klass) {
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	color_palette_parent_class = g_type_class_peek_parent (klass);
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	g_type_class_add_private (klass, sizeof (ColorPalettePrivate));
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (klass)->finalize = color_palette_finalize;
#line 1315 "view.c"
}


static void color_palette_instance_init (ColorPalette * self) {
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self->priv = COLOR_PALETTE_GET_PRIVATE (self);
#line 1322 "view.c"
}


static void color_palette_finalize (GObject* obj) {
	ColorPalette * self;
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_COLOR_PALETTE, ColorPalette);
#line 147 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	_g_object_unref0 (self->priv->_palette);
#line 145 "/run/media/triton/Guerre/jhbuild/jhbuild/gnome-2048/src/view.vala"
	G_OBJECT_CLASS (color_palette_parent_class)->finalize (obj);
#line 1334 "view.c"
}


GType color_palette_get_type (void) {
	static volatile gsize color_palette_type_id__volatile = 0;
	if (g_once_init_enter (&color_palette_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ColorPaletteClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) color_palette_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ColorPalette), 0, (GInstanceInitFunc) color_palette_instance_init, NULL };
		GType color_palette_type_id;
		color_palette_type_id = g_type_register_static (G_TYPE_OBJECT, "ColorPalette", &g_define_type_info, 0);
		g_once_init_leave (&color_palette_type_id__volatile, color_palette_type_id);
	}
	return color_palette_type_id__volatile;
}



