Logo Search packages:      
Sourcecode: nabi version File versions


/* Nabi - X Input Method server for hangul
 * Copyright (C) 2003,2004,2007 Choe Hwanjin
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA


#include <X11/Xlib.h>
#include <gtk/gtk.h>

#include <hangul.h>

typedef struct _NabiCandidate     NabiCandidate;
typedef void (*NabiCandidateCommitFunc)(NabiCandidate*, const Hanja*, gpointer);

struct _NabiCandidate {
    GtkWidget *window;
    Window parent;
    gchar *label;
    GtkListStore *store;
    GtkWidget *treeview;
    const Hanja **data;
    NabiCandidateCommitFunc commit;
    gpointer commit_data;
    int first;
    int n;
    int n_per_page;
    int current;
    HanjaList *hanja_list;

NabiCandidate*     nabi_candidate_new(char *label_str,
                                int n_per_page,
                                HanjaList* list,
                                const Hanja** valid_list,
                                int valid_list_length,
                                Window parent,
                              NabiCandidateCommitFunc commit,
                              gpointer commit_data);
void               nabi_candidate_prev(NabiCandidate *candidate);
void               nabi_candidate_next(NabiCandidate *candidate);
void               nabi_candidate_prev_row(NabiCandidate *candidate);
void               nabi_candidate_next_row(NabiCandidate *candidate);
void               nabi_candidate_prev_page(NabiCandidate *candidate);
void               nabi_candidate_next_page(NabiCandidate *candidate);
const Hanja*       nabi_candidate_get_current(NabiCandidate *candidate);
const Hanja*       nabi_candidate_get_nth(NabiCandidate *candidate, int n);
void               nabi_candidate_delete(NabiCandidate *candidate);

#endif /* _NABICANDIDATE_H_ */

Generated by  Doxygen 1.6.0   Back to index