|
Packit |
3ff832 |
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
|
|
Packit |
3ff832 |
/* vim:set et sts=4: */
|
|
Packit |
3ff832 |
/* bus - The Input Bus
|
|
Packit |
3ff832 |
* Copyright (C) 2008-2013 Peng Huang <shawn.p.huang@gmail.com>
|
|
Packit |
3ff832 |
* Copyright (C) 2008-2013 Red Hat, Inc.
|
|
Packit |
3ff832 |
*
|
|
Packit |
3ff832 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
3ff832 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
3ff832 |
* License as published by the Free Software Foundation; either
|
|
Packit |
3ff832 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
3ff832 |
*
|
|
Packit |
3ff832 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
3ff832 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
3ff832 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
3ff832 |
* Lesser General Public License for more details.
|
|
Packit |
3ff832 |
*
|
|
Packit |
3ff832 |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
3ff832 |
* License along with this library; if not, write to the Free Software
|
|
Packit |
3ff832 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
|
|
Packit |
3ff832 |
* USA
|
|
Packit |
3ff832 |
*/
|
|
Packit |
3ff832 |
#ifndef __BUS_IBUS_IMPL_H_
|
|
Packit |
3ff832 |
#define __BUS_IBUS_IMPL_H_
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
#include <ibus.h>
|
|
Packit |
3ff832 |
#include "connection.h"
|
|
Packit |
3ff832 |
#include "component.h"
|
|
Packit |
3ff832 |
#include "inputcontext.h"
|
|
Packit |
3ff832 |
#include "factoryproxy.h"
|
|
Packit |
3ff832 |
#include "panelproxy.h"
|
|
Packit |
3ff832 |
#include "engineproxy.h"
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
/*
|
|
Packit |
3ff832 |
* Type macros.
|
|
Packit |
3ff832 |
*/
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
/* define GOBJECT macros */
|
|
Packit |
3ff832 |
#define BUS_TYPE_IBUS_IMPL \
|
|
Packit |
3ff832 |
(bus_ibus_impl_get_type ())
|
|
Packit |
3ff832 |
#define BUS_IBUS_IMPL(obj) \
|
|
Packit |
3ff832 |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), BUS_TYPE_IBUS_IMPL, BusIBusImpl))
|
|
Packit |
3ff832 |
#define BUS_IBUS_IMPL_CLASS(klass) \
|
|
Packit |
3ff832 |
(G_TYPE_CHECK_CLASS_CAST ((klass), BUS_TYPE_IBUS_IMPL, BusIBusImplClass))
|
|
Packit |
3ff832 |
#define BUS_IS_IBUS_IMPL(obj) \
|
|
Packit |
3ff832 |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), BUS_TYPE_IBUS_IMPL))
|
|
Packit |
3ff832 |
#define BUS_IS_IBUS_IMPL_CLASS(klass) \
|
|
Packit |
3ff832 |
(G_TYPE_CHECK_CLASS_TYPE ((klass), BUS_TYPE_IBUS_IMPL))
|
|
Packit |
3ff832 |
#define BUS_IBUS_IMPL_GET_CLASS(obj) \
|
|
Packit |
3ff832 |
(G_TYPE_INSTANCE_GET_CLASS ((obj), BUS_TYPE_IBUS_IMPL, BusIBusImplClass))
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
#define BUS_DEFAULT_IBUS \
|
|
Packit |
3ff832 |
(bus_ibus_impl_get_default ())
|
|
Packit |
3ff832 |
#define BUS_DEFAULT_KEYMAP \
|
|
Packit |
3ff832 |
(bus_ibus_impl_get_keymap (BUS_DEFAULT_IBUS))
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
G_BEGIN_DECLS
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
typedef struct _BusIBusImpl BusIBusImpl;
|
|
Packit |
3ff832 |
typedef struct _BusIBusImplClass BusIBusImplClass;
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
GType bus_ibus_impl_get_type (void);
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
/**
|
|
Packit |
3ff832 |
* bus_ibus_impl_get_default:
|
|
Packit |
3ff832 |
* @returns: a BusIBusImpl object which is a singleton.
|
|
Packit |
3ff832 |
*
|
|
Packit |
3ff832 |
* Instantiate a BusIBusImpl object (if necessary) and return the object.
|
|
Packit |
3ff832 |
*/
|
|
Packit |
3ff832 |
BusIBusImpl *bus_ibus_impl_get_default (void);
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
/* accessors */
|
|
Packit |
3ff832 |
BusFactoryProxy *bus_ibus_impl_lookup_factory (BusIBusImpl *ibus,
|
|
Packit |
3ff832 |
const gchar *path);
|
|
Packit |
3ff832 |
IBusKeymap *bus_ibus_impl_get_keymap (BusIBusImpl *ibus);
|
|
Packit |
3ff832 |
BusComponent *bus_ibus_impl_lookup_component_by_name
|
|
Packit |
3ff832 |
(BusIBusImpl *ibus,
|
|
Packit |
3ff832 |
const gchar *name);
|
|
Packit |
3ff832 |
gboolean bus_ibus_impl_is_use_sys_layout (BusIBusImpl *ibus);
|
|
Packit |
3ff832 |
gboolean bus_ibus_impl_is_embed_preedit_text
|
|
Packit |
3ff832 |
(BusIBusImpl *ibus);
|
|
Packit |
3ff832 |
BusInputContext *bus_ibus_impl_get_focused_input_context
|
|
Packit |
3ff832 |
(BusIBusImpl *ibus);
|
|
Packit |
3ff832 |
|
|
Packit |
3ff832 |
G_END_DECLS
|
|
Packit |
3ff832 |
#endif
|