Update Catalan translation
[cheese.git] / libcheese / totem-aspect-frame.h
blob886fc498c756a935cc26c14fe5cce3b6419fa1e3
2 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
3 /*
4 * mx-aspect-frame.h: A container that respect the aspect ratio of its child
6 * Copyright 2010, 2011 Intel Corporation.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms and conditions of the GNU Lesser General Public License,
10 * version 2.1, as published by the Free Software Foundation.
12 * This program is distributed in the hope it will be useful, but WITHOUT ANY
13 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
15 * more details.
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with this program; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef __TOTEM_ASPECT_FRAME_H__
23 #define __TOTEM_ASPECT_FRAME_H__
25 #include <glib-object.h>
26 #include <clutter/clutter.h>
28 G_BEGIN_DECLS
30 #define TOTEM_TYPE_ASPECT_FRAME totem_aspect_frame_get_type()
32 #define TOTEM_ASPECT_FRAME(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
34 TOTEM_TYPE_ASPECT_FRAME, TotemAspectFrame))
36 #define TOTEM_ASPECT_FRAME_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST ((klass), \
38 TOTEM_TYPE_ASPECT_FRAME, TotemAspectFrameClass))
40 #define TOTEM_IS_ASPECT_FRAME(obj) \
41 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
42 TOTEM_TYPE_ASPECT_FRAME))
44 #define TOTEM_IS_ASPECT_FRAME_CLASS(klass) \
45 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
46 TOTEM_TYPE_ASPECT_FRAME))
48 #define TOTEM_ASPECT_FRAME_GET_CLASS(obj) \
49 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
50 TOTEM_TYPE_ASPECT_FRAME, TotemAspectFrameClass))
52 typedef struct _TotemAspectFrame TotemAspectFrame;
53 typedef struct _TotemAspectFrameClass TotemAspectFrameClass;
55 struct _TotemAspectFrame
57 ClutterActor parent;
60 struct _TotemAspectFrameClass
62 ClutterActorClass parent_class;
65 GType totem_aspect_frame_get_type (void);
67 ClutterActor * totem_aspect_frame_new (void);
69 void totem_aspect_frame_set_child (TotemAspectFrame *frame,
70 ClutterActor *child);
72 void totem_aspect_frame_set_expand (TotemAspectFrame *frame,
73 gboolean expand);
74 gboolean totem_aspect_frame_get_expand (TotemAspectFrame *frame);
76 void totem_aspect_frame_set_rotation (TotemAspectFrame *frame,
77 gdouble rotation);
78 gdouble totem_aspect_frame_get_rotation (TotemAspectFrame *frame);
80 G_END_DECLS
82 #endif /* __TOTEM_ASPECT_FRAME_H__ */