|
Packit Service |
1d8f1c |
/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
|
|
Packit Service |
1d8f1c |
/* vim:set et sts=4: */
|
|
Packit Service |
1d8f1c |
/* IBus - 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 |
|
|
Packit Service |
1d8f1c |
#if !defined (__IBUS_H_INSIDE__) && !defined (IBUS_COMPILATION)
|
|
Packit Service |
1d8f1c |
#error "Only <ibus.h> can be included directly"
|
|
Packit Service |
1d8f1c |
#endif
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
#ifndef __IBUS_LOOKUP_TABLE_H_
|
|
Packit Service |
1d8f1c |
#define __IBUS_LOOKUP_TABLE_H_
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* SECTION: ibuslookuptable
|
|
Packit Service |
1d8f1c |
* @short_description: Candidate word/phrase lookup table.
|
|
Packit Service |
1d8f1c |
* @stability: Stable
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* An IBusLookuptable stores the candidate words or phrases for users to
|
|
Packit Service |
1d8f1c |
* choose from.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Use ibus_engine_update_lookup_table(), ibus_engine_show_lookup_table(),
|
|
Packit Service |
1d8f1c |
* and ibus_engine_hide_lookup_table() to update, show and hide the lookup
|
|
Packit Service |
1d8f1c |
* table.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* see_also: #IBusEngine
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
#include "ibusserializable.h"
|
|
Packit Service |
1d8f1c |
#include "ibustext.h"
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/*
|
|
Packit Service |
1d8f1c |
* Type macros.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
/* define IBusLookupTable macros */
|
|
Packit Service |
1d8f1c |
#define IBUS_TYPE_LOOKUP_TABLE \
|
|
Packit Service |
1d8f1c |
(ibus_lookup_table_get_type ())
|
|
Packit Service |
1d8f1c |
#define IBUS_LOOKUP_TABLE(obj) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_CHECK_INSTANCE_CAST ((obj), IBUS_TYPE_LOOKUP_TABLE, IBusLookupTable))
|
|
Packit Service |
1d8f1c |
#define IBUS_LOOKUP_TABLE_CLASS(klass) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_CHECK_CLASS_CAST ((klass), IBUS_TYPE_LOOKUP_TABLE, IBusLookupTableClass))
|
|
Packit Service |
1d8f1c |
#define IBUS_IS_LOOKUP_TABLE(obj) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), IBUS_TYPE_LOOKUP_TABLE))
|
|
Packit Service |
1d8f1c |
#define IBUS_IS_LOOKUP_TABLE_CLASS(klass) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_CHECK_CLASS_TYPE ((klass), IBUS_TYPE_LOOKUP_TABLE))
|
|
Packit Service |
1d8f1c |
#define IBUS_LOOKUP_TABLE_GET_CLASS(obj) \
|
|
Packit Service |
1d8f1c |
(G_TYPE_INSTANCE_GET_CLASS ((obj), IBUS_TYPE_LOOKUP_TABLE, IBusLookupTableClass))
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
G_BEGIN_DECLS
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
typedef struct _IBusLookupTable IBusLookupTable;
|
|
Packit Service |
1d8f1c |
typedef struct _IBusLookupTableClass IBusLookupTableClass;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* IBusLookupTable:
|
|
Packit Service |
1d8f1c |
* @page_size: number of candidate shown per page.
|
|
Packit Service |
1d8f1c |
* @cursor_pos: position index of cursor.
|
|
Packit Service |
1d8f1c |
* @cursor_visible: whether the cursor is visible.
|
|
Packit Service |
1d8f1c |
* @round: TRUE for lookup table wrap around.
|
|
Packit Service |
1d8f1c |
* @orientation: orientation of the table.
|
|
Packit Service |
1d8f1c |
* @candidates: Candidate words/phrases.
|
|
Packit Service |
1d8f1c |
* @labels: Candidate labels which identify individual candidates in the same page. Default is 1, 2, 3, 4 ...
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* An IBusLookuptable stores the candidate words or phrases for users to choose from.
|
|
Packit Service |
1d8f1c |
* Note that some input methods allow you to select candidate by pressing non-numeric
|
|
Packit Service |
1d8f1c |
* keys such as "asdfghjkl;".
|
|
Packit Service |
1d8f1c |
* Developers of these input methods should change the labels with
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_append_label().
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
struct _IBusLookupTable {
|
|
Packit Service |
1d8f1c |
IBusSerializable parent;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/*< public >*/
|
|
Packit Service |
1d8f1c |
guint page_size;
|
|
Packit Service |
1d8f1c |
guint cursor_pos;
|
|
Packit Service |
1d8f1c |
gboolean cursor_visible;
|
|
Packit Service |
1d8f1c |
gboolean round;
|
|
Packit Service |
1d8f1c |
gint orientation;
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
GArray *candidates;
|
|
Packit Service |
1d8f1c |
GArray *labels;
|
|
Packit Service |
1d8f1c |
};
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
struct _IBusLookupTableClass {
|
|
Packit Service |
1d8f1c |
IBusSerializableClass parent;
|
|
Packit Service |
1d8f1c |
};
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
GType ibus_lookup_table_get_type (void);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_new:
|
|
Packit Service |
1d8f1c |
* @page_size: number of candidate shown per page, the max value is 16.
|
|
Packit Service |
1d8f1c |
* @cursor_pos: position index of cursor.
|
|
Packit Service |
1d8f1c |
* @cursor_visible: whether the cursor is visible.
|
|
Packit Service |
1d8f1c |
* @round: TRUE for lookup table wrap around.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Craetes a new #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: A newly allocated #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
IBusLookupTable *ibus_lookup_table_new (guint page_size,
|
|
Packit Service |
1d8f1c |
guint cursor_pos,
|
|
Packit Service |
1d8f1c |
gboolean cursor_visible,
|
|
Packit Service |
1d8f1c |
gboolean round);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_append_candidate:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @text: candidate word/phrase to be appended (in IBusText format).
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Append a candidate word/phrase to IBusLookupTable, and increase reference.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_append_candidate
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
IBusText *text);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_get_number_of_candidates:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Return the number of candidate in the table.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: The number of candidates in the table
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
guint ibus_lookup_table_get_number_of_candidates
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_get_candidate:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @index: Index in the Lookup table.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Return #IBusText at the given index. Borrowed reference.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: (transfer none): IBusText at the given index; NULL if no such
|
|
Packit Service |
1d8f1c |
* #IBusText.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
IBusText *ibus_lookup_table_get_candidate
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
guint index);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_append_label:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @text: A candidate label to be appended (in IBusText format).
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Append a candidate word/phrase to IBusLookupTable, and increase reference.
|
|
Packit Service |
1d8f1c |
* This function is needed if the input method select candidate with
|
|
Packit Service |
1d8f1c |
* non-numeric keys such as "asdfghjkl;".
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_append_label
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
IBusText *text);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_set_label:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @index: Intex in the Lookup table.
|
|
Packit Service |
1d8f1c |
* @text: A candidate label to be appended (in IBusText format).
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Append a candidate word/phrase to IBusLookupTable, and increase reference.
|
|
Packit Service |
1d8f1c |
* This function is needed if the input method select candidate with
|
|
Packit Service |
1d8f1c |
* non-numeric keys such as "asdfghjkl;".
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_set_label
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
guint index,
|
|
Packit Service |
1d8f1c |
IBusText *text);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_get_label:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @index: Index in the Lookup table.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Return #IBusText at the given index. Borrowed reference.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: (transfer none): #IBusText at the given index; %NULL if no such
|
|
Packit Service |
1d8f1c |
* #IBusText.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
IBusText *ibus_lookup_table_get_label
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
guint index);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_set_cursor_pos:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @cursor_pos: The position of cursor.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Set the cursor position of IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_set_cursor_pos
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
guint cursor_pos);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_get_cursor_pos:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Gets the cursor position of #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: The position of cursor.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
guint ibus_lookup_table_get_cursor_pos
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_set_cursor_visible:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @visible: Whether to make the cursor of @table visible.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Set whether to make the cursor of an IBusLookupTable visible or not.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_set_cursor_visible
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
gboolean visible);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_is_cursor_visible:
|
|
Packit Service |
1d8f1c |
* @table: An #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns whether the cursor of an #IBusLookupTable is visible.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: Whether the cursor of @table is visible.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
gboolean ibus_lookup_table_is_cursor_visible
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_get_cursor_in_page:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Gets the cursor position in current page of #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: The position of cursor in current page.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
guint ibus_lookup_table_get_cursor_in_page
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_set_page_size:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @page_size: number of candidate shown per page.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Set the number of candidate shown per page.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_set_page_size
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
guint page_size);
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_get_page_size:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Gets the number of candidate shown per page.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: Page size, i.e., number of candidate shown per page.
|
|
Packit Service |
1d8f1c |
dd
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
guint ibus_lookup_table_get_page_size
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_set_round:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @round: Whether to make @table round.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Set whether to make the IBusLookupTable round or not.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_set_round
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
gboolean round);
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_is_round:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns whether the #IBusLookupTable is round.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: Whether the @table is round.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
gboolean ibus_lookup_table_is_round (IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_set_orientation:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
* @orientation: .
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Set the orientation.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_set_orientation
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table,
|
|
Packit Service |
1d8f1c |
gint orientation);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_get_orientation:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns the orientation of the #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: The orientation of the @table.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
gint ibus_lookup_table_get_orientation
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_clear:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Clear and remove all candidate from an IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
void ibus_lookup_table_clear (IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_page_up:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Go to previous page of an #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* It returns FALSE if it is already at the first page,
|
|
Packit Service |
1d8f1c |
* unless table>-round==TRUE , where it will go
|
|
Packit Service |
1d8f1c |
* to the last page.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: %TRUE if succeed.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
gboolean ibus_lookup_table_page_up (IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_page_down:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Go to next page of an #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* It returns FALSE if it is already at the last page,
|
|
Packit Service |
1d8f1c |
* unless table>-round==TRUE , where it will go
|
|
Packit Service |
1d8f1c |
* to the first page.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: %TRUE if succeed.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
gboolean ibus_lookup_table_page_down(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_cursor_up:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Go to previous candidate of an #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* It returns FALSE if it is already at the first candidate,
|
|
Packit Service |
1d8f1c |
* unless table>-round==TRUE , where it will go
|
|
Packit Service |
1d8f1c |
* to the last candidate.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: %TRUE if succeed.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
gboolean ibus_lookup_table_cursor_up(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
|
|
Packit Service |
1d8f1c |
/**
|
|
Packit Service |
1d8f1c |
* ibus_lookup_table_cursor_down:
|
|
Packit Service |
1d8f1c |
* @table: An IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Go to next candidate of an #IBusLookupTable.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* It returns FALSE if it is already at the last candidate,
|
|
Packit Service |
1d8f1c |
* unless table>-round==TRUE , where it will go
|
|
Packit Service |
1d8f1c |
* to the first candidate.
|
|
Packit Service |
1d8f1c |
*
|
|
Packit Service |
1d8f1c |
* Returns: %TRUE if succeed.
|
|
Packit Service |
1d8f1c |
*/
|
|
Packit Service |
1d8f1c |
gboolean ibus_lookup_table_cursor_down
|
|
Packit Service |
1d8f1c |
(IBusLookupTable *table);
|
|
Packit Service |
1d8f1c |
G_END_DECLS
|
|
Packit Service |
1d8f1c |
#endif
|
|
Packit Service |
1d8f1c |
|