Blame bus/ibusimpl.h

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