1
/* This file is part of Maliit framework
3
* Copyright (C) 2012 One Laptop per Child Association
5
* Contact: maliit-discuss@lists.maliit.org
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the licence, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the
19
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
23
#ifndef MALIIT_GLIB_INPUT_METHOD_H
24
#define MALIIT_GLIB_INPUT_METHOD_H
27
#include <glib-object.h>
31
#define MALIIT_TYPE_INPUT_METHOD (maliit_input_method_get_type())
32
#define MALIIT_INPUT_METHOD(obj) (G_TYPE_CHECK_INSTANCE_CAST(obj, MALIIT_TYPE_INPUT_METHOD, MaliitInputMethod))
33
#define MALIIT_INPUT_METHOD_CLASS(cls) (G_TYPE_CHECK_CLASS_CAST(cls, MALIIT_TYPE_INPUT_METHOD, MaliitInputMethodClass))
34
#define MALIIT_IS_INPUT_METHOD(obj) (G_TYPE_CHECK_INSTANCE_TYPE(obj, MALIIT_TYPE_INPUT_METHOD))
35
#define MALIIT_IS_INPUT_METHOD_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE(obj, MALIIT_TYPE_INPUT_METHOD))
36
#define MALIIT_INPUT_METHOD_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), MALIIT_TYPE_INPUT_METHOD, MaliitInputMethodClass))
38
typedef struct _MaliitInputMethod MaliitInputMethod;
39
typedef struct _MaliitInputMethodClass MaliitInputMethodClass;
40
typedef struct _MaliitInputMethodPrivate MaliitInputMethodPrivate;
42
struct _MaliitInputMethod
47
MaliitInputMethodPrivate *priv;
51
* MaliitInputMethodClass:
52
* @parent_class: The parent class.
54
struct _MaliitInputMethodClass
56
GObjectClass parent_class;
60
maliit_input_method_get_type (void) G_GNUC_CONST;
63
maliit_input_method_new (void);
66
maliit_input_method_get_area (MaliitInputMethod *input_method,
68
int *width, int *height);
71
maliit_input_method_show (MaliitInputMethod *input_method);
74
maliit_input_method_hide (MaliitInputMethod *input_method);
78
#endif /* MALIIT_GLIB_INPUT_METHOD_H */