~golfish/netbook-remix-launcher/desktop

« back to all changes in this revision

Viewing changes to src/tidy-texture-frame.h

  • Committer: Neil J. Patel
  • Date: 2008-04-16 11:31:15 UTC
  • Revision ID: njpatel@gmail.com-20080416113115-ztljg0qms79anijd
* Inital import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* tidy-texture-frame.h: Expandible texture actor
 
2
 *
 
3
 * Copyright (C) 2007 OpenedHand
 
4
 *
 
5
 * This library is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU Lesser General Public
 
7
 * License as published by the Free Software Foundation; either
 
8
 * version 2 of the License, or (at your option) any later version.
 
9
 *
 
10
 * This library is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
 * Lesser General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU Lesser General Public
 
16
 * License along with this library; if not, write to the
 
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
 * Boston, MA 02111-1307, USA.
 
19
 */
 
20
 
 
21
#ifndef _HAVE_TIDY_TEXTURE_FRAME_H
 
22
#define _HAVE_TIDY_TEXTURE_FRAME_H
 
23
 
 
24
#include <clutter/clutter.h>
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#define TIDY_TYPE_TEXTURE_FRAME (tidy_texture_frame_get_type ())
 
29
 
 
30
#define TIDY_TEXTURE_FRAME(obj) \
 
31
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
 
32
  TIDY_TYPE_TEXTURE_FRAME, TidyTextureFrame))
 
33
 
 
34
#define TIDY_TEXTURE_FRAME_CLASS(klass) \
 
35
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
 
36
  TIDY_TYPE_TEXTURE_FRAME, TidyTextureFrameClass))
 
37
 
 
38
#define TIDY_IS_TEXTURE_FRAME(obj) \
 
39
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
 
40
  TIDY_TYPE_TEXTURE_FRAME))
 
41
 
 
42
#define TIDY_IS_TEXTURE_FRAME_CLASS(klass) \
 
43
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
 
44
  TIDY_TYPE_TEXTURE_FRAME))
 
45
 
 
46
#define TIDY_TEXTURE_FRAME_GET_CLASS(obj) \
 
47
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
 
48
  TIDY_TYPE_TEXTURE_FRAME, TidyTextureFrameClass))
 
49
 
 
50
typedef struct _TidyTextureFrame        TidyTextureFrame;
 
51
typedef struct _TidyTextureFramePrivate TidyTextureFramePrivate;
 
52
typedef struct _TidyTextureFrameClass   TidyTextureFrameClass;
 
53
 
 
54
struct _TidyTextureFrame
 
55
{
 
56
  ClutterCloneTexture              parent;
 
57
  
 
58
  /*< priv >*/
 
59
  TidyTextureFramePrivate    *priv;
 
60
};
 
61
 
 
62
struct _TidyTextureFrameClass 
 
63
{
 
64
  ClutterCloneTextureClass parent_class;
 
65
 
 
66
  /* padding for future expansion */
 
67
  void (*_clutter_box_1) (void);
 
68
  void (*_clutter_box_2) (void);
 
69
  void (*_clutter_box_3) (void);
 
70
  void (*_clutter_box_4) (void);
 
71
}; 
 
72
 
 
73
GType         tidy_texture_frame_get_type (void) G_GNUC_CONST;
 
74
ClutterActor *tidy_texture_frame_new      (ClutterTexture *texture,
 
75
                                           gint            left,
 
76
                                           gint            top,
 
77
                                           gint            right,
 
78
                                           gint            bottom);
 
79
 
 
80
G_END_DECLS
 
81
 
 
82
#endif /* _HAVE_TIDY_TEXTURE_FRAME_H */