1
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
5
* This is a copy of ClutterIMText converted to use GtkIMContext rather
6
* than ClutterIMContext. Original code:
8
* Author: raymond liu <raymond.liu@intel.com>
10
* Copyright (C) 2009, Intel Corporation.
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.
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.
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
27
#if !defined(ST_H_INSIDE) && !defined(ST_COMPILATION)
28
#error "Only <st/st.h> can be included directly.h"
31
#ifndef __ST_IM_TEXT_H__
32
#define __ST_IM_TEXT_H__
36
#include <clutter/clutter.h>
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))
45
typedef struct _StIMText StIMText;
46
typedef struct _StIMTextPrivate StIMTextPrivate;
47
typedef struct _StIMTextClass StIMTextClass;
51
ClutterText parent_instance;
53
StIMTextPrivate *priv;
58
ClutterTextClass parent_class;
61
GType st_im_text_get_type (void) G_GNUC_CONST;
63
ClutterActor *st_im_text_new (const gchar *text);
64
void st_im_text_set_autoshow_im (StIMText *self,
69
#endif /* __ST_IM_TEXT_H__ */