File indexing completed on 2024-11-24 05:00:24
0001 /* 0002 SPDX-FileCopyrightText: 2011 Ni Hui <shuizhuyuanluo@126.com> 0003 SPDX-FileCopyrightText: 2014 Weng Xuetian <wengxt@gmail.com> 0004 0005 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0006 */ 0007 #pragma once 0008 0009 #include <ibus.h> 0010 0011 class App; 0012 #define IBUS_TYPE_PANEL_IMPANEL (ibus_panel_impanel_get_type()) 0013 #define IBUS_PANEL_IMPANEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), IBUS_TYPE_PANEL_IMPANEL, IBusPanelImpanel)) 0014 #define IBUS_PANEL_IMPANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), IBUS_TYPE_PANEL_IMPANEL, IBusPanelImpanelClass)) 0015 #define IBUS_IS_PANEL_IMPANEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), IBUS_TYPE_PANEL_IMPANEL)) 0016 #define IBUS_IS_PANEL_IMPANEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), IBUS_TYPE_PANEL_IMPANEL)) 0017 #define IBUS_PANEL_IMPANEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), IBUS_TYPE_PANEL_IMPANEL, IBusPanelImpanelClass)) 0018 0019 G_BEGIN_DECLS 0020 0021 typedef struct _IBusPanelImpanel IBusPanelImpanel; 0022 0023 GType ibus_panel_impanel_get_type(void); 0024 #if !IBUS_CHECK_VERSION(1, 3, 99) 0025 IBusPanelImpanel *ibus_panel_impanel_new(IBusConnection *connection); 0026 #else 0027 IBusPanelImpanel *ibus_panel_impanel_new(GDBusConnection *connection); 0028 #endif 0029 void ibus_panel_impanel_set_bus(IBusPanelImpanel *impanel, IBusBus *bus); 0030 void ibus_panel_impanel_set_app(IBusPanelImpanel *impanel, App *app); 0031 void ibus_panel_impanel_accept(IBusPanelImpanel *impanel); 0032 void ibus_panel_impanel_navigate(IBusPanelImpanel *impanel, gboolean start, gboolean forward); 0033 void ibus_panel_impanel_move_next(IBusPanelImpanel *impanel); 0034 0035 G_END_DECLS