~mterry/ubuntu/natty/gnome-shell/wip

« back to all changes in this revision

Viewing changes to src/st/st-im-text.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2009-10-12 22:44:00 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091012224400-k91p42yvou07i525
Tags: 2.28.0-0ubuntu1
* New upstream version
* debian/control:
  - updated build requirement
* debian/patches/80_git_change_fix_alt_tab_ressource_usage.patch:
  - git change to fix ressources not being freed on alt-tab

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 
2
/*
 
3
 * st-imtext.h
 
4
 *
 
5
 * This is a copy of ClutterIMText converted to use GtkIMContext rather
 
6
 * than ClutterIMContext. Original code:
 
7
 *
 
8
 * Author: raymond liu <raymond.liu@intel.com>
 
9
 *
 
10
 * Copyright (C) 2009, Intel Corporation.
 
11
 *
 
12
 * This library is free software; you can redistribute it and/or
 
13
 * modify it under the terms of the GNU Lesser General Public License
 
14
 * version 2.1 as published by the Free Software Foundation.
 
15
 *
 
16
 * This library is distributed in the hope that it will be useful, but
 
17
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
19
 * Lesser General Public License for more details.
 
20
 *
 
21
 * You should have received a copy of the GNU Lesser General Public
 
22
 * License along with this library; if not, write to the Free Software
 
23
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 
24
 * 02110-1301 USA
 
25
 */
 
26
 
 
27
#if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION)
 
28
#error "Only <st/st.h> can be included directly.h"
 
29
#endif
 
30
 
 
31
#ifndef __ST_IM_TEXT_H__
 
32
#define __ST_IM_TEXT_H__
 
33
 
 
34
G_BEGIN_DECLS
 
35
 
 
36
#include <clutter/clutter.h>
 
37
 
 
38
#define ST_TYPE_IM_TEXT               (st_im_text_get_type ())
 
39
#define ST_IM_TEXT(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), ST_TYPE_IM_TEXT, StIMText))
 
40
#define ST_IS_IM_TEXT(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ST_TYPE_IM_TEXT))
 
41
#define ST_IM_TEXT_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), ST_TYPE_IM_TEXT, StIMTextClass))
 
42
#define ST_IS_IM_TEXT_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), ST_TYPE_IM_TEXT))
 
43
#define ST_IM_TEXT_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), ST_TYPE_IM_TEXT, StIMTextClass))
 
44
 
 
45
typedef struct _StIMText              StIMText;
 
46
typedef struct _StIMTextPrivate       StIMTextPrivate;
 
47
typedef struct _StIMTextClass         StIMTextClass;
 
48
 
 
49
struct _StIMText
 
50
{
 
51
  ClutterText parent_instance;
 
52
 
 
53
  StIMTextPrivate *priv;
 
54
};
 
55
 
 
56
struct _StIMTextClass
 
57
{
 
58
  ClutterTextClass parent_class;
 
59
};
 
60
 
 
61
GType st_im_text_get_type (void) G_GNUC_CONST;
 
62
 
 
63
ClutterActor *st_im_text_new             (const gchar *text);
 
64
void          st_im_text_set_autoshow_im (StIMText    *self,
 
65
                                          gboolean     autoshow);
 
66
 
 
67
G_END_DECLS
 
68
 
 
69
#endif /* __ST_IM_TEXT_H__ */